/*========================================================
          Sitewide Styles
==========================================================*/
/*multiple selector*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  margin: 0;
}

body {
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  color: #333;
  background-color: #31a2ac;
  margin-top: 0;
  text-align: center;
  font-size: 1em;
}

.bg {
  /* The image used */
  background-image: url("img/bg1.jpg");

  /* Full size */
  width: 100%;
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment:fixed;
  background-position:100% 100%;
}

h1, h2, h3{
  color: #31a2ac;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 4em;
}

h1 {
  font-family: 'Lobster', cursive;
}

/*========================================================
          Index Section
========================================================*/

/*styling onboarding area*/
/*========================================================
          Pagination Tabs
========================================================*/
.tabs {
  display: flex;
  justify-content: space-between;
  width: 100%;  /* Ensures the tabs container takes up the full width */
}

.tab-button {
  background-color: #31a2ac;
  color: white;
  padding: 15px;
  cursor: pointer;
  font-size: 16px;
  /* Make each tab button expand to fill the available space */
  flex-grow: 1;  /* Each button takes up equal width */
  text-align: center;  /* Center the text inside each button */
  margin: 0 1px;  /* Remove margin between buttons */
  transition: background-color 0.3s ease;
  border: 0;
  min-height: 80%;
}

.tab-button:hover {
  background-color: #acacac;
  border: 0;
}

.tab-button:not(.active) {
  background-color: #31a2ac;
}

.tab-button.active {
  background-color: #d08932;
  border-radius: 14px 0 0 0;
  -webkit-border-radius: 14px 0 0 0;
  -moz-border-radius: 14px 0 0 0;
  -ms-border-radius: 14px 0 0 0;
  -o-border-radius: 14px 0 0 0;
}

.tab-button:not(.active) {
  background-color: #31a2ac;
  border-radius: 0 14px 0 0;
  -webkit-border-radius: 0 14px 0 0;
  -moz-border-radius: 0 14px 0 0;
  -ms-border-radius: 0 14px 0 0;
  -o-border-radius: 0 14px 0 0;
}

.tab-content {
  display: none;
  padding-bottom: 32px;
  border-radius: 0 0 14px 14px;
  -webkit-border-radius: 0 0 14px 14px;
  -moz-border-radius: 0 0 14px 14px;
  -ms-border-radius: 0 0 14px 14px;
  -o-border-radius: 0 0 14px 14px;
}

.tab-content h2 {
  color: #333;
}

#newLog {
  background-color: #fbc88a;
}

#reLog {
  background-color: #c7f7fc;
}


h2 {
  color: #31a2ac;
  font-size: 1.5em;
}

input[type="text"], input[type="email"], input[type="hidden"] {
  padding: 10px;
  margin-bottom: 10px;
  width: 80%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background-color: #31a2ac;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #26928b;
}

button:focus {
  outline: none;
}

/* Remove border radius from buttons */
.tab-button, button {
  border-radius: 0;
}


/*========================================================
          Quiz Section
========================================================*/
/*styling quiz area*/
.main {
  background-color: white;
  opacity: 0.9;
  margin: 0 auto;
  margin-top: 30px;
  padding: 10px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  max-width: min(80%, 900px);
}

.scrollable{
  padding: 10px;
  max-height: 70vh;
  overflow-y: scroll;
  scrollbar-width: thin;
}
.q-details{
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-weight: bolder;
  font-size: 1.4em;
}
.quiz-questions{
  margin: auto;
  max-width: 640px;
  text-align: justify;
}
#quiz-results {
  text-align: center;
}
.yt-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*Editing the number of questions
span {
  float: left;
}

span {
  float: left;
}*/

/*format text*/
p {
  padding: 10px 10px 0;
}

/*Form area width*/
.form-area, ul {
  margin: 20px auto;
  max-width: 640px;
}

/*formatting answers*/
ul li {
  list-style-type: none;
  text-align: left;
  background-color: transparent;
  margin: 10px 5px;
  padding: 5px 10px;
  border: 2px solid lightgray;
  border-left:4px solid lightgray;
  font-weight: normal;
}

ul li:hover {
  background: #e1f6db;
}

/*formatting response section*/
.response{
  margin-bottom: 24px;
}

/*Change effect of question when the questions is selected*/
.selected, .selected:hover {
  background: #FFDEAD;
}

/*change correct answer background*/
.correct, .correct:hover {
  background: #9ACD32;
  color: white;
}

/*change wrong answer background*/
.wrong, .wrong:hover {
  background: #db3c3c;
  color: white;
}

.quiz-questions img {
  max-width: 100%;
  height: auto;
}

li img {
  max-width: 100%;
  height: auto;
}

/*========================================================
        Submit Button
========================================================*/
.main button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  width: 20%;
  border: none;
  padding: 15px;
  color: #FFFFFF;
}

.submit:hover, .submit:active, .submit:focus {
  background: #43A047;
}

.submit {
  background: #4CAF50;
  min-width: 120px;
}

/*next question button*/
.next {
  background: #fa994a;
  min-width: 120px;
}

.next:hover, .next:active, .next:focus {
  background: #e38a42;
}

.restart {
  background-color: #FFFFFF;
}
