input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.add-white {
  background-color: white !important;
}


/* Left Panel */
.left-panel {
  width: 50%;
  background-color: #f9f4e0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 1rem;
  margin: 1rem;
  overflow: auto;
}


.problem-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.navbar.hidenav {
  display: none;
}

.navbar.hidenav ~ .main-container {
  height: 100%;
}

.navbar.hidenav ~ .main-container .left-panel {
  min-height: calc(var(--vh) * 85);
}

.navbar.hidenav ~ .main-container .right-panel {
  min-height: calc(var(--vh) * 15);
}


.answer-row{
    display: flex;
    flex-direction: row;
    margin-bottom: 0.5rem;
}

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

input:disabled {
  background-color: #fefefe;
  opacity: 1.0;
  cursor: not-allowed;
  color: #080808;
  border-color: #000000;
}

.num1, .num2{
    display: flex;
    align-items: center;
    justify-content: center;
}

.num2{
  margin-right: 0.5rem;
}
.vertical-line {
  width: 100%;               /* Thickness of the line */
  height: 0.3rem;            /* Height of the line */
  background-color: black;  /* Color of the line */
  margin-top: 1rem;           /* Optional: space around the line */
}

.navbar {
  height: 10vh;
  background-color: #4c8d63f3;
  display: flex;
  align-items: center;
  justify-content: center; /* Center items horizontally by default */
  padding: 0 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
}

.logo {
  position: absolute;
  left: 70px;
  color: white;
  text-decoration: none;
}

.next-question-btn {
  background-color: #4CAF50; /* Green */
  color: white;
  padding: 1rem 2rem;
  font-size: 1.3rem;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 2.5rem;
}

.next-question-btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.next-question-btn:active {
  transform: translateY(1px);
}


.hide{
    display: none;
}


.divisor{
    height: 2.5rem;
    width: 2.8rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    text-align: center;
    border: 2px solid black;
    font-size: 1.2rem;
    color: black;
    margin-top: 0.5rem;
    border-radius: 0.3rem;
}

.roof {
  border-left: 4px solid black;
  border-top: 4px solid black;
}


html, body {
  min-height: 100%;
  font-family: 'Arial', sans-serif;
}


/* Main Layout */
.main-container {
  display: flex;
  height: calc(var(--vh) * 100 - 10vh);
  background-color: #4c8d63d1;
  width: 100%;
}


.steps{
  margin-top: 0;
}

.next-question-btn {
  font-weight: bold;
}

.hint-button:hover {
  background-color: #000000d8;
  color: #ffffff;
}

.hint-message {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #010101;
  font-weight: 400;
  text-align: center;
  line-height: 3.5vh;
}

.button-row{
  display: flex;
  gap: 2vh;                /* space between buttons */
  width: 70%;              /* gives space on left and right */
}

.button-row button {
  flex: 1;               /* makes both buttons grow equally */      /* optional: limit max width */
}

