.template {
    background-color: red !important;
    display: none;
}
.hide {
    display: none !important;
}

#content {
    padding-left: 0;
    padding-top: 15rem;
    padding-bottom: 4rem;
    z-index: 0;
    width: 95%;
}
#content.offline {
    padding-left: 0;
    padding-top: 12.5rem;
    padding-bottom: 3.5rem;
}
#content.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto 1fr 1fr 1fr auto auto;
    justify-items: center;
}
#content.list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#content.game {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    height: 100vh;
    overflow: hidden;
}

body {
    /* overflow: hidden; */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e1e1e1;
    /* Background color for the entire page */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

header {
    background-color: #023971;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9;
    padding-bottom: 0px;
    box-shadow: 0 0 26px 0px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #023971;
    color: #fff;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 8;
    font-size: 0.7rem;
}

nav {
    background-color: #0469ce;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    padding-bottom: 0;
    width: 100%;
    width: -webkit-fill-available;
}
#nav-offline {
    padding-bottom: 10px;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
#nav-game {
    padding: 2rem;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.game-select {
    position: relative;
    display: inline-block;
    font-size: 16px;
    width: 200px;
}

.game-select select {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none; /* Hide default arrow in Firefox */
    -webkit-appearance: none; /* Hide default arrow in WebKit browsers */
    background-color: #f9f9f9;
    cursor: pointer;
}

.game-select::after {
    content: "\25BC"; /* Unicode character for down arrow */
    position: absolute;
    top: 12px;
    right: 10px;
    pointer-events: none;
    color: #0469ce;
    transition: 0.3 ease;
}

/* Change arrow color on hover */
.game-select:hover::after {
    color: #555;
}

/* Style the options */
.game-select select option {
    padding: 40px;
}

/* Change background color of selected option */
.game-select select option:checked {
    background-color: #4caf50;
    color: white;
}

/* Hover effect on options */
.game-select select option:hover {
    background-color: #f1f1f1;
}

#game-timer {
    width: 6rem;

    padding: 1rem;
    padding-top: 1.25rem;

    font-size: 1.5rem;
    color: #0056b3;
    background-color: white;

    z-index: -1;

    border-radius: 0.5rem;

    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    margin-left: -4.15rem;

    border: 2px #0469ce solid;
    box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);

    text-align: center;
}

#game-correct {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;

    width: 3rem;

    padding: 1rem;
    padding-top: 2rem;

    font-size: 1.5rem;
    color: #0056b3;
    background-color: #388e3c;
    color: white;
    font-weight: bold;
    text-align: center;

    z-index: -1;

    border-radius: 0.5rem;

    position: absolute;
    bottom: -4.5rem;
    left: 60%;
    margin-left: -4.1rem;

    border: 2px #235825 solid;
    box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);

    text-align: center;
}

#game-correct > span {
    font-size: 1rem;
    text-align: center;
    font-weight: normal;
}

#game-incorrect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;

    width: 3rem;

    padding: 1rem;
    padding-top: 2rem;

    font-size: 1.5rem;
    color: #0056b3;
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
    text-align: center;

    z-index: -1;

    border-radius: 0.5rem;

    position: absolute;
    bottom: -4.5rem;
    left: 40%;
    margin-left: -1.2rem;

    border: 2px #9f1f1f solid;
    box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);

    text-align: center;
}
#game-incorrect > span {
    font-size: 1rem;
    text-align: center;
    font-weight: normal;
}

#phone-menu-container {
    display: none;
}
#menu {
    padding-bottom: 0.5rem;
    padding-bottom: 10px;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
#menu.opened {
    width: 100%;
}
#menu.closed {
    width: 100%;
}
#menu div:first-child {
    display: none;
}
#menu div:nth-child(2) {
    display: none;
}
#filter-menu-container {
    display: none;
}

