*{
  box-sizing: border-box;
  margin: 0;
}
body{
  background: hsla(245, 75%, 80%, 0.25);
  color:#070707;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.main-container {
  padding: 1rem;
  margin: 1rem auto;
  display: flex;
  width: 700px;
}
.levelOne {
  position: relative;
  grid-column: 1;
  background-color: rgba(245, 248, 255);
  width: 700px;
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: inset 1px 1px 5px blueviolet;

}
.result {
  text-align: center;
  margin: 0 0.5rem;
  font-weight: bold;
  background-color: rgba(110, 110, 255);
  font-size: 1.25rem;
  width: 70px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  color: white;
  text-shadow: 1px 1px 0px grey;
  height: 28px;
}
.repeated-addition {
  border: 1px solid grey;
  background-color: rgba(245, 248, 255, 0.757);
  border-radius: 7px;
  display: flex;
  z-index: 1;
}
.repeated-addition:hover {
  background-color: rgb(0, 255, 250);
  cursor: pointer;
  transform: scale(1.05);
}
.backbtn {
  height: 70px;
  transform: translateY(50%) translateX(0%);
}
.image-container {
  display: flex;
  opacity: 0.45;
  position: absolute;
  justify-content: center;
  width: 100%;
}
.image-container img {
  width: 100%;
}
.button {
  padding: 0.5rem 1rem;
  cursor: pointer;
  height: 32px;
  background-color: olive;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin: 0.75rem;
  justify-content: center;
  z-index: 1;
  position: relative;
}
.button:hover {
  background-color: rgb(70, 70, 0);
  color: white;
  transform: scale(1.1);
}
.addition {
  font-size: 1.25rem;
  text-shadow: 1px 1px 0px blue;
  font-weight: bold;
}

.board-title{
  text-align: center;
  color: rgb(255, 7, 7);
  font-size: 1.5rem;
  margin: 1rem;
  text-shadow: 0px 0px 7px green;
  font-weight: bold;
}
.close-message {
  position: relative;
  right: 0;
  bottom: 0;
  height: 15px;
  background-color: rgb(255, 7, 7);
  width: fit-content;
  margin: 0.25rem;
  padding: 1rem 1rem;
}
.close-message:hover {
  background-color: rgb(255, 7, 7);
}
.choose-level {
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
}
.menu-game{
  background-color: rgb(250, 245, 245);
  position: absolute;
  width: 98%;
  justify-content: space-evenly;
  height: 94%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0px 0px 7px rgb(255, 7, 7);
}
.menu-btn-for-game {
  position: absolute;
  cursor: pointer;
  left: 0px;
  top: 50px;
  font-size: 1rem;
  background-color: green;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  margin: 1rem;
  font-weight: bold;
  color: white;
  z-index: 2;
}
.menu-btn-for-game:hover {
  transform: scale(1.1);
}
.buttons {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
}
.close-menu-btn {
  position: absolute;
  right: 0;
  top: 0;
  background-color: rgb(255, 7, 7);
}
.congratulations-message {
  position: absolute;
  z-index: 2;
  font-size: 1.5rem;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  background-color: rgb(112, 255, 72);
  border-radius: 10px;
  border: 1px solid blue;
  text-shadow: 0px 0px 5px white;
  font-weight: bold;
  font-family: cursive;
  width: 70%;
  padding: 1rem;
  box-shadow: 1px 1px 5px blue;
  text-align: center;
}
.score-container {
  color: white;
  text-shadow: 0px 0px 7px green;
  width: 100%;
  justify-content: flex-end;
  border-radius: 10px;
  background-color: rgba(128, 128, 128, 0.757);
  padding: 0.28rem;
  margin: 0.28rem;
  display: flex;
  font-weight: bold;
  font-size: 1.25rem;
}

