body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#background_video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

#loading_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
}

#loading_text {
    color: whitesmoke;
    font-family: Consolas, Arial, "Times New Roman", Verdana, sans-serif ;
}

#game_container {
    padding: 1.5rem 0;
    /*border: yellow solid 2px*/
}


#game_cards_container {
    /*border: yellow solid 2px;*/
    /*background-color: black;*/
    /*min-width: 400px;*/
    /*max-width: 95%;*/
}

#game_stats_container {
    /*min-width: 320px;*/
    /*width: 97%;*/
    /*padding: 10px;*/
    border: deeppink solid 2px;
    border-radius: 5px;
    background-color: black;
    color: whitesmoke;
    font-family: Consolas, Arial, "Times New Roman", Verdana, sans-serif ;
}


.game_card_fs_html {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/html-5.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 65%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_css {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/css-3.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 65%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_csharp {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/c-sharp.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 85%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_java {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/java.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 65%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_javascript {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/javascript.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_jquery {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/jquery.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 90%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_postgresql {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/postgresql.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 90%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_fs_python {
    aspect-ratio: 1 / 1;
    width: 100%;
    /*border: darkred solid 0.2em;*/
    padding: 2px;
    background-image: url("media/pictures/python.svg");
    background-color: whitesmoke;
    background-position: center;
    background-size: 90%;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.game_card_bs {
    aspect-ratio: 1 / 1;      /* keeps cards square at any size */
    width: 100%;              /* fill the Bootstrap column */
    border: darkred solid 0.2em;
    padding: 2px;
    background-image: url("media/pictures/iryna-trigubova-8-Lfn84SRNY-unsplash.png");
    background-color: black;
    background-position: center;
    background-size: cover;   /* 'cover' is safer than 100% for responsiveness */
    background-repeat: no-repeat;
    border-radius: 5px;
}

#you_win {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

#you_win video {
    width: 100%;
    height: auto;
    position: static; /* remove the hardcoded left offset */
    border: deeppink solid 0.2em;
    border-radius: 5px;
}

#you_win h1 {
    color: white;
    position: static; /* remove the hardcoded offsets */
    margin-top: 1rem;
}

#reset_game_button {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

#rotate_message {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-family: Consolas, Arial, sans-serif;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    font-size: 1.5rem;
}

@media (orientation: landscape) and (max-height: 500px) {
    #rotate_message {
        display: flex;
    }

    #game_container {
        display: none;
    }
}