.card {
    padding: 15px 15px;
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);
    border-radius: 0.7rem;
    max-width: 32rem;
    /* min-width: 32rem; */
    min-width: -webkit-fill-available;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card.game {
    width: 50%;
    height: 20%;
    min-width: unset;
    max-width: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}
.game.question {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.game.question.title {
    font-size: 2rem;
    font-weight: bold;
}
.game.question.text {
    font-size: 1.5rem;
}
.game.answers {
    width: 50%;
    height: 20%;
    min-width: unset;
    max-width: unset;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.card.game.answer {
    /* display: block; */
    margin: 0.5rem;
    font-size: 1.5rem;
    width: 40%;
    height: 7rem;
    line-height: 1.8rem;
    min-width: unset;
    max-width: unset;
    transition: background-color 0.1s ease;
    padding: 1rem 2rem;
    text-align: left;
    flex-direction: row;
}
.card.game.answer span:nth-child(2) {
    margin-left: 0.5rem;
}
.card.game.answer.correct {
    background-color: #388e3c;
    color: white;
}
.card.game.answer.correct:hover {
    background-color: #388e3c;
    color: white;
}
.card.game.answer:has(> span.correct) {
    background-color: #388e3c;
    color: white;
}
.card.game.answer:has(> span.correct):hover {
    background-color: #388e3c;
    color: white;
}
.card.game.answer.incorrect {
    background-color: #9f1f1f;
    color: white;
}
.card.game.answer.incorrect:hover {
    background-color: #9f1f1f;
    color: white;
}
.card.game.answer:has(> span.incorrect) {
    background-color: #9f1f1f;
    color: white;
}
.card.game.answer:has(> span.incorrect):hover {
    background-color: #9f1f1f;
    color: white;
}

.card.game.answer:hover {
    background-color: #0056b3;
    color: white;
}
.play-sound.game {
    background-size: 2.5rem;
    padding: 1.5rem;
    transition: 0.3s ease-in-out;
}
.play-sound.game:hover {
    background-size: 3rem;
}

.play-sound {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: block;

    background-image: url("/assets/icons/speaker.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.7rem;
    padding: 1rem;
}

.no-bullet {
    list-style: none;
}

ul > li {
    margin-bottom: 10px;
}

/* Styling the link */
a {
    text-decoration: none;
    /* Remove underline */
    color: #0469ce;
    /* Default link color */
    transition: color 0.3s ease;
    /* Smooth transition for color change */
}

/* Hover effect */
a:hover {
    color: #0056b3;
    /* Change color on hover */
}

/* Additional styles for visited links */
a:visited {
    color: #800080;
    /* Change color for visited links */
}
.tooltip-parent a {
    border-bottom: 1px dotted black;
    padding: 0px 2px;
    padding-bottom: 1px;
}
.notes.ref a::after {
    content: " ]";
}
.notes.ref a::before {
    content: "[ ";
}
.tooltip-parent {
    position: relative;
    display: inline-block;
}
.notes.ref ul {
    padding-left: 0px;
    list-style: decimal inside;
}
.notes.ref ul::after {
    margin-right: 4px;
}
.notes.ref ul li {
    border-bottom: 1px #0469ce solid;
    width: 95%;
    padding: 3px 5px;
    padding-bottom: 3px;
}
.notes.ref ul li .tooltip-parent:first-child {
    width: 12rem;
}

.tooltip-parent .tooltip {
    visibility: hidden;
    width: 25rem;
    height: initial;
    padding: 0rem;
    border-radius: 0.5rem;

    box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.6);

    font-size: 1.2rem;
    line-height: 1.7rem;
    /* font-family: "Merriweather", serif; */
    font-family: "Open Sans", sans-serif;

    text-align: left;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 130%;
    left: 0%;
    margin-left: -12rem;
    /* Use half of the width (120/2 = 60), to center the tooltip */

    /* animation */
    /* opacity: 0;
    transform: translate3d(0,-20px,0);
    transition: all .5s ease-out; */
    transition: 0.3 ease;
}

.tooltip-parent:hover .tooltip,
.tooltip-parent:focus .tooltip,
.tooltip-parent:active .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.tooltip .tooltip-body {
    /* width: 100%; */
    height: 100%;
    border-radius: 0.5rem;
    padding: 0rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: #023971;
}

.tooltip .tooltip-body:after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    background: #023971;
    border: 1px #023971 solid;
}
.sub-nav {
    background-color: white;
    color: #0056b3;
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.button {
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 1rem;
    color: #fff;
    background-color: #0469ce; /* Lighter blue shade */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:hover {
    font-size: 1rem;
    color: #fff;
}
.danger {
    background-color: #d32f2f;
}
.danger:hover {
    background-color: #9f1f1f;
}
.green {
    background-color: #388e3c;
}
.green:hover {
    background-color: #235825;
}

#practice-button {
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 1rem;
    color: #fff;
    background-color: #0469ce; /* Lighter blue shade */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#practice-button:hover {
    background-color: #034b7a; /* Medium blue shade */
}
.filters {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.filters > div:first-child {
    display: none;
}
.filters > div:nth-child(2) {
    display: none;
}
.filters > div:nth-child(3) {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0rem 1rem;
    border-left: 2px darkgrey solid;
    border-right: 2px darkgrey solid;
    gap: 0.25rem;
}
.filters span {
    height: 1rem;
}
.filters .divider {
    border-color: #0057b3c9;
    padding: 0.025rem 0rem;
}
.filters input {
    width: 300px; /* Adjust width as needed */
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #333;
    outline: none; /* Remove default focus outline */
}
.filters input:focus {
    border-color: #0469ce; /* Lighter blue shade */
    box-shadow: 0 0 5px rgba(4, 105, 206, 0.5); /* Optional: Add a subtle box shadow */
}

#list-button {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: block;

    padding: 0.3rem 0.5rem;

    background-color: white;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border: 2px #0469ce solid;
    border-right: 1px #0469ce solid;
}
#list-button .icon {
    background-color: #0469ce;
    -webkit-mask-image: url("/assets/icons/list.svg");
    mask-image: url("/assets/icons/list.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    padding: 0.7rem;
}
#list-button.clicked {
    background-color: #023971;
    border-color: #023971;
}
#list-button.clicked .icon {
    background-color: #fff;
}

