@font-face{
    font-family: 'STRIGER';
    src: url('./Fonts/STRIGER.ttf');
}
@font-face{
    font-family: 'TRANSFORMERS';
    src: url('./Fonts/Transformers\ Movie.ttf');
}
body{
    background-image: url('./Backdrops/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(134, 84, 38);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;

    .scroll-container {
        width: 100%;
        height: 100vh;
        overflow-y: scroll; /* Allows vertical scrolling inside this container */
        scroll-snap-type: y mandatory; /* Makes it snap to each image */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
        -ms-overflow-style: none; /* Hides scrollbar in IE/Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome/Safari */
}

.scroll-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start; /* Snap point */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}

/* Background images for each section */
#kingdom { background-image: url('./Backdrops/background.png'); }
#rocks   { background-image: url('./Backdrops/rock.png'); }
#cave    { background-image: url('./Backdrops/cave.png'); }


}
h1{
    font-family: 'STRIGER';
    color:rgb(89, 46, 46);
    font-size: 4rem;
    text-shadow: 10px 10px 10px rgba(0,0,0,0.5);
}
h5{
    font-family: 'TRANSFORMERS';
    color: white;
    margin-top: 2vh;
    margin-bottom: 5vh;
    font-style: italic;
    letter-spacing: 0.2rem;
}
.button-link{
    display: inline-block;
    text-decoration: none;
    padding: 15px 40px;
    background-color: rgb(107, 41, 5);
    color: white;
    border-radius: 10px;
    font-family: sans-serif;
    font-weight: bold;
    transition: 0.3;
    margin-top: 20vh;
    margin-bottom: 200px;
    transition: 0.3s;
}
.button-link:hover{
    background-color: rgb(141, 70, 34);
    color: rgb(247, 247, 248);
    transform: translateY(-3px);
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
}

.corner-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'STRIGER';
    color: rgb(244, 180, 107);
    font-size: 1.5rem;
    margin: 0;
}

.play-small {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    padding: 10px 25px;
    background-color: rgb(244, 180, 107);
    color: rgb(65, 12, 12);
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: bold;
    transition: 0.3s;
}

.play-small:hover {
    background-color: rgb(141, 70, 34);
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    bottom: 5vh; /* 5% from the bottom of the screen */
    font-family: sans-serif;
    color: rgba(255, 255, 255, 0.7); /* Soft white */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    animation: breathe 2s ease-in-out infinite;
}

/* Subtle animation to nudge the user to scroll */
@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(-5px); }
}

.rules-container {
    margin-top: 12vh;
    width: 85vw;
    max-width: 550px;
    padding: 0;
    text-align: center;
    position: relative;
}

/* Hidden State (Before reaching the cave) */
.rules-heading, 
.rules-list li {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
}

/* This '.active' class is added by JavaScript when the cave is in view */
.active .rules-heading {
    animation: revealHeading 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.active .rules-list li {
    animation: revealLine 0.8s ease-out forwards;
}

/* Staggered delays so they appear one by one */
.active .rules-list li:nth-child(1) { animation-delay: 0.6s; }
.active .rules-list li:nth-child(2) { animation-delay: 0.9s; }
.active .rules-list li:nth-child(3) { animation-delay: 1.2s; }
.active .rules-list li:nth-child(4) { animation-delay: 1.5s; }
.active .rules-list li:nth-child(5) { animation-delay: 1.7s; }

/* --- TEXT DESIGN --- */

.rules-heading {
    font-family: 'STRIGER';
    color: #f4b46b;
    font-size: 3.5rem;
    margin-bottom: 3vh;
    text-shadow: 0 0 15px rgba(244, 180, 107, 0.5);
}

.rules-list {
    font-family: 'TRANSFORMERS';
    color: #e9d2c1;
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 2;
    letter-spacing: 0.05rem;
}

.rules-list li {
    margin-bottom: 1.5vh;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

/* --- KEYFRAMES --- */

@keyframes revealHeading {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes revealLine {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}