*{
    margin: 0;

    padding: 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{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: rgba(0, 251, 255, 0.7);
    margin: 1rem;
    text-shadow: 1px 1px 0px rgb(70, 70, 70);
   
}
.h1-span{
    font-size: 2rem;
    color: rgb(246, 130, 246);
    font-family: cursive;
    text-shadow: 1px 1px 0px rgb(255, 7, 7);
}
.container{
    background-color: rgba(77, 77, 77, 0.77);
    background-image: url(/imgs/chains_background.svg);
    position: relative;
    border-radius: 10px;
    background-attachment: scroll;
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    width: 700px;
    height: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.numbers-container{
    position: relative;

    display: flex;
    align-items: center;
    height: 100%;
    margin: 1rem;
    justify-content: center;
    transition: 0.7s;
    animation: .7s ease-in 1 ;
    animation-name: none;
}
@keyframes moveleft {
0%{
    left: 0px
}
    50%{
        left: -1250px;
    }
75%{
    right: -700px;
}
100%{

    right: 0px;
}
}

.numbers{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border-radius: 10px;
    background-color: rgba(0, 0, 255, 0.7);
    width: 100px;
    font-size: 2.75rem;
    text-shadow: none;
    cursor: pointer;
    font-family: cursive;
    font-weight: bolder;
}

.input{
    display: flex;
    background-color: yellow;
    color: rgb(110, 110, 110);
    text-align: center;
    border: none;
    text-shadow: 0px 0px 7px rgba(0, 0, 255, 0.77);
}

.input:hover{
    transform: scale(1.1);
}

.verify-button{
    height: 128px;
    font-size: 2.5rem;
    border-radius: 10px;
    border: none;
    width: fit-content;
    cursor: pointer;
    padding: 0 1rem;
    margin: .5rem auto;
    background-color: rgba(0, 255, 0, 0.714);
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

.verify-button:hover{
    transform: scale(1.1);
}

.score-container{
    font-size: 1.5rem;
    color: white;
    margin: .5rem;
}

.lives-container{
    gap: 5px;
    position: absolute;
    right: 0;
    display:flex;
    height: 50px;
    width: 150px;
    align-items: center;
    justify-content: center;
    margin: .5rem;
}

.lives{
    display: flex;
    width: 28px;
    height: 28px;
    background-color: yellow;
    border-radius: 50%;
}

.you-lost{
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    position: absolute;
    font-size: 2.5rem;
    padding: .5rem 1rem;
    color: red;
    border-radius: 10px;
    z-index: 1;
}

.retry{
background-color: green;
font-size: 2rem;
width: fit-content;
padding: 0.25rem 1rem;
margin: 2rem;
border-radius: 10px;
border: none;
font-weight: bold;
letter-spacing: 1px;
color: white;
cursor: pointer;
}

.retry:hover{
    transform: scale(1.1);
}

.final-score{
    color: green;
    font-size: 2rem;
}

.disabled{


    background-color: grey;
}

.disabled:hover{
    transform: scale(1);
    cursor: no-drop;
}

.you-win{
    display: none;
    text-align: center;
    align-items: center;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(48, 255, 82);
    position: absolute;
    font-size: 2.5rem;
    padding: .5rem 1rem;
    width: 90%;
    height: 100%;
    color: rgb(255, 255, 255);
    border-radius: 10px;
    z-index: 1;
}

.start-game{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    padding: 2rem;
    position: absolute;
    background-color: rgb(100, 100, 100);
    background-image: url(/imgs/chains_background.svg);
    background-position: top;
    background-size: 50%;
    height: 100%;
    z-index: 2;
    font-size: 2rem;
    color: white;
    text-shadow: 0px 0px 7px red;
}

.startGame{

    font-size: 1.75rem; cursor: pointer; 
    border-radius: 10px; font-weight: bold; border: none;
   padding: 1rem 1.5rem; margin: 1rem; color: white; background-color: rgba(0, 128, 0, 0.734);
}

.startGame:hover{
    transform: scale(1.1);
}

.chain {
    font-weight: bolder;
    font-size: 2.5rem;
    cursor: pointer;
    box-sizing: inherit;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    width: 142px;
    height: 85px;
    margin-left: -10px;
    border: .30em solid;
    border-radius: 42px;
    border-color: grey;
    box-shadow: -.02125em -.02125em 0 .02125em #fff, .02125em .02125em 0 .02125em #fff inset;
    background-color: rgb(244, 244, 244);
  }

  .chain:nth-child(2n), .chain:nth-child(2n+1)::after {
      border-color: #595959;
  }

.chain-animated, .chain-animated::after { 
transition: .2s; 
}
.chain-animated:hover, .chain-animated:hover + .chain-animated::after { 
transform: translateY(.1em) translateX(-.1em); 
}
.chain-animated:hover::after { 
transform: translateY(-.1em) translateX(.1em); 
}



.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: max-content;
    background-color: #98a8f8;
    box-shadow: 7px 5px 2px rgba(0, 255, 38, 0.711);
    margin: 1rem 0;
    border-radius: 10px;
    display: flex;
    padding: 1rem;
  }
  .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 (max-width:1024px){
    .you-lost{
        height: 90%;
    }
    .main-container h1{
        margin: 1rem;
        display: flex;
        width: fit-content;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

}
@media (max-width:768px){
    .you-lost{
        font-size: 1.5rem;
    }
  .container{
    width: 100%;
    height: 400px;
  }
}
@media (max-width: 550px){
  .chain{
    font-size: 2rem;
    height: 58px;
    width: 100px;
  }
    .start-game{
        font-size: 1.25rem;
    }
    .lives-container{
        width: 100px;
    }
    .lives{ 
        width: 18px; 
        height: 18px;
    }

    .verify-button{
        font-size: 2rem;
    }
    .score-container p{
        font-size: 1.25rem;
    } 
}
@media (max-width:400px){
    .container{
        background-position: top;
    }
    .chain{
        font-size: 1.75rem;
        height: 42px;
        width: 70px;
        border: .18em solid;
    }
    .main-container h1{
        font-size: 1.5rem;
    }
    .h1-span{
        font-size: 1.5rem;
    }
    .verify-button{
        height: 70px;
    }
    .you-win{
        font-size: 2rem;
        height: auto;
    }
}




