
body {
  font-family: sans-serif;
  background-color: #f0f0f0;
}

.main-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

html, body{
  overflow: hidden;
}

/* Right: Teaching/Instructions */

hr {
  border: none;             /* Remove default border */
  height: 3px;              /* Set thickness */
  background-color: #000504; /* Set color */
  width: 100%;               /* Set width */
  margin: 20px auto;        /* Center and add vertical spacing */
  border-radius: 2px;       /* Rounded edges (optional) */
}

.heading {
  text-align: center;
  margin-bottom: 20px;
  font-size: 40px;
  font-family: 'Patrick Hand', sans-serif;
}

.problem-container {
  width: fit-content;
  text-align: right;
}


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

.digits-with-symbol {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.symbol {
  font-size: 30px;
  font-weight: bold;
  padding-top: 10px; /* Now this will work */
}


.digit-box {
  width: 50px;
  height: 50px;
  font-size: 25px;
  margin: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a0238;
  border-radius: 6px;
  background-color: white;
  color: black;
  font-weight: bold;
  text-align: center;
}


button {
  padding: 15px 25px; /* Increased padding */
  font-size: 20px;     /* Larger text */
  background-color: #404463;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


@keyframes glow {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 0, 0.8);
    border-color: yellow;
  }
  50% {
    box-shadow: 0 0 10px 4px rgba(255, 255, 0, 0.8);
    border-color: gold;
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 0, 0.8);
    border-color: yellow;
  }
}

.glow {
  animation: glow 0.8s ease-in-out;
}


@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Bounce effect triggered via class */
.bounce {
animation: bounce 1.1s ease-in-out infinite;
}

.bounce-out {
animation: bounce 0.5s ease-in-out 1;
}


.button-row {
  display: flex;
  justify-content: space-between;
  width: 25vw;
  margin-top: 20px;
}

.button-row button {
flex: 1;
margin: 10px 5px; /* smaller margin between buttons */
padding: 15px 0;
}

.dynapuff-unique {
  font-family: 'DynaPuff', cursive;
font-optical-sizing: auto;
font-weight: 400; /* Adjust weight as needed (400 = normal, 700 = bold, etc.) */
font-style: normal;
font-variation-settings: "wdth" 80; /* Adjust "wdth" value if needed */
}



#solution-hint{
width: 100%;
height: 25%;
display: flex;
flex-direction: column;
justify-content: center;
padding: 5px;
}

#solve-steps {
width: 100%;
height: 88vh;
margin-top: 5%;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}

.right-panel {
display: flex;
flex-direction: column;      /* Stacks content vertically */
align-items: center;         /* Centers content horizontally */
position: relative;
background-color: #FFE6A5;
font-size: 30px;
width: 50%;                   /* Adjusts width to 50% */
margin-left: 3%;
margin-right: 3%;
border-radius: 20px;
margin-top: 1%;
margin-bottom: 9%;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);

}



.plus-symbol {
font-size: 30px;
font-weight: bold;
margin-left: 10px;
position: absolute;
right: -30px;
top: 50%;
transform: translateY(-50%);
}





.numbers-grid {
display: grid;
grid-template-columns: auto;
justify-content: end;
align-items: center;
}

.digits {
display: flex;
justify-content: flex-end;
gap: 4px;
font-size: 32px;
}

.arrow-cell {
display: flex;
justify-content: flex-end;
padding-right: 40px;
margin-top: -10px; /* position arrow between digits */
}

#jumping-arrow {
visibility: hidden;
width: 24px;
height: auto;
}




@keyframes jump {
0%   { transform: rotate(90deg) translate(-5px,-10px); }
50%   { transform: rotate(90deg) translate(10px,-10px); }
100%   { transform: rotate(90deg) translate(-5px,-10px); }
}

.bounce-arrow {
animation: jump 1.2s ease-in-out infinite;
}

@keyframes jump2 {
0%   { transform: translate(-23px, 17px) rotate(48deg); }
50%  { transform: translate(-40px, -10px) rotate(48deg); }
100%  { transform: translate(-23px, 17px) rotate(48deg); }

}


.bounce-arrow2 {
animation: jump2 1.4s ease-in-out infinite;
}


@keyframes jump3 {
0%   { transform: translate(-40px, 10px) rotate(130deg); }
50%  { transform: translate(-30px, -10px) rotate(130deg); }
100%  { transform: translate(-40px, 10px) rotate(130deg); }

}



.bounce-arrow3 {
animation: jump3 1.4s ease-in-out infinite;
}


@keyframes jump4 {
0%   { transform: translate(-75px, 10px) rotate(90deg); }
50%  { transform: translate(-75px, -5px) rotate(90deg); }
100%   { transform: translate(-75px, 10px) rotate(90deg); }
}



.bounce-arrow4 {
animation: jump4 1.2s ease-in-out infinite;
}



.difficulty-selector {
margin-bottom: 20px;
font-family: 'DynaPuff', cursive;
font-size: 1.1rem;
display: flex;
align-items: center;
gap: 10px;
}

.difficulty-selector select {
padding: 6px 12px;
font-size: 1rem;
border-radius: 10px;
border: 2px solid #ffa000;
background-color: #fff3e0;
font-family: 'DynaPuff', cursive;
cursor: pointer;
}



.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 10vh;
  margin-right: 12px;
}




.navbar-right select {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #131601;
  font-family: 'DynaPuff', cursive;
  background-color: #3d765b;
  cursor: pointer;
}

.navbar-right {
  margin-right: 150px;
}


.answer-section{
  display: flex;
  justify-content: flex-end;
}


.digit-box-answer {
  width: 50px;
  height: 50px;
  font-size: 25px;
  margin: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a0238;
  border-radius: 6px;
  background-color: white;
  color: black;
  font-weight: bold;
  text-align: center;
}

.navbar-center{
  margin-left: 15px;
}

.site-title {
  font-size: 1.8rem;
  color: #ffffff;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(11, 5, 13, 0.4); /* soft purple shadow */
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.title-top,
.title-bottom {
  display: block;
}


body {
      margin: 0;
    }



.navbar {
  /*background-color: #ffd54f;*/
  background-color: #605678;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hint{
font-family: 'DynaPuff', cursive;
font-style: normal;
color: #0e0901;
font-size: 24px;
text-align: center;
background-color: #8ABFA3;
box-shadow: 0 2px 4px rgba(227, 112, 4, 0.3);
}


.navbar select {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #FFE6A5;
  font-family: 'DynaPuff', cursive;
  background-color: #f8edd0;
  margin-right: 20px;
  cursor: pointer;
  color: #000009;
  margin-left: 20px;
}

.right-panel {
  width: 50%;
  background-color: #faedcd;
  overflow-y: auto;
}

/* Left: Problem area */
.left-panel {
width: 50%;
display: flex;
flex-direction: column;
align-items: center;
background-color: #ffca9e;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
margin-left: 3%;
margin-top: 1%;
margin-bottom: 9%;
justify-content: center;
}


.main-wrapper {
  padding-bottom: 1%;
}

.left-panel {
  width: 50%;
  padding: 20px;
  background-color: #f8deb9;
}


.right-panel.two-digit #solution-hint{
  height: 20%;
}

.right-panel.two-digit #solve-steps{
  margin-top: 3%;  
}

 .desktop-message {
  display: none;
  text-align: center;
  font-size: 3.2rem;
  padding: 2rem;
  color: #28a745; /* This adds the green text color */
  font-weight: bold;
  background-color: #d4edda;
}


  @media screen and (max-width: 767px) {
    .desktop-message {
      display: block;
    }
    .main-wrapper, .navbar-center{
      display: none;
    }
  }