@font-face {
    font-family: 'CheekFont';
    src: url('WalterTurncoat.ttf') format('truetype'); /* Adjusted path */
    font-weight: normal;
    font-style: normal;
}

:root {
    --button-border-radius: 25px; /* Set your desired border-radius here */
}

/* main.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: black;
}

h1 {
    text-align: center;
    font-family: 'CheekFont', sans-serif;
    font-size: 2em;
    margin: 0 auto; /* Centering the text */
}

#background-video {
    position: fixed; /* Fixed position to cover the whole screen */
    right: 0;
    bottom: 0;
    min-width: 100%; /* Minimum width and height to cover the screen */
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Place it behind other elements */
    width: 170%;
    overflow: hidden;
}

#background-video {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#background-video.fade-in {
    opacity: 1;
}


.scene-buttons {
    text-align: center;
    z-index: 1;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene-button {
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
    margin: 15px;
    max-width: 35%;
    opacity: 0; /* Start with images being transparent */
    transition: opacity 1s ease-in-out;
    position: relative; /* Needed for absolute positioning of the overlay */
    overflow: hidden; /* Ensures the overlay doesn't exceed the card's boundaries */
    border-radius: var(--button-border-radius);
}

.scene-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 255, 0.5); /* Example color - semi-transparent blue */
    transform: scale(0);
    transition: transform 0.5s ease-in-out; /* Increased duration for smoother effect */
    border-radius: var(--button-border-radius);
}

.scene-button:hover::before {
    transform: scale(1); /* Scale up to full size on hover */
}

.scene-button img {
    transition: transform 0.5s ease-in-out; /* Optional: to add an effect to the image as well */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: var(--button-border-radius);
}

.scene-button:hover img {
    transform: scale(1.05); /* Optional: slightly scale up the image on hover */
}

.fade-in {
    opacity: 1; /* Full opacity */
    animation: fadeIn 1s ease-in;
}

.fade-out {
    animation: fadeOut 1s ease-out forwards; /* 'forwards' keeps the element in the end state of the animation */
}

.fade-outVideo {
    animation: fadeOutVideo 5s ease-out forwards; /* 'forwards' keeps the element in the end state of the animation */
}

.fade-outVideo-complete {
    animation: fadeOutVideo-complete 2s ease-out forwards; /* 'forwards' keeps the element in the end state of the animation */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeOutVideo {
    from { opacity: 1; }
    to { opacity: .3; }
}

@keyframes fadeOutVideo-complete {
    from { opacity: .3; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    .scene-button {
        display: block;
        margin: 10px auto;
    }
}
