:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --accent-color: #ade8f4;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;

    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
}

section:nth-of-type(even) {
    background-color: var(--light-color);
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 2.5rem;
    color: #555;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
}


.hero {
    background: url('../assets/hero.png') no-repeat center center/cover;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin: 1rem 0 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.entertainment-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--white-color);
}


.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin-top: 0;
}

.game-info p {
    flex-grow: 1;
    color: #555;
}

.fun-tag {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.game-card .btn {
    width: 100%;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}


.security-points {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-point {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.security-point i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.security-point h3 {
    margin-bottom: 0.25rem;
}

.security-point p {
    margin-bottom: 0;
}


.responsible-play .container {
    max-width: 800px;
}

.responsible-play ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.responsible-play li {
    margin-bottom: 0.5rem;
}

.age-notice {
    background-color: var(--accent-color);
    border-left: 5px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}


.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion details {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
}

.faq-accordion summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-accordion summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    transition: transform 0.3s;
}

.faq-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.faq-accordion p {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}


.about .container {
    max-width: 800px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    display: block;
}

#form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}



.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--light-color);
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-disclaimer {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.is-visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    font-size: 2rem;
    line-height: 30px;
    cursor: pointer;
    z-index: 1002;
}

.iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body.modal-open {
    overflow: hidden;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        text-align: left;
    }
}

.policy-page {
    padding: 4rem 0;
}

.policy-page .container {
    max-width: 800px;
}

.policy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.policy-page h2 {
    text-align: left;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    color: var(--dark-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.policy-page p,
.policy-page li {
    color: #333;
}

.policy-page ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.policy-page a {
    font-weight: 600;
}