#list-button:hover.clicked {
    background-color: #023971;
    border-color: #023971;
}
#list-button:hover.clicked .icon {
    background-color: #fff;
}

#list-button:hover {
    background-color: #0469ce;
}
#list-button:hover .icon {
    background-color: #fff;
}

#list-button:active {
    background-color: #023971;
    border-color: #023971;
}
#list-button:active .icon {
    background-color: #fff;
}

#layouts {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#grid-button {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: block;

    padding: 0.3rem 0.5rem;

    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border: 2px #0469ce solid;
    border-left: 1px #0469ce solid;
}
#grid-button .icon {
    background-color: #0469ce;
    -webkit-mask-image: url("/assets/icons/grid.svg");
    mask-image: url("/assets/icons/grid.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    padding: 0.7rem;
}
#grid-button.clicked {
    background-color: #023971;
    border-color: #023971;
}
#grid-button.clicked .icon {
    background-color: #fff;
}

#grid-button:hover.clicked {
    background-color: #023971;
    border-color: #023971;
}
#grid-button:hover.clicked .icon {
    background-color: #fff;
}

#grid-button:hover {
    background-color: #0469ce;
}
#grid-button:hover .icon {
    background-color: #fff;
}

#grid-button:active {
    background-color: #023971;
    border-color: #023971;
}
#grid-button:active .icon {
    background-color: #fff;
}

