body {
  background: lightskyblue;
  font-family: "lido", Arial;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

h2 {
  text-align: left;
  margin: 2rem 0 0.5rem 0;
}

h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem 0;
}

li {
  font-size: 1.2rem;
  font-weight: 500;
}

th {
  font-weight: 900;
  padding-left: 0.4rem;
  margin-bottom: 0.8rem;
}

td {
  margin-bottom: 0.8rem;
}

.name-column {
  text-align: left;
}

a {
  font-size: 1.2rem;
  text-decoration: underline;
  color: black;
}

a:hover {
  font-weight: 590;
}

.main-content {
  background: deepskyblue;
  display: flex;
  flex-direction: column;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.header-bar{
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 66rem;
}

.page-container {
  display: flex;
  flex-direction: row;
}

.sidebar-nav {
  background: dodgerblue;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  min-width: 7rem;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

.sidebar-nav img {
  width: 5rem;
}

.page-content {
  padding: 1rem;
}

ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 0;
}

.answer-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.standard-button {
  background-color: lightgrey;
  color: black;
  border: none;
  border-radius: 4px;
  min-width: 7rem;
  min-height: 3rem;
  font-size: 1.4rem;
  cursor: pointer;
  margin: 0.5rem;
}

.standard-button:disabled {
  background-color: grey;
  cursor: not-allowed;
}

.correct-button {
  background-color: lightgreen;
  color: black;
  border: none;
  border-radius: 4px;
  min-width: 7rem;
  min-height: 3rem;
  font-size: 1.4rem;
  cursor: pointer;
  margin: 0.5rem;
}

.head-icon {
  transform-origin: bottom left;
  animation: nodding 2s linear infinite;
} 

@keyframes nodding {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0eg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.sidebar-nav img {
  margin: 0.6rem;
}

.sidebar-nav img:hover {
  transform: scale(1.2);
  transition: transform 0.2s;
}

.sidebar-nav button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.topic-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.topic-header img {
    width: 6rem;
    height: 6rem;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.subject-tab-bar {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.subject-tab {
  background-color: dodgerblue;
  border: 2px solid grey;
  border-bottom: none;
  border-radius: 4px;
  min-width: 7rem;
  min-height: 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.subject-tab a {
  color: rgb(77, 77, 77);
  text-decoration: none;
  display: block;
  padding: 0.3rem 1rem;
}

.selected-subject-tab {
  background-color: deepskyblue;
  color: black;
  border: 2px solid black;
  border-bottom: none;
}

.selected-subject-tab a {
  color: black;
}

input[type="text"], input[type="password"] {
  font-size: 1.4rem;
  padding: 0.5rem;
  margin: 0.5rem;
}

.question-container {
  display: flex;
  flex-direction: row;
}

.question-detail {
  width: 90%;
}

.answer-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.question-text {
  width: 100%;
  text-align: center;
}

.ring-container {
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  padding: 1rem 1rem;
  margin-left: 1rem;
  background: dodgerblue;
  border-radius: 8px;
  width: 9rem;
  height: auto;
}

.ring {
  margin: 0.2rem;
  border: 5px solid gold;
  width: 16px;
  height: 16px;
  border-radius: 16px;
  animation: ring-spin linear 2s infinite; 
}

.ring-fail {
  margin: 0.2rem;
  border: 4px solid gold;
  width: 16px;
  height: 0px;
  border-radius: 2px;
}

@keyframes ring-spin {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.gcse-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.gcse-icon-image {
    margin-right: 1rem;
}

.gcse-icon-image img {
    width: 400px;
    height: auto;
}

.gcse-icon-text {
    font-family: 'times new roman', serif;
    font-size: 5rem;
    font-weight: 500;
    font-style: italic;
}

.info-list {
    text-align: left;
    margin: 1rem;
    font-size: 1.6rem;
}

.table-label {
    text-align: right;
}

.table-value {
    text-align: left;
}

.topic-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.topic-icon {
    width: 8rem;
    height: auto;
    border: black 2px solid;
    padding: 0.2rem;
    margin: 0.5rem;
    border-radius: 8px;
    background-color: rgb(132, 204, 229);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
    text-decoration-color: rgb(132, 204, 229);
}

.topic-icon a {
  background-color: red;
}

.topic-icon img {
  width: 4rem;
  height: auto;
}

.topic-icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.mastery-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
}

.mastery-icon img {
  width: 3rem;
  height: auto;
}

.mastery-passed {
  background-color: green;
  width: 4rem;
  height: 4rem;
}

.mastery-missing {
  background-color: transparent;
  width: 4rem;
  height: 4rem;
}


@media (max-width: 42rem) {
  ul {
    padding-left: 0.2rem;
  }

  a {
    font-size: 1rem;
    font-weight: 500;
  }

  .gcse-icon-image img {
      width: 160px;
  }

  .gcse-icon-text {
    font-size: 2.2rem;
  }

  .main-content {
    padding: 0.3rem;
  }

  .page-content {
    padding: 0rem;
  }

  .page-container {
    flex-direction: column;
  }

  .sidebar-nav {
    width: calc(100vw - 3.5rem);
    height: 3rem;
  }

  .sidebar-nav ul {
    flex-direction: row;
    justify-content: space-around;
  }

  .sidebar-nav img {
    width: 2rem;
  }

  .info-list {
    margin: 0.2rem;
  }

  .question-container {
    flex-direction: column;
    width: 100%
  }

  .question-detail {
    width: 100%;
  }

  .question-text {
    width: auto;
  }

  .question-text h1 {
    font-size: 1.8rem;
  }

  .ring-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: auto;
    margin-left: 0;
    padding: 1rem 0.5rem;
  }
}