:root {
    --primary-green: #4CAF50; /* Vert vif */
    --dark-blue: #1A237E;    /* Bleu profond */
    --light-blue: #2196F3;   /* Bleu clair pour accents */
    --accent-yellow: #FFEB3B; /* Jaune ensoleillé */
    --light-yellow: #FFF9C4; /* Jaune très clair pour arrière-plans */
    --light-green: #E8F5E9; /* Vert très clair pour arrière-plans */
    --text-dark: #212529;    /* Couleur de texte sombre standard */
    --text-secondary: #495057; /* Couleur de texte secondaire */
    --text-light: #F8F9FA;   /* Couleur de texte clair */
    --warning-light: #FFF3CD; /* Couleur de fond pour l'avertissement */
    --warning-dark: #856404; /* Couleur de texte pour l'avertissement */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark); /* Couleur de texte par défaut pour tout le site */
    background-color: var(--text-light);
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-light-green {
    background-color: var(--light-green) !important;
}

.bg-light-yellow {
    background-color: var(--light-yellow) !important;
}

.text-warning {
    color: var(--accent-yellow) !important;
}

.bg-warning-light {
    background-color: var(--warning-light) !important;
}

.text-warning-dark {
    color: var(--warning-dark) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-blue) 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-section h2 {
    color: var(--text-light);
}

.hero-section .lead {
    color: var(--text-light);
    opacity: 0.9;
}

.btn-install {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--dark-blue);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-install:hover {
    background-color: #FFD700; /* Un jaune légèrement plus foncé */
    border-color: #FFD700;
    color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Short Description & Rating */
#short-description .rating i {
    font-size: 1.2rem;
}

/* Screenshots Carousel */
#screenshots .carousel-item img {
    max-height: 550px; /* Adjust as needed */
    object-fit: contain;
    margin: auto;
    display: block;
    padding: 10px 0;
    background-color: rgba(0,0,0,0.1); /* To make transparent images visible */
}

#screenshots .carousel-indicators button {
    background-color: var(--accent-yellow);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

#screenshots .carousel-control-prev-icon, 
#screenshots .carousel-control-next-icon {
    filter: invert(0) drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Full Description */
#full-description ul li i {
    vertical-align: middle;
}

/* Technical Info */
#technical-info .list-group-item {
    border-color: rgba(0,0,0,0.05);
}

/* Developer Info */
#developer-info img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Game Trailer */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}


.embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* User Reviews */
.bg-review-card {
    background-color: var(--text-light);
    border: 1px solid rgba(0,0,0,0.05);
}

.bg-review-card .card-title {
    color: var(--dark-blue);
}

.bg-review-card .text-muted {
    color: var(--text-secondary) !important;
}

/* Contact Form */
#contact-form .form-control {
    border-color: rgba(0,0,0,0.1);
}

#contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

#contact-form .btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#contact-form .btn-primary:hover {
    background-color: #388E3C; /* Un vert légèrement plus foncé */
    border-color: #388E3C;
}

/* Disclaimer Block */
#disclaimer-block {
    border-radius: 8px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Footer */
footer .footer-links a {
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--accent-yellow) !important;
}

footer .contact-info a {
    transition: color 0.3s ease;
}

footer .contact-info a:hover {
    color: var(--accent-yellow) !important;
}

/* General text colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue);
}

p, li, a, label, .form-control, .card-text {
    color: var(--text-dark);
}

/* Override specific elements for readability */
.text-white {
    color: var(--text-light) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Ensure contrast for all text */
.bg-primary .text-white, .bg-dark-blue .text-white {
    color: var(--text-light) !important;
}

.bg-light-green .text-dark-blue, .bg-light-yellow .text-dark-blue, .bg-white .text-dark-blue {
    color: var(--dark-blue) !important;
}

.bg-light-green p, .bg-light-green ul li, .bg-light-yellow p, .bg-light-yellow ul li, .bg-white p, .bg-white ul li {
    color: var(--text-dark) !important;
}
/* Общие отступы для блока .termsCaveBox */
.termsCaveBox {
    margin-top: 40px; /* Отступ сверху */
    margin-bottom: 40px; /* Отступ снизу */
    padding-left: 15px; /* Отступ слева */
    padding-right: 15px; /* Отступ справа */
}

/* Стили для заголовков внутри .termsCaveBox */
.termsCaveBox h1,
.termsCaveBox h2,
.termsCaveBox h3,
.termsCaveBox h4,
.termsCaveBox h5 {
    margin-top: 20px; /* Отступ сверху для заголовков */
    margin-bottom: 15px; /* Отступ снизу для заголовков */
    line-height: 1.3; /* Межстрочный интервал */
    font-weight: 600; /* Полужирное начертание */
}

.termsCaveBox h1 {
    font-size: 1.8rem; /* Размер шрифта для H1 */
}

.termsCaveBox h2 {
    font-size: 1.6rem; /* Размер шрифта для H2 */
}

.termsCaveBox h3 {
    font-size: 1.4rem; /* Размер шрифта для H3 */
}

.termsCaveBox h4 {
    font-size: 1.2rem; /* Размер шрифта для H4 */
}

.termsCaveBox h5 {
    font-size: 1.1rem; /* Размер шрифта для H5 */
}

/* Стили для параграфов внутри .termsCaveBox */
.termsCaveBox p {
    margin-top: 0; /* Убираем верхний отступ, если он есть */
    margin-bottom: 15px; /* Отступ снизу для параграфов */
    font-size: 1rem; /* Базовый размер шрифта для текста */
    line-height: 1.6; /* Межстрочный интервал для лучшей читаемости */
}

/* Стили для списков (ul, ol) внутри .termsCaveBox */
.termsCaveBox ul,
.termsCaveBox ol {
    margin-top: 0; /* Убираем верхний отступ, если он есть */
    margin-bottom: 15px; /* Отступ снизу для списков */
    padding-left: 25px; /* Отступ слева для маркеров/номеров */
}

/* Стили для элементов списков (li) внутри .termsCaveBox */
.termsCaveBox li {
    margin-bottom: 8px; /* Отступ между элементами списка */
    line-height: 1.6; /* Межстрочный интервал для элементов списка */
}

/* Если нужно, чтобы первый элемент списка не имел нижнего отступа */
.termsCaveBox li:last-child {
    margin-bottom: 0;
}

@media (max-width: 575px){
    header{
        h1{
            font-size: 20px !important;
        }

        .container{

            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        nav ul{
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            flex-direction: row;
        }
    }

    .carousel-control-next-icon, .carousel-control-prev-icon{
        display: none;
    }
}