#info-button.active {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: block;

    padding: 0.3rem 0.5rem;

    border-radius: 0.5rem;
    border: 2px #023971 solid;
    background-color: #023971;
}
#info-button.active > .icon {
    background-color: white;
    -webkit-mask-image: url("/assets/icons/info-min.svg");
    mask-image: url("/assets/icons/info-min.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    mask-position: 0px -13px;
    padding: 0.7rem;
}
#info-button {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: block;

    padding: 0.3rem 0.5rem;

    border-radius: 0.5rem;
    border: 2px #0469ce solid;
    background-color: white;
}
#info-button > .icon {
    background-color: #0469ce;
    -webkit-mask-image: url("/assets/icons/info-max.svg");
    mask-image: url("/assets/icons/info-max.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    mask-position: 0px 0px;
    padding: 0.7rem;
}

.divider {
    border: 1px #0057b3c9 solid;
    padding: 0.7rem 0rem;
    margin: 0rem 0.4rem;
}

@supports (backdrop-filter: blur()) or (-webkit-backdrop-filter: blur()) {
    .tooltip .tooltip-body {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px); /* Apply backdrop filter */

        background-color: #023971d8;
    }
    .tooltip .tooltip-body:after {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px); /* Apply backdrop filter */

        background-color: white;
    }
}

.tooltip-body .tooltip-title {
    background-color: white;
    padding: 0.5rem 1rem;

    font-weight: 900;

    color: #023971;

    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border: 1px #023971 solid;
}

.tooltip-body .tooltip-content {
    padding: 1rem 1rem;
    color: white;
    font-weight: lighter;
}

/*------> SPECIFIC STYLE STARTS HERE <------*/

/* FOR HEADER */
header .title {
    margin: 5px 0px;
    border-top: 2px #0469ce solid;
    padding: 0rem 1rem;
    padding-top: 0.5rem;
}

header .subtitle {
    margin: 5px 0px;
    margin-bottom: 20px;
}

header nav button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    transition: color 0.3s ease;
    transition: font-size 0.3s ease;
}

header nav button:hover {
    color: aqua;
    font-size: 1.25rem;
}

header nav button:active {
    color: #023971;
    font-size: 1rem;
}

/* FOR CARDS */
.card .title {
    margin-right: 0.5rem;
    width: fit-content;
}

.card .title h2 {
    margin-bottom: 0px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 2rem;
}

.card .title h2 i {
    font-size: 1.2rem;
    cursor: pointer;
}
.card .title h2 b {
    cursor: pointer;
}

div.notes > ul {
    margin-top: 5px;
    padding-left: 30px;
    margin-bottom: 10px;
}

div.notes ul > li {
    margin-bottom: 5px;
}

details summary::after {
    margin-left: 5px;
    display: inline-block;
    content: "- [open]";
    vertical-align: text-bottom;
    color: #0469ce;
}

details[open] summary::after {
    margin-left: 5px;
    display: inline-block;
    content: "- [close]";
    vertical-align: text-bottom;
    color: #023971;
}

details > ul {
    margin-bottom: 5px;
}

/* FOR FOOTER */
footer > p {
    margin: 5px 0px;
}

.spacer {
    width: 6%;
}

dialog {
    border: 2px #0469ce solid;
    border-radius: 1rem;
    width: 20%;
    height: 20%;
}
dialog > div:first-child {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
dialog > div:first-child div {
    width: 100%;
}
dialog::backdrop {
    background-color: #023971;
}
@supports (backdrop-filter: blur()) or (-webkit-backdrop-filter: blur()) {
    dialog::backdrop {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);

        background-color: #0239719f;
    }
}
.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0469ce;
}
.modal-body {
    font-size: 1.1rem;
    text-align: center;
}
.modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px #0469ce solid;
    padding-top: 1rem;
}
#finished-game {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

/* RESPONSIVENESS */

