
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100px;
    font-family: 'Arial', sans-serif;
    background-color: white; 
}
.container {
  margin: 15px;
    display: flexbox;
    height: 100vh; 
    flex-direction: row;
    align-items: stretch;
}

#mainContent {
    flex: 3; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border-radius: 10px; 
}

#questionBox {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    border-bottom: 2px solid #ccc; 
    padding: 20px;
    font-size: 20px; 
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s ease; 
}

#questionBox:hover {
    background-color: #e8e8e8;
    border-color: #000;
}


.option-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px; 
}

.option-text {
    margin-left: 15px; 
    text-align: left; 
    display: block; 
    font-size: 18px; 
}


.option-image {
    width: 50%; 
    max-width: 50%; 
    object-fit: cover; 
    padding: 10px; 
    margin-right: 15px; 
   
}


#controls {
    margin: 20px 0; 
    display: flex;
    justify-content: space-between; 
    width: 100%;
    max-width: 800px;
}

#controls button {
    margin: 10px;
    padding: 14px 28px; 
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease; 
    font-weight: bold;
}
#prevButton {
    color: black; 
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #000;
    background-color: lightgray;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
}
#prevButton:hover {
    background-color: black;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.4);
    color: #fff;
    transform: translateY(-7px);
}
#prevbutton:active {
    transform: translateY(-1px);
  }

#nextButton {
    color: black; /* Text color */
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #000;
    background-color: lightgrey;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    
}

#nextButton:hover {
      background-color: blue;
      box-shadow: 0px 15px 20px rgba(1, 9, 255, 0.4);
      color: #fff;
      transform: translateY(-7px);
}
#prevbutton:active {
    transform: translateY(-1px);
  }
#submitButton {
  background-color: lightgray;
    height: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    width: 150px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}
#submitButton::after {
    content: "Confirm";
    height: 50px;
    width: 150px;
    background-color: #008080;
    color: #fff;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(50px);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
#submitButton::before {
    content: "Submit";
    height: 50px;
    width: 150px;
    background-color: lightgray;
    color: #008080;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(0px) scale(1.2);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
  #submitButton:hover::after {
    transform: translateY(0) scale(1.2);
  }
  
#submitButton:hover::before {
    transform: translateY(-50px) scale(0) rotate(120deg);
  }

#homeButton {
    display: none;
    margin-top: 20px; 
    background-image: linear-gradient(to right, #6222CC, #6222CC); 
    padding: 14px 28px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    color: white; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: fixed;
    bottom: 10px; 
    right: 20px; 
      position: fixed;
      top: 89%; 
}

#homeButton:hover {
    background-image: linear-gradient(to right, #882177, #7e1e78); 
}

#homeButton:active {
    background-image: linear-gradient(to right, #7e1e1e00, #ad0000); 
}

#questionNavContainer {
  flex: 1; 
  background-color: #f8f9fa;
  padding: 20px; 
  border-radius: 25px; 
  overflow-y: auto;
  display: flex; 
  flex-direction: column; 
  align-items: center;
  position: sticky; /* Makes it sticky */
  bottom: -40px; /* Distance from the top when it sticks */
  z-index: 1000; /* Ensures it stays above other elements if needed */
}
.parentContainer {
  height: 100vh; /* Full viewport height */
  overflow-y: scroll; /* Scrollable parent */
}

#questionNav {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap; 
    justify-content: center; 
    max-height: calc(100vh - 80px); 
    overflow-y: auto; 
    gap: 10px; 
}

#questionNav li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 4px; 
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    list-style-type: none; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#questionNav li.answered {
    background-color: green;
    color: white; 
}

#questionNav li:not(.answered) {
    background-color: lightgray; 
    color: #555; 
}

#questionNav li:hover {
    background-color:#6222CC;
    color: rgba(255, 255, 255, 0.699);
}
#quizResults {
    position: relative;
    width: 100vw; 
    height: 100vh; 
    overflow-y: auto; 
    padding: 20px;
    background-color: #f9f9f9;
    box-sizing: border-box; 
}
#questionBox h4 {
    margin-top: 20px;
}

#questionBox p {
    margin: 5px 0;
}

.wrong-answer {
    color: red;
}

.correct-answer {
    color: green;
}
h1,
h2,
.fw-bold {
    font-weight: 700 !important;
    color: #6222CC;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}
.button {
    height: 50px;
    width: 150px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
  }
  .type1::after {
    content: "Confirm";
    height: 50px;
    width: 150px;
    background-color: blueviolet;
    color: black;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(50px);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
  
  .type1::before {
    content: "Submit";
    height: 50px;
    width: 150px;
    background-color: #fff;
    color:  red;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(0px) scale(1.2);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
  
  .type1:hover::after {
    transform: translateY(0) scale(1.2);
  }
  
  .type1:hover::before {
    transform: translateY(-50px) scale(0) rotate(120deg);
  }
  #nextbutt{
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
  }
  
  #nextbutt:hover {
    background-color: #23c483;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
  }
  
#nextbutt:active {
    transform: translateY(-1px);
  }
  #prevbutt{
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
  }
  
  #prevbutt:hover {
    background-color: black;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
  }
  
#prevbutt:active {
    transform: translateY(-1px);
  }
  .button {
    height: 50px;
    width: 150px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
  }
  
  .button:hover {
    box-shadow: .5px .5px 150px #252525;
  }
  
  .type1::after {
    content: "Thanks";
    height: 50px;
    width: 150px;
    background-color: #008080;
    color: #fff;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(50px);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
  
  .type1::before {
    content: "Hover Me";
    height: 50px;
    width: 150px;
    background-color: #fff;
    color: #008080;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translateY(0px) scale(1.2);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
  }
  
  .type1:hover::after {
    transform: translateY(0) scale(1.2);
  }
  
  .type1:hover::before {
    transform: translateY(-50px) scale(0) rotate(120deg);
  }
  footer {
    background-color: #6222CC;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .social-icons {
    margin: 10px 0;
   font-family: 'Times New Roman', Times, serif;
}

footer .social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
}

footer .social-icons a:hover {
    color: black;
}

footer p {
    margin: 10px 0 0;
    font-size: 14px;
}