.paragraph_text {
  padding: 1px 0;
  max-width: 1024px;
  margin-top: 20px;

  margin: 1rem auto;
  font-size: 1.25rem;

  text-align: left;
  line-height: 1.15;
  display: flex;
  align-items: center;
}
.head_text {
  margin: 1rem;
}
.paragraph_text p {
  text-wrap: balance;
}
.head_subtitle {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
  color: green;
  line-height: 1.25;
}
.head_subtitle2 {
  text-align: left;
  margin-bottom: 1.1rem;
}

.image-section {
  width: fit-content;
  background-color: #98a8f8;
  box-shadow: 7px 5px 2px rgba(0, 255, 38, 0.711);
  margin: 1rem 0;
  border-radius: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: .75rem;
}
.image-section img{
  width: 299px;
}
.head_section_li_n {
  line-height: 1.1;
}
.head_section_li_span {
  color: green;
  font-weight: 700;
}

/* Section 2 */
.section_2{
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  /* margin-top: 1rem;
  padding-top: 1rem; */
  padding-bottom: 1rem;

  text-align: center;
  display: flex;
  justify-content: center;
}  
.row{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 1rem;
}
.column-title h2{
  margin: 1rem 0rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.row #column1, 
.row #column2,
.row #column3{
  width: 325px;
  height: auto;
  padding: 10px 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 7px rgb(100, 7, 255);
  gap: 7px;
}
.purple{
  background-color: rgba(250, 100, 250, 0.7);
}
.yellow{

  background-color: rgba(250, 250, 100, 0.7);
}
.red{

  background-color: rgba(250, 100, 100, 0.7);
}
.train_button {
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  background-color: #4CAF50; 
  color: white; 
  border: 2px solid #4CAF50;
  border-radius: 10px;
  padding: 16px 32px;
  margin: 4px  2px 1rem 2px;
  -webkit-transition-duration: 0.2s; /* Safari */
  transition-duration: 0.2s;
  cursor: pointer;
  margin-top: auto;
  align-self: center;
  box-shadow: 0px 0px 10px grey;
}
.train_button:hover {
  background-color: rgb(255, 255, 255);
  color: #4CAF50;
  transform: scale(1.1);
}
.img_boards{
  padding: .25rem;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.column_paragraph_for_columns{
  text-align: left;
  padding: 1rem 1rem;
}
.more{
  border-top: 1px solid grey;
  margin: .5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  padding:1rem;
  color: rgb(255, 7, 7);
  text-shadow: 0px 0px 7px grey;
}
/* Section 2 */

@media screen and (max-width: 750px){
  .result{
width: 50px;
height: 18px;
  }
  .main-container{
    max-width: 550px;
    justify-content: center;
  }
  .levelOne{
    max-width: 550px;
    gap: 5px;
  }
  .addition{
    font-size: 1rem;
  }
  .repeated-addition{
    align-items: center;
  }
}
@media screen and (max-width: 550px){
  .levelOne{
    width: 425px;
    gap: 2px;
    padding: .5rem;
    margin: .25rem auto;
  }
  .main-container{
    padding: .25rem;
    width: 450px;
  }
  .addition{
    font-size: .75rem;
  }

  .result{

    height: 16px;
    font-size: .75rem;
  }
  .score-container{
    font-size: 1rem;
  }
}
@media screen and (max-width: 450px){
  .main-container{
    width: 400px;
  }
  .repeated-addition{
    flex-direction: column;
  }
  .levelOne{
    width: 400px;
  }
.addition{
  font-size: .5rem;
}
.buttons{
  padding: .25rem;
}
.button{
  padding: .25rem .5rem;
  margin: .5rem;
  height: 28px;
}
.choose-level{
  font-size: 1.25rem;
}
.menu-game{
  padding: .25rem;
}
}
@media screen and (max-width: 400px){
  .main-container{
    width: 350px;
    padding: .25rem;
    margin: 0 auto;
  }

  .levelOne{
    width: 350px;
    padding: 0;
    margin: 0;

  }
}