.hint-button {
  padding: 1rem 2rem;           /* increased padding for bigger size */
  font-size: 1.2rem;            /* larger text */
  background-color: #f9f4e0;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.question-dropdown {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #f9f4e0;
  color: #000000;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  appearance: none; /* Removes native arrow for better styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

/* Optional hover/focus styling */
.question-dropdown:hover,
.question-dropdown:hover {
  background-color: #faebaa;
}

/* -------------- */

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.message-box {
  height: 20%;
  background-color: #f9f4e0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.arrow-btn {
  background: none;       /* Remove white background */
  border: none;
  padding: 0;              /* Remove extra space */
  cursor: pointer;         /* Pointer on hover */
  line-height: 0; 
  position: absolute;
  left: 10px;
  color: white;
}
.arrow-btn svg {
  display: block;          /* Remove inline gap */
}

.step-container {
  height: 75%;
  background-color: #f7f3e5;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#whole-box{
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .vertical-line {
    width: 100%;               /* Thickness of the line */
    height: 0.2rem;            /* Height of the line */
    background-color: black;  /* Color of the line */
    margin: 0 0;
    margin-top: 0.5rem;/* Optional: space around the line */
}

  .main-container {
    flex-direction: column;
    height: calc(var(--vh) * 90);
    background-color: #f9f4e0;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    padding: 0 !important;
    flex: 0 !important;
  }

  .left-panel {
    min-height: calc(var(--vh) * 70);
    margin: 0;
    border-radius: 0;
  }

  .right-panel {
    background-color: #080808;
    min-height: calc(var(--vh) * 20);
  }

  .problem-container {
    width: fit-content;
    justify-content: center;
    display: flex;
  }


  .message-box {
    height: 100%;
    width: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.2rem;
    font-weight: bold;
    background-color: #4c8d63f3;
    margin-bottom: 0rem;
  }

  .logo {
    display: none;
  }

  .navbar {
    height: calc(var(--vh) * 10);
  }

  .next-question-btn{
    margin-top: 0rem;
  }

  .plus-symbol {
    font-size: clamp(1.2rem, 5vw, 10rem);
}

  .left-panel.four-by-one{
    min-height: calc(var(--vh) * 75);
  }

  .right-panel.four-by-one{
    min-height: calc(var(--vh) * 15);
  }

  .hint-message.four-by-one{
    line-height: 3.5vh;
  }

  .hint-message{
    line-height: 4vh;
  }
}

@media (min-height: 481px) and (max-height: 799px) and (hover: none) and (pointer: coarse){

    .question-dropdown {
      padding: 1.6vh 2.3vh;
      font-size: clamp(2.0vh, 2.3vh, 3.0vh);
      border-radius: 1vh;
  }

    .divisor{
      height: 5.4vh;
      width: 5.6vh;
      font-size: clamp(2.5vh, 2.1vh, 4vh);
      border: 0.28vh solid black;
      margin-right: 0.2rem;
      border-radius: 0.7vh;
      margin-top: 0.5rem;
  }
  
  .hint-message {
    font-size: clamp(1.8vh, 2.5vh, 4vh);
    color: white;
  }

  .next-question-btn {
    padding: 1.4vh 2.1vh;
    font-size: clamp(1.15rem, 2.5vw, 2.0rem);
    margin-top: 0rem;
  }

  .hint-button {
  padding: 3vw 4vw;           /* increased padding for bigger size */
  font-size: 3.3vw;            /* larger text */
  border-radius: 6px;
  width: 80%;
}

}


@media (min-height: 800px) and (max-height: 1023px) and (hover: none) and (pointer: coarse) {

  .question-dropdown {
      padding: 1.7vh 2.4vh;
      font-size: clamp(2.1vh, 2.5vh, 3.1vh);
      border-radius: 1vh;
  }

    .divisor{
      height: 5.4vh;
      width: 5.6vh;
      font-size: clamp(2.5vh, 2.1vh, 2.7vh);
      border: 0.32vh solid rgb(11, 11, 11);
      margin-right: 0.2rem;
      margin-right: 0.2rem;
      border-radius: 0.7vh;
      margin-top: 0.5rem;
  }
  
  .hint-message {
    font-size: 2.5vh;
    color: white;
  }

  .next-question-btn {
    padding: 1.6vh 2.3vh;
    font-size: clamp(1.2rem, 2.5vw, 2.3rem);
    margin-top: 0rem;
  }

  .hint-button {
  padding: 3vw 4vw;           /* increased padding for bigger size */
  font-size: 3.9vw;            /* larger text */
  border-radius: 6px;
  width: 80%;
}

}


@media (min-width: 768px) and (max-width: 1023px) and (hover: none) and (pointer: coarse) {

  .question-dropdown {
      padding: 1.9vh 2.7vh;
      font-size: clamp(2.3vh, 2.5vh, 3.3vh);
      border-radius: 1vh;
  }

    .divisor{
      height: 6.4vh;
      width: 6.6vh;
      font-size: clamp(3.2vh, 1.5vh, 4vh);
      border: 0.30vh solid black;
      margin-right: 0.3rem;
      margin-bottom: 0.3rem;
      border-radius: 0.9vh;
  }
  
  .hint-message {
    font-size: clamp(3vh, 1.5vh, 4vh);
    color: white;
  }

  .next-question-btn {
    padding: 1.7vh 2.5vh;
    font-size: clamp(2.3vh, 2.5vh, 3.3vh);
    margin-top: 0rem;
  }
  .hint-button {
  padding: 3vw 4vw;           /* increased padding for bigger size */
  font-size: 3.3vw;            /* larger text */
  border-radius: 6px;
  width: 80%;
}
}


@media (min-height: 1024px) and (max-height: 1368px) and (hover: none) and (pointer: coarse) and (min-width:820px){
  .question-dropdown {
      padding: 1.6vh 2.5vh;
      font-size: clamp(2.7vh, 2.5vh, 3.7vh);
      border-radius: 1.2vh;
  }

    .divisor{
      height: 6.2vh;
      width: 6.4vh;
      font-size: clamp(3.2vh, 1.5vh, 5vh);
      border: 0.30vh solid black;
      margin-right: 1rem;
      margin-top: 1rem;
      margin-bottom: 0.25rem;
      border-radius: 0.73vh;
  }
  
  .hint-message {
    font-size: clamp(2.8vh, 1.5vh, 4vh);
    color: rgb(254, 254, 254);
  }

  .next-question-btn {
    padding: 1.7vh 2.5vh;
    font-size: clamp(2.7vh, 2.5vh, 3.7vh);
    border-radius: 1.2vh;
    margin-top: 0rem;
  }

  .vertical-line {
    width: 100%;               /* Thickness of the line */
    height: 0.4rem;            /* Height of the line */
    background-color: black;  /* Color of the line */
    margin: 0 0;
    margin-top: 0.5rem;/* Optional: space around the line */
}

.roof {
  border-left: 0.4rem solid black;
  border-top: 0.4rem solid black;
}

.hint-button {
  padding: 3vw 4vw;           /* increased padding for bigger size */
  font-size: 3.3vw;            /* larger text */
  border-radius: 6px;
  width: 80%;
}

}