/* Hypothetical iPhone 15 (Just for demonstration) */
@media only screen and (max-device-width: 960px) {
    dialog {
        width: 60%;
        height: 28%;
    }
    .spacer {
        width: 0%;
        display: none;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header .title {
        margin: 5px 0px;
        font-size: 0.8rem;
        padding-top: 0.2rem;
        margin-top: 0.2rem;
        margin-bottom: 0;
        font-weight: bold;
    }

    header .subtitle {
        margin: 5px 0px;
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .card {
        padding: 8px 5px;
        margin: 6px;
        max-width: 22rem;
        min-width: 21rem;
        width: -webkit-fill-available;
    }

    .card .title h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
        gap: 2px;
    }

    .card .title h2 i {
        font-size: 1rem;
        display: block;
    }

    .play-sound {
        background-size: 1.5rem;
        margin-left: 0.25rem;
    }

    #alt-template .play-sound .title h2 {
        gap: 0;
    }

    #content {
        /* padding: 1rem 1rem; */
        padding-top: 9rem;
        padding-bottom: 3.5rem;

        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #content.offline {
        padding: 0;
        padding-top: 9.5rem;
        padding-bottom: 3.5rem;
    }

    #content.grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #layouts {
        display: none;
    }

    #alt-template ul {
        padding-left: 20px;
        line-height: 10px;
    }

    summary {
        margin-left: 10px;
    }

    div.notes > ul {
        margin-bottom: 5px;
    }

    .notes.ref > ul {
        padding-left: 0px;
        list-style: none;
    }

    div.notes ul > li {
        margin-bottom: 0px;
    }

    .tooltip-parent:hover .tooltip,
    .tooltip-parent:active .tooltip {
        visibility: hidden;
    }
    .tooltip-parent a {
        border-bottom: unset;
    }
    .notes.ref ul li .tooltip-parent:first-child {
        width: 11.5rem;
    }
    .notes.ref ul li {
        padding: 3px 5px;
        /* width: 100%; */
    }
    nav {
        padding: 0.25rem 0.25rem;
    }
    #nav-online {
        display: flex;
        justify-content: space-between;
    }

    .sub-nav {
        flex-direction: row-reverse;
        /* gap: 0.25rem; */
        justify-content: center;
        align-items: center;
        background-color: unset;
        padding: 0;
    }
    .sub-nav div:first-child {
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
    }
    .sub-nav div:nth-child(3) .divider:nth-child(2) {
        display: none;
    }
    .sub-nav .filters {
        height: 0%;
        width: 100%;
        position: fixed;
        z-index: 1;
        bottom: 0;
        left: 0;
        padding: 0rem;

        border: 0;

        display: inline-flex;
        flex-direction: column;
        justify-content: start;
        gap: 1.5rem;

        font-weight: bold;
        font-size: 1.2rem;

        overflow-x: hidden;
        overflow-y: hidden;
        transition: 0.5s ease;
    }
    .sub-nav .filters.opened {
        height: 30%;
    }
    .sub-nav .filters.closed {
        height: 0%;
    }
    .sub-nav .filters > div:nth-child(1) {
        display: block;
        position: absolute;
        color: white;
        /* bottom: 14rem; */
        top: 1.05rem;
        left: 50%;
        font-size: 1.8rem;
        margin-left: -0.55rem;
        margin-bottom: 0.3rem;
        z-index: 11;
        cursor: pointer;
    }

    .sub-nav .filters > div:nth-child(2) {
        display: block;
        position: absolute;
        content: "";
        width: 2rem;
        height: 2rem;
        z-index: 10;
        top: 0px;
        left: 50%;
        margin-left: -1.1rem;
        background: #0469ce;
        border: 1px #0469ce solid;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);
        cursor: pointer;
        /* transition: 0.3 ease; */
    }
    .sub-nav .filters > div:nth-child(2):hover {
        background: #023971;
        border: 1px #023971 solid;
    }

    .sub-nav .filters > div:nth-child(3) {
        background-color: white;
        height: 90%;
        width: 80%;
        margin-top: 2rem;
        padding: 1rem 1rem;
        box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 1rem;
        border: 0;
    }
    .sub-nav > .filters > div:nth-child(3) > div:first-child {
        font-size: 1.8rem !important;
        width: 80%;
        border-bottom: 2px #0056b3 solid;
        padding: 0.5rem 0.5rem;
        padding-top: 0.5rem;
        display: block;
    }
    .sub-nav > .filters > div:nth-child(3) > div:nth-child(3) div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    @supports (backdrop-filter: blur()) or (-webkit-backdrop-filter: blur()) {
        .sub-nav .filters > div:nth-child(3) {
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);

            background-color: rgba(255, 255, 255, 0.8);
        }
        .sub-nav .filters > div:nth-child(3):after {
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);

            background-color: white;
        }
    }
    #menu {
        height: 100%;
        width: 0%;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;

        background-color: #0056b3;
        box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);

        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 1.5rem;

        font-weight: bold;
        font-size: 1.2rem;

        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 2rem;
    }
    #menu.closed {
        width: 0%;
    }
    #menu.opened {
        width: 60%;
    }
    #men #menu div {
        transition: 0.3s;
    }
    #menu button {
        transition: 0.3s;
    }
    #menu span {
        display: none;
    }
    #menu div:first-child {
        display: block;
        font-size: 2rem !important;
        padding-bottom: 1rem;
        border-bottom: 2px white solid;
    }
    #menu div:nth-child(2) {
        display: block;
        position: absolute;
        color: white;
        top: 0.5%;
        left: 85%;
        font-size: 1.7rem;
        transition: color 0.3s ease;
        cursor: pointer;
    }
    #menu div:nth-child(2):hover {
        color: aqua;
    }
    #menu div:nth-child(2):active {
        color: cornflowerblue;
    }
    @supports (backdrop-filter: blur()) or (-webkit-backdrop-filter: blur()) {
        #menu {
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px); /* Apply backdrop filter */

            background-color: #0057b3d8;
        }
        #menu:after {
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px); /* Apply backdrop filter */

            background-color: white;
        }
    }

    #phone-menu-container {
        display: flex;
        justify-content: start;
        align-items: center;
        /* padding: 0rem 1rem; */
        padding-right: 0;
        gap: 0.25rem;

        font-weight: 900;
        font-size: 1rem;

        transition: color 0.3s ease;
        transition: font-size 0.3s ease;
        width: fit-content;
    }
    #phone-menu {
        background: none;
        color: inherit;
        border: none;
        font: inherit;
        cursor: pointer;
        outline: inherit;
        display: block;

        padding: 0.3rem 0.3rem;

        background-color: white;
        border-radius: 0.5rem;
        border: 2px #0469ce solid;
        transition: background-color 0.3s ease;
    }

    #phone-menu .icon {
        background-color: #0469ce;
        -webkit-mask-image: url("/assets/icons/menu.svg");
        mask-image: url("/assets/icons/menu.svg");
        mask-repeat: no-repeat;
        mask-size: contain;
        mask-position: center;
        padding: 0.7rem;
    }
    #phone-menu:hover {
        background-color: #023971;
    }
    #phone-menu:hover .icon {
        background-color: #fff;
    }
    #phone-menu-container:hover {
        color: #023971 !important;
        font-size: 1.25rem;
    }

    /*
     */
    #filter-menu-container {
        display: flex;
        justify-content: start;
        align-items: center;
        padding: 0rem 0.5rem;
        gap: 0.25rem;

        font-weight: 900;
        font-size: 1rem;
        color: white;

        transition: color 0.3s ease;
        transition: font-size 0.3s ease;
        width: fit-content;
    }
    #filter-menu {
        background: none;
        color: inherit;
        border: none;
        font: inherit;
        cursor: pointer;
        outline: inherit;
        display: block;

        padding: 0.3rem 0.3rem;

        background-color: white;
        border-radius: 0.5rem;
        border: 2px #0469ce solid;
        transition: background-color 0.3s ease;
    }

    #filter-menu .icon {
        background-color: #0469ce;
        -webkit-mask-image: url("/assets/icons/filter.svg");
        mask-image: url("/assets/icons/filter.svg");
        mask-repeat: no-repeat;
        mask-size: contain;
        mask-position: center;
        padding: 0.7rem;
    }
    #filter-menu:hover {
        background-color: #023971;
    }
    #filter-menu:hover .icon {
        background-color: #fff;
    }
    #filter-menu-container:hover {
        color: #023971 !important;
        font-size: 1.25rem;
    }

    .game-select {
        width: 150px;
    }
    #game-timer {
        width: 6rem;

        padding: 0.25rem;
        padding-top: 1.25rem;

        font-size: 1.3rem;
        color: #0056b3;
        background-color: white;

        z-index: -1;

        border-radius: 0.5rem;

        position: absolute;
        bottom: -2rem;
        left: 50%;
        margin-left: -3.4rem;

        border: 2px #0469ce solid;
        box-shadow: 0 0 26px -7px rgba(0, 0, 0, 0.45);

        text-align: center;
    }
    #game-correct {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;

        width: 3rem;

        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 0.25rem;

        font-size: 1.2rem;
        background-color: #388e3c;
        color: white;
        font-weight: bold;
        text-align: center;

        z-index: -1;

        border-radius: 0.5rem;

        position: absolute;
        bottom: -3.5rem;
        left: 90%;
        margin-left: -4.1rem;
    }

    #game-incorrect {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;

        width: 3rem;

        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 0.25rem;

        font-size: 1.2rem;
        background-color: #d32f2f;
        color: white;
        font-weight: bold;
        text-align: center;

        z-index: -1;

        border-radius: 0.5rem;

        position: absolute;
        bottom: -3.5rem;
        left: 10%;
        margin-left: -1.2rem;

        text-align: center;
    }
    .card.game {
        width: 90%;
        text-align: center;
        margin-top: -5rem;
        height: 10%;
    }
    .game.question {
        gap: 0.25rem;
    }
    .game.question.title {
        font-size: 1.5rem;
    }
    .game.answers {
        width: 90%;
    }
    .card.game.answer {
        width: 100%;
        height: 3rem;
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
        margin: 0.3rem;
    }
    .card.game.answer:focus,
    .card.game.answer:active,
    .card.game.answer:hover {
        background-color: unset;
    }
    #go-app {
        padding: 5px 10px;
    }
    #practice-button {
        padding: 5px 10px;
        background-color: #023971;
    }
    #practice-button:hover {
        background-color: #034b7a;
    }
    #offline-button {
        padding: 5px 10px;
    }
    #nav-game {
        padding: 0.5rem 0.25rem;
    }
    #nav-game > div > div:nth-child(2) > div {
        font-size: 1.2rem !important;
    }
    #practice-mode {
        padding: 5px 10px;
    }
    .game-select::after {
        top: 5px;
    }
    .play-sound.game {
        background-size: 2.5rem;
        padding: 1.25rem;
    }
    .play-sound.game:hover {
        background-size: 2.5rem;
    }
}

/*OTHER WIDTH SIZE*/

@media only screen and (max-device-width: 400px) {
    .game.question.title {
        font-size: 1.25rem;
    }
    .play-sound.game {
        background-size: 2rem;
        padding: 1rem;
    }
    .play-sound.game:hover {
        background-size: 2rem;
    }
}

@media (max-device-height: 670px) {
    #game-incorrect {
        bottom: -2rem;
        padding-top: 1.25rem;
    }
    #game-correct {
        bottom: -2rem;
        padding-top: 1.25rem;
    }
    .card.game {
        margin-top: -4rem;
    }
    .card.game.answer {
        width: 100%;
        height: 2.5rem;
        font-size: 1.2rem;
        padding: 0.25rem 1rem;
        margin: 0.3rem;
    }
    dialog {
        width: 70%;
        height: 35%;
    }
}
