html {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

body {
    font-family: "Open Sans", sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    perspective: 800px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    width: 70vw;
    max-width: 400px;
    height: 60vw;
    max-height: 250px;
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.card:hover {
    width: calc(70vw * 1.02);
    max-width: calc(400px * 1.02);
    height: calc(60vw * 1.02);
    max-height: calc(250px * 1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-container {
    width: 100%;
    justify-self: flex-end;
}

.btn {
    backdrop-filter: blur(1px);
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
    background-color: rgb(165 165 165 / 50%);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: .2s;
}

.btn:hover {
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn span {
    display: inline-block;
    transition: .2s;
}

.btn:active > span {
    transform: translateY(2px);
}

#credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #555;
    transition: .2s;
}

#error {
    color: #ff0000;
    text-align: center;
    width: 100%;
    margin-top: 30px;
    display: none;
    position: absolute;
    bottom: 50px;
}

.heading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-clip: text !important;
    color: transparent;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    position: absolute;
    font-weight: bold;
    transition: font-size .2s;
}

.options-container {
    font-family: "Lexend", "Open Sans", sans-serif;
    font-weight: bold;
    display: flex; 
    flex-wrap: wrap;
    width: 100%;
    height: 60%;
    gap: 10px;
}

.option {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 calc(50% - 5px);
    height: 50%;
    width: 100%;
    backdrop-filter: blur(1px);
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
    background-color: rgb(165 165 165 / 50%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 30px;
    transition: .2s;
}

.option.a::after {
    content: "A";
    color: #000;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 70px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.option.b::after {
    content: "B";
    color: #000;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 70px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.option.c::after {
    content: "C";
    color: #000;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 70px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.option.d::after {
    content: "D";
    color: #000;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 70px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.options-container .two-options {
    display: flex; 
    flex-flow: row;
    width: 100%;
    height: 60%;
}

.two-options > .option {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(1px);
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
    background-color: rgb(165 165 165 / 50%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 30px;
    transition: .2s;
}

/* card one */

#one {
    justify-content: end;
    z-index: 1;
    background-color: #fff;
}

#one::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.3;
    background: url('files/1.jpg') center center / cover no-repeat;
}

#one:hover > #title, #one:hover > #btn-one {
    font-size: calc(1.85em * 1.02);
}

#title {
    transform: translateY(21px);
    font-size: 1.85em;
    background: url('files/1.jpg') center center / cover no-repeat;
}

/* card two */

#two {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#two::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/2.jpg') center center / cover no-repeat;
}

#difficulty {
    transform: translateY(-90px);
    font-size: 1.25em;
    background: #000;
}

#two:hover > #difficulty, #two:hover > #btn-two {
    font-size: calc(1.25em * 1.02);
}

/* card three easy */

#e-three {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#e-three::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/easy/3.jpg') center center / cover no-repeat;
}

#e-question-one {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

@media all and (max-width: 400px) {
    .option.b#madrid {
        font-size: 25px !important;
    }
}

#e-three:hover > #e-question-one, #e-three:hover > #e-btn-three {
    font-size: calc(1.25em * 1.02);
}

/* card four easy */

#e-four {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#e-four::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/easy/4.jpg') center center / cover no-repeat;
}

#e-question-two {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #000;
}

@media all and (max-width: 502px) {
    .option.b#washington {
        font-size: 15px !important;
    }
}

#e-four:hover > #e-question-two, #e-four:hover > #e-btn-four {
    font-size: calc(1.25em * 1.02);
}

/* card five easy */

#e-five {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#e-five::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/easy/5.jpg') center center / cover no-repeat;
}

#e-question-three {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #000;
}

@media all and (max-width: 410px) {
    .option.d#warsaw {
        font-size: 25px !important;
    }

    .option.a#prague {
        font-size: 25px !important;
    }
}

#e-five:hover > #e-question-three, #e-five:hover > #e-btn-five {
    font-size: calc(1.25em * 1.02);
}

/* card six easy */

#e-six {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
    will-change: transform, opacity; 
}

#e-six::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.5;
    background: url('files/easy/6.jpg') center center / cover no-repeat;
}

#e-question-four {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #000;
}

#e-six:hover > #e-question-four, #e-six:hover > #e-btn-six {
    font-size: calc(1.25em * 1.02);
}

/* card seven easy */

#e-seven {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#e-seven::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.5;
    background: url('files/easy/7.jpg') center center / cover no-repeat;
}

#e-question-five {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #000;
}

@media all and (max-width: 480px) {
    .option.a#qingdao {
        font-size: 23px !important;
    }
}

