﻿
body{
background: #249d9f;
    font-family: MS San Serif;
    background-image: url("backgroundesign.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;


}
.Box{
    max-width: 1010px;
    margin: 50px auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 250px auto 300px;

}


nav, main {
  margin-left: 5px;
  margin-top: 5px;
    background: #2872e9;
    height: max-content;
    border-radius: 5px;
    padding: 15px;
    margin-top: 1px;
    margin-left: 1px;
    margin-bottom: 2.75px;
    box-shadow: 0 0 8px 8px white inset;
    border-radius: 5px;
    border: 1px solid black;
}

header{
    grid-row: 1 / 2;
    grid-column: 1 / 4;
    text-align: center;
    color:rgb(8, 29, 75);
    font-family: DigiBop;
  src: url(https://dl.dropbox.com/s/8maabpvuycdrlai/DigiBop-Regular.ttf);
  position: relative;
  }


nav{
    text-align: left;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    height: max-content;
    background: #a4cc63;
    background: linear-gradient(180deg, rgba(204, 255, 124, 1) 0%, rgba(255, 255, 255, 1) 50%);
    border: 1px solid black;
    border-radius: 5px;
    width: 190px;
    padding: 5px;
    font-size: 1.125em;
    
    
}

main{
    grid-row: 2 / 3;
    grid-column: 2 / 4;
    height: max-content;
   color:rgb(42, 74, 101);
   text-align: center;
   color: white;

}

footer{
    grid-row: 4 / 5;
    grid-column: 1 / 4;
    color:rgb(42, 74, 101);
    text-align: center;
     margin-top: 10px;
  margin-left: 10px;
  overflow: hidden;
  position: relative;
  width: 415px;
}

h2 {
    text-align: center;
}

p{
    text-indent: 20px;
    text-align: center;
}

.Navbar ul{
list-style-type: none;
overflow: hidden;
}

.Navbar a{
    color: #000000;
    text-decoration: none;
    padding: 15px;
    display: block;
}

.Navbar a:hover{
    background-color:#4a9a6a;
}

.Navbar li{
    float: Center;
    color: white;
}

.nav-settings label{
    display: block;
    padding: 15px;
    cursor: pointer;
}

div{
 grid-row: 2 / 3;
    grid-column: 3 / 4;
    height: max-content;
   color:rgb(42, 74, 101);
   text-align: center;

}

.quiz-section{
    grid-row: 2 / 3;
    grid-column: 2 / 4;
    height: max-content;
    background: #2872e9;
    border-radius: 5px;
    padding: 25px;
    margin-top: 1px;
    box-shadow: 0 0 8px 8px white inset;
    border: 1px solid black;
    font-size: 1.3em;
    color: white;
    
}

#quiz-container{
    max-width: 700px;
    margin: 0 auto;
}

#quiz-start-btn, #quiz-next-btn{
    background-color:  #1a57b9;
    border: 1px solid black;
    border-radius: 5px;
    color: white;
    padding: 14px 28px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 10px;
}

#quiz-start-btn:hover, #quiz-next-btn:hover{
    background-color: #0b3c8d;
}

.quiz-progress{
    font-weight: bold;
    color: white;
}

.quiz-question{
    font-size: 1.15em;
    color: white;
}

.quiz-options{
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.quiz-option{
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 5px;
    padding: 14px;
    width: 100%;
    max-width: 600px;
    cursor: pointer;
    font-size: 1.1em;
}

.quiz-option:hover:not(:disabled){
    background-color: #CCFF7C;
}

.quiz-option:disabled{
    cursor: default;
}

.quiz-option.correct{
    background-color: #7CFF8C;
    border-color: rgb(22, 203, 22);
}

.quiz-option.incorrect{
    background-color: #FF8C8C;
    border-color: darkred;
}

.quiz-feedback{
    font-weight: bold;
    text-indent: 0;
    color: white;
}

.quiz-feedback.correct-text{
    color: green;
}

.quiz-feedback.incorrect-text{
    color: darkred;
}

.phe-row{
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
}

.phe-row p{
    text-align: left;
    text-indent: 0;
    flex: 1;
}

.phe-img{
    flex-shrink: 0;
    max-width: 45%;
    height: auto;
    margin-left: auto;
}

.quiz-rank{
    color: white;
}

.quiz-score{
    font-size: 1.3em;
    font-weight: bold;
    color: white;
}

.bg-music-player{
    position: fixed;
    bottom: 10px;
    right: 10px;
    height: 32px;
    z-index: 100;
}

/* ---- Decoration placeholders ----
   Swap these out for real images/icons later.
   Just replace the <div class="decoration ..."> with an <img> tag
   (or set a background-image on the class) once art is ready. */
.decoration{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.35);
    border: 2px dashed rgba(8, 29, 75, 0.6);
    border-radius: 12px;
    color: rgba(8, 29, 75, 0.75);
    font-size: 0.7em;
    line-height: 1.3;
    text-align: center;
    padding: 4px;
    pointer-events: none;
    user-select: none;
}

.decoration-emoji{
    font-size: 1.6em;
    line-height: 1;
}

.decoration-corner-left{
    position: absolute;
    top: 8px;
    left: 8px;
    width: 72px;
    height: auto;
}

.decoration-corner-right{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 72px;
    height: 72px;
}

.decoration-nav{
    display: block;
    margin: 15px auto 5px;
    width: 100px;
    height: auto;
}

.decoration-footer{
    margin: 8px auto 0;
    width: 90%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.decoration-main{
    margin: 15px auto;
    width: 100%;
    max-width: 300px;
    height: 60px;
}

.decoration-img{
    position: absolute;
    top: 8px;
    right: 12px;
    width: 56px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}