* {
    margin-bottom: 0;
    padding: 0;
    font-family: 'Asul', 'Franklin Gothic Medium', serif;
    font-weight: 700;
    box-sizing: border-box;
}

  /* Page scroll bar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: rgba(18, 18, 18, 0.95);
    border-radius: 50px;
  }
  ::-webkit-scrollbar-thumb {
    background: #BFA14A;
    border-radius: 50px;
  }


body {
    background: #f2f0e6;
}
.app {
    background: #fff;
    width: 90%;
    max-width: 600px;
    margin: 0px auto 0px;
    border-radius: 10px;
    padding: 30px;
    padding-top: 50px;
    margin-bottom: 0;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.app h1 {
    font-size: 25px;
    color: rgb(128,0,0);
    font-weight: 600;
    border-bottom: 3px solid gold;
    padding-bottom: 30px;
    padding-top: 30px;
    margin-bottom: 0;
    text-align: center;
    font-family: "Bruno Ace SC", sans-serif;
    
}

.quiz {
    padding: 20px 0;
    display: block;
    font-family: 'Asul', 'Franklin Gothic Medium', serif;
    font-weight: bold;
}

.quiz h2 {
    font-size: 18px;
    color: rgb(128,0,0);
    font-weight: 600;
}

.btn {
    background: #fff;
    color: #222;
    font-weight: 500;
    width: 100%;
    border: 1px solid #222;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.btn:hover:not([disabled]){
    background: gold;
    color: #fff;
}

.btn:disabled{
    cursor: default;
}

.modal{
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content{
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.leaderboard{
    display: none; /* Hidden until quiz ends */
    text-align: center;
    z-index: 100;
    height: 300px;
    overflow-y: auto;
}
.leaderboard ul{
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.app .leaderboard {
    display: none;  /* Hidden initially */
    text-align: center;
}

/* Show the leaderboard at the end of the game */
.app .leaderboard.show {
    display: block;
}

/* When game ends, show the leaderboard */
.app.game-ended .leaderboard {
    display: block;
}

.app:not(.game-ended) .leaderboard {
    display: none !important;
}

.leaderboard ul li {
    margin-bottom: 10px; /* Adjust this value to control the vertical spacing between entries */
}

.leaderboard ul li span.name {
    margin-right: 30px; /* Adjust this to control the space between the name and score */
}


.leaderboard-heading{
    font-family: "Bruno Ace SC", sans-serif;
    border-bottom: 3px solid gold;
    color: rgb(128, 0, 0);
}

.leaderboard .name{
    display: inline-block;
    flex: 1;

}

.leaderboard .score{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 20;
}

.score{
    float: right !important;
}

.leaderboard .header .score{
    display: block;
    float: right;
    padding-right: 20px;
    right: 20;
    margin-left: 30px;
}

.leaderboard .li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}

.leaderboard li.header{
    display: flex;
    justify-content: space-between;
    gap: 70px;

}

.leaderboard li{
    gap: 70px;
    display: flex;
}

.submit-name-btn {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

/* Centering name input and submit button */
.name-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.name-container button {
    margin-left: 10px;
}

.input-field {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#next-btn{
    background: rgb(128,0,0);
    color: #fff;
    font-weight: 500;
    width: 150px;
    border: 0;
    padding: 10px;
    margin: 20px auto 0;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.correct{
    background: green;
    box-shadow: 0 5px 20px 5px rgba(50, 167, 51, 0.8);
}

.incorrect{
    background: red;
    box-shadow: 0 5px 20px 5px rgba(190, 26, 26, 0.8);
}

nav{
    font-size: 1.2em;
    font-family: 'Asul', 'Franklin Gothic Medium', serif;
    font-weight: 700;
    text-align: center;
    padding-left: 0px;
    padding-right: 10px;
    margin-top: 0;
    padding-top: 0;
    margin: 0;
    padding: 0;
    background-color: rgba(18, 18, 18, 0.95);
    color: white;
    position: fixed;
    top: 0;
    text-decoration: none;
    width: 100%;
    height: 30px;
    opacity: 1;
    z-index: 1500;
    justify-content: space-evenly;
    display: inline-flex;
    flex-direction: row;
    overflow: visible;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 25px;
}

#homelogo{
    width: 100px;
    height: 50px;
    padding-top: 0px;
    margin-top: 0px;
    padding-left: 20px;
    margin-left: 0px;
    padding-right: 10px;
    margin: 0;
    top: 0px;
    left: 0px;
    position: absolute;
    vertical-align: top;
    justify-content: top;
    float: left;
  }

.dropdownButton{
    float: none;
    border: none;
    color: white;
    margin-bottom: 0;
    margin-top: 0;
    background-color: inherit;
    font-family: inherit;
    overflow: visible;
    cursor: pointer;
    padding: 15px;
    padding-bottom: 0;
    right: 10;
    font-size: 1em;
    height: 50px;
    width: 50px;
    border: none;
    border-radius: 0;
    white-space: nowrap;
    position: absolute;
    vertical-align: top;
    justify-items: top;
    padding-right: 20px;
}

.dropdownButton:hover, .dropdownButton:focus{
    color: #BFA14A;
    height: 50px;
    width: 50px;
} 

.dropdown{
    position: relative;
    right: 20;
    top:-15px;
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding-right: 80px;
    padding-top: 0px;
    margin-top: 0px;
    vertical-align: top;
    justify-items: content;
}

.dropdownContent{
    display: none;
    position: absolute;
    top: 150%;
    z-index: 0.1;
    background-color: rgba(18, 18, 18, 0.95);
    width: 150px;
    font-size: 0.8em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    float: left;
    box-shadow: 0px 4px 12px 0px rgb(3,0,0);
    color: inherit;
    overflow: visible;
    left: auto;
    right: 0;
    margin-right: 30px;
    margin-top: -20;
    border-radius: 20px;
}

.dropdownContent>a{
    color: inherit;
    padding: 15px 15px;
    display: block;
    color: white;
}

.dropdownContent>a:hover{
    color: #BFA14A;
}

.show{
    display: block;
    color: inherit;
}

nav, .dropdownContent{
    display: none;
    text-decoration: none;
    color: inherit;
}

.bar, .dropdownButton{
    display: inline-flex;
    width: 100%;
    margin: 0;
    color: white;
    font-size: 1.2em;
}

nav, .dropdown:hover .dropdownContent{
  display: block;
}

#unit{
    display: inline-flex;
    color: inherit;
    font: white;
    padding: 10px;
    height: 50px;
}