@media all and (max-width: 440px) {
    .option.b#beijing {
        font-size: 25px !important;
    }
}

#e-seven:hover > #e-question-five, #e-seven:hover > #e-btn-seven {
    font-size: calc(1.25em * 1.02);
}

/* card eight easy (results) */

#eight {
    justify-content: end;
    align-items: center;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#eight::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.5;
    background: url('files/8.jpg') center center / cover no-repeat;
}

#results-title {
    color: #797979;
    font-size: 1.85em;
    font-weight: bold;
    transition: .2s;
    margin: 0;
}

@media all and (max-width: 500px) {
    #results-title {
        font-size: 1em;
    }

    #eight:hover > #results-title {
        font-size: calc(1em * 1.02);
    }
}

#results {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 200%;
    padding: 20px;
    backdrop-filter: blur(1px);
    color: #fff;
    background-color: rgb(121 121 121 / 70%);
    border-radius: 10px;
    transition: .2s;
    margin-top: .5em;
}

#results-body {
    color: #797979;
}

#eight:hover > #results-title {
    font-size: calc(1.85em * 1.02);
}

#eight:hover > #results-body {
    font-size: calc(1em * 1.02);
}

#eight .btn-container .btn {
    background-color: rgb(140 140 140 / 50%);
} 

/* card three hard */

#h-three {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-three::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/3.jpg') center center / cover no-repeat;
}

#h-question-one {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

@media all and (max-width: 540px) {
    .option.d#prishtina {
        font-size: 20px !important;
    }

    .option.a#ljubljana {
        font-size: 18px !important;
    }
}

@media all and (max-width: 488px) {
    .option.c#belgrade, .option.b#prizren {
        font-size: 23px !important;
    }
}

@media all and (max-width: 400px) {
    .option.c#belgrade {
        font-size: 20px !important;
    }
}

#h-three:hover > #h-question-one, #h-three:hover > #h-btn-three {
    font-size: calc(1.25em * 1.02);
}

/* card four hard */

#h-four {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-four::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/4.jpg') center center / cover no-repeat;
}

#h-question-two {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

#h-four:hover > #h-question-two, #h-four:hover > #h-btn-four {
    font-size: calc(1.25em * 1.02);
}

/* card four hard */

#h-four {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-four::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/4.jpg') center center / cover no-repeat;
}

#h-question-two {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

@media all and (max-width: 400px) {
    .option.b#durban, .option.a#maputo {
        font-size: 25px !important;
    }
}

#h-four:hover > #h-question-two, #h-four:hover > #h-btn-four {
    font-size: calc(1.25em * 1.02);
}

/* card five hard */

#h-five {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-five::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/5.jpg') center center / cover no-repeat;
}

#h-question-three {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #000;
}

@media all and (max-width: 408px) {
    .option.a#noumea {
        font-size: 25px !important;
    }
}

#h-five:hover > #h-question-three, #h-five:hover > #h-btn-five {
    font-size: calc(1.25em * 1.02);
}

/* card six hard */

#h-six {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-six::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/6.jpg') center center / cover no-repeat;
}

#h-question-four {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

@media all and (max-width: 424px) {
    .option.c#caracas {
        font-size: 25px !important;
    }
}

@media all and (max-width: 466px) {
    .option.b#managua {
        font-size: 23px !important;
    }
}

@media all and (max-width: 412px) {
    .option.d#manama {
        font-size: 25px !important;
    }
}

@media all and (max-width: 400px) {
    .option.b#jeddah {
        font-size: 25px !important;
    }
}

#h-six:hover > #h-question-four, #h-six:hover > #h-btn-six {
    font-size: calc(1.25em * 1.02);
}

/* card seven hard */

#h-seven {
    justify-content: end;
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
    background-color: #fff;
    transition: .2s;
}

#h-seven::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 102%;
    transform: translateY(-2px);
    opacity: 0.7;
    background: url('files/hard/7.jpg') center center / cover no-repeat;
}

#h-question-five {
    transform: translateY(-90px);
    font-size: 1.25em;
    background-color: #fff;
}

#h-seven:hover > #h-question-five, #h-seven:hover > #h-btn-seven {
    font-size: calc(1.25em * 1.02);
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#name-input {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#save-btn {
    width: calc(90% + 20px);
    padding: 10px 0;
}

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

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

.popup-container {
    animation: fadeIn 0.5s;
}

#summary-popup .popup {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 32.67px;
    cursor: pointer;
}

#summary-scores {
    overflow-y: scroll;
    max-height: 300px;
    width: 70vw;
    max-width: 300px;
}
