/* Font-face declaration for custom font 'Montserrat' */
@font-face {
    font-family: montserrat;
    src: url(Montserrat-Black.ttf);
}

/* Styling for the entire body */
body {
    /* Background settings */
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100vh; /* 100% of the viewport height */
    margin: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    color: white; /* Text color */
}

/* Styling for snow animation */
body #snow {
    /* Snow animation settings */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* Default variable values for snow animation */
    --size: 1;
    --fallDuration: 10s;
    --swayDuration: 0.8s;
    --fallSlideStrength: 0.5;
    --slideStrength: 0.5;
    --position: 0;
}

/* Styling for individual snowflakes */
body #snow > div {
    position: absolute;
    top: 0;
    left: calc(var(--position) - 20%);
    width: calc(var(--size) * 15px);
    aspect-ratio: 1;
    background: radial-gradient(white, transparent 66%);
    /* Snowfall animation */
    -webkit-animation: var(--fallDuration) snowFall linear forwards;
    animation: var(--fallDuration) snowFall linear forwards;
}

/* Keyframes for snowfall animation */
@-webkit-keyframes snowFall {
    to {
        top: 100%;
        transform: translateX(calc(var(--cWidth) * var(--fallSlideStrength) / 8));
    }
}

@keyframes snowFall {
    to {
        top: 100%;
        transform: translateX(calc(var(--cWidth) * var(--fallSlideStrength) / 8));
    }
}

/* Styling for 'Go Back' button */
.go-back-btn {
    /* Button appearance */
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: montserrat;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    /* Box shadow effect */
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
        7px 7px 20px 0px rgba(0, 0, 0, .1),
        4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
    transform: translate(0px, 49px);
}

/* Styling for content container */
.content {
    /* Centering content */
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Styling for SVG content */
.svg-content {
    width: 250px;
    transform: translate(0px, 0px);
}

/* Styling for text centered within content */
.text-center {
    color: #4d6378;
    font-family: montserrat;
    font-size: 20px;
    transform: translate(0px, 90px);
    font-family: montserrat;
}

/* Styling for button 1 */
.btn-1 {
    background: #91b4cf;
    border: none;
    z-index: 1;
}

/* Styling for button 1 hover effect */
.btn-1:after {
    /* Hover effect on button */
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    background-color: #4d6378;
    border-radius: 5px;
    /* Box shadow effect */
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
        7px 7px 20px 0px rgba(0, 0, 0, .1),
        4px 4px 5px 0px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
}

/* Styling for button 1 hover state */
.btn-1:hover {
    color: #fff;
}

/* Styling for button 1 hover effect */
.btn-1:hover:after {
    left: 0;
    width: 100%;
}

/* Styling for button 1 active state */
.btn-1:active {
    top: 2px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    /* Adjustments for smaller screens */
    body {
        background-size: cover;
    }

    .svg-content {
        width: 80%;
        max-width: 200px;
        margin: 0 auto;
    }

    .text-center {
        font-size: 20px;
        transform: translate(0px, 100px);
    }
}

/* Responsive styles for even smaller screens (e.g., mobile devices) */
@media (max-width: 480px) {
    .content {
        padding: 10px;
    }

    .svg-content {
        transform: translate(0px, 0px);
    }

    .text-center {
        font-size: 18px;
        transform: translate(0px, 30px);
    }

    .go-back-btn {
        transform: translate(0px, 30px);
    }
}
