html,

body {

  margin: 0;

  padding: 0;

  background-color: #ffffff;

}



canvas {

  display: block;

  align: center;

}

.func-equation {
  font-size: 1.2em;
    margin-top: 5px;
  margin-bottom: 5px;
}

.top-ribbon-element {

  display: inline-block;

  width: 24%;

  text-align: center

}







.choices {

  font-size: 20px;

}



#problem {

  display: flex;

  justify-content: center;

}



#written-portion {

  flex-grow: 1;

}



#visual-aid {

  margin: 3em;

}



.question {

  font-size: 20px;

  text-align: center;

  margin: 10px 10px 10px 10px;

}



.option {

  display: inline-block;

  padding: 1em;

  text-align: center;

}



.option:hover {

  background: rgb(230, 230, 230);

  border-radius: 8px;

}



#option-div {

  display: grid;

  grid-template-columns: repeat(4, 1fr); /* Four columns of equal width */

  gap: 0px; /* Adjust the gap between grid items as needed */

  justify-content: center; /* Center horizontally */

  font-size: 20px;

}



.result-indicator {

  width: 100%;

  height: 10px;

}



.diagram {

  text-align: center;

  float: left;

}





.archive-entry {

  margin: 5px;

  border-style: solid;

  padding: 0.5em;

}



#reset-button {

  text-align: center;

  background: black;

  color: white;

  font-size: 200%;

}



#game-over {

  display: none;

}



.summary-statement .katex {

  font-size: 1.1em;

}



.score-section-element .katex {

  

}



.summary-statement {

  width: 30%;

  text-align: center;

  background-color: red;

  margin: 0.5em 0em;

  padding: 0.2em;

}



.stats-summary {

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

}



#stats {

    margin: 5px;

  border-style: solid;

  border-color: grey;

  padding: 0.5em

}



#disclaimer {

  margin: 1em;

}



.score-section-element {

  width: 16%;

  height: 1.5em;

  text-align: center;

  margin: 0.3em 0em;

  display: inline-flex;

  align-items: center;

  justify-content: space-around;

}



#angle-section .angle-score-section-element {

  width: 19%;

}



.sub-score-section {

  

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: stretch;

}

.question .katex {

    font-size: 1em;

}

.option .katex {

    font-size: 1em;

}

.answer-review .katex {

  font-size: 1em;

}

@media only screen and (orientation: portrait) { 

  #problem {

    flex-direction: column;

  }

  #written-portion {

    order: 1;

  }



  #visual-aid {

    

    order: 2;

    display: inline-block;

    text-align: center;

  }

  

  .score-section-element {

    width: 32%;

  }

  

  .score-section-element.katex {

    font-size: 0.8em

  }

  #option-div {

    grid-template-columns: repeat(2, 1fr); /* Four columns of equal width */

  }

  span.katex.option {

    font-size: 5vw;

    }

  /*#score-section {

    display: none;

  }*/

  /*.option .katex {

    font-size: 1.4em;

  }

  

  .question .katex{

    font-size: 1.6em;

  }*/

}

@media only screen and (orientation: landscape) { 

  #problem {

    flex-direction: vertical;

  }

  #option-div {

    grid-template-columns: repeat(4, 1fr); /* Four columns of equal width */

  }

  #written-portion {

    order: 2;

  }



  #visual-aid {

    

    order: 1;

  }

  span.katex.option {

    font-size: 2.5vw;

    }

  .score-section-element {

    width: 16%;

  }

  

  /*.question .katex{

    font-size: 1.6em;

  }

  

  .option .katex {

    font-size: 1.4em;

  }*/

}