.text{
    width: 65%;
    float: left;
    padding-top: 80px;
    padding-left: 10px;
    padding-right: 0px;
    padding-bottom: 50px;
    margin-top: 0;
    margin-left: 50px;
    margin-right: 0%;
    position: static;
}

.cormorant-upright-bold {
    font-family: "Cormorant Upright", serif;
    font-weight: 700;
    font-style: normal;
  }
  .map{
    z-index: 0;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 100px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border: none;
    border-radius: 20px;
}
.imageOne{
    z-index: 1;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border: none;
    border-radius: 20px;
}

.imageTwo{
    z-index: 2;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageThree{
    z-index: 3;
    width: 25%;
    height: 200px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageFour{
    z-index: 4;
    width: 25%;
    height: 200px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageFive{
    z-index: 4;
    width: 25%;
    height: 200px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageSix{
    z-index: 4;
    width: 25%;
    height: 200px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageSeven{
    z-index: 4;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageEight{
    z-index: 4;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

.imageNine{
    z-index: 4;
    width: 25%;
    height: 300px;
    float: right;
    padding-top: 20px;
    padding-left: 5px;
    padding-bottom: 20px;
    padding-right: 50px;
    margin-top: 0;
    border-radius: 20px;
}

figcaption{
    float: right;
    padding-right: 90px;
    padding-top: 0px;
    margin-top: 0px;
    padding-bottom: 40px;
    width: 270px;
    font-size: 0.9em;
}

a{
    text-decoration: none;
}

nav a{
    color: inherit;
    padding: 0 25px;
    flex-grow: 1;
    word-spacing: 0%;
}

nav .bar{
    justify-content: space-between;
    display: flex;
    width: 100%;
}

header{
    margin-top: 0;
    padding-top: 0;
}

html{
    margin-top: 0;
    margin-left: 0;
    padding-top: 0;
    background-color: #f2f0e6;
    overflow-x: hidden;
}

body{
    margin-top: 0;
    padding-top: 0;
    margin-left: 0;
    margin: 0;
}

div{
    margin-left: 0;
}


article{
    padding: 0;
    margin: 0;
}

div>p{
    margin-left: 0;
    padding-left: 0;
}

figure{
    margin-top: 0;
    padding-top: 0;
    margin: 0;
    padding: 0;
}

img{
    margin-top: 0;
}

article{
    margin-top: 0;
    padding-top: 0;
}

footer{
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding-bottom: 0;
    padding-left: 200px;
    padding-right: 200px;
    text-align: left;
    background-color: rgba(18, 18, 18, 0.95);
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    line-height: 20px;
    width: 100%;
    position: fixed;
    bottom: 0;
    display: flex;
    clear: both;
    justify-content: space-between;
}

footer>div>p{
    margin: 0;
    padding: 5px;
}

footer>div>p>a{
    color: white;
}

.flexbox97{
    text-align: left;
    display: inline-flex;
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 10px;
}

.flexbox98{
    text-align: center;
    display: inline-flex;
    padding-left: 10px;
    padding-right: 10px;
}

.flexbox99{
    text-align: center;
    display: inline-flex;
    padding-left: 10px;
    padding-right: 10px;
}

.flexbox100{
    text-align: right;
    display: inline-flex;
    padding-left: 10px;
    padding-right: 10px;
}

.flexbox101{
    float: right;
    display: inline-flex;
    
}

.checked, .fa-star-half-full{
    color: gold;
}

br{
    padding: 0;
    margin: 0;
}


a:hover{
    color: #BFA14A;
}

nav>div>a{
    color: white;
    cursor: pointer;
    text-decoration: none;
    width: 100%;   
}

.bruno-ace-sc-regular {
    font-family: "Bruno Ace SC", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  
  .asul-bold {
    font-family: "Asul", serif;
    font-weight: 700;
    font-style: normal;
  }

  a:hover{
    color: #BFA14A;
}

nav a:hover:not(#homelogo) {
    transform: scale(1.05); /* Applies transform on hover for all except the logo */
  }
  
nav #homelogo:hover {
    transform: none !important; /* Prevents the transform on hover for the logo */
  }
  
  