:root {
    --green-dark: #4a7c59;
    --green-light: #7fb069;
    --blue-sky: #87ceeb;
    --brown-earth: #8b6f47;
    --blue-dark: #1a2332;
    --purple-dark: #2d1b3d;
    --red-danger: #d64545;
    --orange-bright: #ff6b35;
    --beige-light: #f4f1de;
    --gray-dark: #3d3d3d;
    --black: #1a1a1a;
}

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

body {
    font-family: 'Roboto Slab', serif;
    background-image: url(img/BG-index\(1\).png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: var(--beige-light);
    min-height: 100vh;
}


main {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(77, 124, 89, 1) 0%, rgba(29, 35, 50, 1) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 3px solid var(--green-dark);
}

header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--blue-dark) 100%);
    position: relative;
    overflow: hidden;

    &::before {
        content: '🌱';
        position: absolute;
        font-size: 15rem;
        opacity: 0.1;
        top: -25px;
        right: -50px;
        transform: rotate(-15deg);
    }
}

h1 {
    font-family: 'Bangers', system-ui;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--orange-bright);
    text-shadow:
        3px 3px 0 var(--black),
        -1px -1px 0 var(--green-light),
        4px 4px 10px rgba(255, 107, 53, 0.5);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

header p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--beige-light);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


/* Presentation */
#presentation {
    padding: 3rem 2rem;
    background: rgba(26, 35, 50, 0.6);
    border-bottom: 2px solid var(--green-dark);
}

#presentation p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--beige-light);
}

#presentation a {
    color: var(--green-light);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--green-light);
    transition: all 0.3s ease;
}

#presentation a:hover {
    color: var(--orange-bright);
    border-bottom-color: var(--orange-bright);
}



#pitch {
    padding: 3rem 2rem;
}

#pitch h1,
#pitch h2,
#credits h2 {
    font-family: 'Bangers', system-ui;
    color: var(--orange-bright);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 var(--black);
}

#pitch>p {
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--beige-light);
}


/* Carousel */
#carouselReward {
    margin: 3rem auto;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#carouselReward h2 {
    background: linear-gradient(90deg, var(--green-dark), var(--blue-dark));
    padding: 1.5rem;
    margin: 0;
    font-size: 2rem;
}

.carousel-item {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--blue-dark) 100%);
    color: var(--beige-light);
    padding: 3rem 2rem;
    min-height: 350px;
    border: 2px solid var(--green-dark);
    text-align: center;
}

.carousel-item h1 {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: var(--green-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    border-radius: 50%;
    filter: invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* Button Game */
.underline {
    text-decoration: none;
}

#game {
    margin: 4rem auto 2rem;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--red-danger), var(--orange-bright));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 4px solid var(--black);
    box-shadow: 0 10px 40px rgba(214, 69, 69, 0.6);
}

#game::before {
    content: '💰';
    position: absolute;
    font-size: 20rem;
    opacity: 0.1;
    top: -80px;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

#game:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 15px 60px rgba(255, 107, 53, 0.8);
}

#game h2 {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--beige-light);
    text-decoration: none;
    text-shadow:
        4px 4px 0 var(--black);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

#game p {
    font-family: 'Bangers', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    color: #fff;
    text-shadow:
        3px 3px 0 var(--black),
        6px 6px 20px rgba(0, 0, 0, 0.8);
    animation: blink 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    main {
        width: 95%;
        margin: 1rem auto;
    }

    header {
        padding: 2rem 1rem;
    }

    #presentation,
    #pitch {
        padding: 2rem 1rem;
    }

    .carousel-item {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    #game {
        padding: 3rem 1rem;
    }
}

/* Animations enter */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#presentation {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#credits {
    margin: 1rem 5rem;

    .container {
        padding-top: 1rem;
        width: fit-content;
        display: flex;
        justify-content: center;
        align-items: start;
        gap: 2rem;

        h3 {
            text-align: center;
        }
    }
}