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

html, body{
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

body{
    position: relative;
}

.class1{
    width: 100vw;
    height: 100vh;
    background: #005AA7;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #FFFDE4, #005AA7);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #FFFDE4, #005AA7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: relative; */
}

.class2{
    width: 60vw;
    height: 65vh;
    border-radius: 10px;
    border: 2px solid;
    background: #b92b27;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #1565C0, #b92b27);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #1565C0, #b92b27); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    -webkit-box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
    -moz-box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
    box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/*  COUNTER CSS     */
.hero{
    width: 60vw;
    height: 65vh;
    display: flex;
    /* justify-content: space-evenly;
    align-items: center; */
    flex-direction: column;
    border-radius: 12px;
    border: 2px solid #f9f9f9;
    -webkit-box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
    -moz-box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
    box-shadow: 16px 18px 5px 0px rgba(0,0,0,0.72);
}

.hero-main{
    width: 60vw;
    height: 35vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.hero-main #add, #sub{
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    color: #fff;
}
.hero-main #display{
    font-size: 5vw;
    color: #fff;
}
.hero-heading, .hero-reset{
    width: 60vw;
    height: 10vw;
}
.hero-heading{
    text-align: center;
    padding-top: 1.5vw;
    font-weight: 800;
    font-size: 3.2vw;
    margin-top: 1.2vh;
    /* font-size: clamp(1.5rem, 4vw, 2.5rem); */
}
.hero-reset{
    text-align: center;
}
#reset{
    /* padding: 12px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 2.5rem;
    font-weight: 650; */
    color: white;
    border: none;
    font-size: 2.5vw;
    font-weight: bold;
    padding: 1.5vh 2.5vw;
    margin: 0 1.2vw;
    border-radius: 30px;
    cursor: pointer;
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    
}
/* .hero-reset button{
    padding: 0.5vw;
    font-size: 30px;
    font-weight: 650;
    border: none;
    border-radius: 10px;
} */

.hero button{
    /* padding: 14px;
    font-size: 50px;
    border: none;
    border-radius: 14px; */
    color: white;
    border: none;
    font-size: 2vw;
    font-weight: bold;
    padding: 1.5vh 2.5vw;
    margin: 0 1.2vw;
    border-radius: 14px;
    cursor: pointer;
}

.hero #sub{
    padding: 1.5vh 3vw;
}

/* COLOR CHANGE CSS*/

.class5-child{
    width: 60vw;
    height: 65vh;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 12px;
    /* border: 2px solid #fff; */
}

.class5-child{
    display: flex;
    justify-content: center;
    padding-top: 4vh;
    padding-bottom: 4vh;
    border-radius: 10px;
    border: 2px solid #fff;
}
.class5-child-experiment{
    width: 20vw;
    height: 32vh;
    /* background-color: #f5f9f7; */
    color: #fff;
    padding: 1.5vh 1.5vw;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #fff;
    /* opacity: 0.95; */
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    /* background-image: url('Northern-Lights-Photography-Tips-1.webp'); */
}

.class5-child-experiment h1{
    font-size: 1.5vw;
}

.class5-child-experiment p{
    font-size: 0.8vw;
}

#input-color{
    width: 8vw;
    padding: 0.8vh 1.2vw;
    /* height: 0.8vh; */
    border: none;
    border: 2px solid #212121;
    border-radius: 10px;
    background-color: #f7f7f7;
    /* margin-left: 30px;*/
}

#button-color{
    border: none;
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 0.8vh 1.2vw;
    font-size: 1vw;
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    color: #fff;
}

/* Digital Time Display */
.time-footer{
    position: fixed;
    left: 0%;
    top: 40%;
    width: 12vw;
    height: 8vh;
    background-color: rgba( 255, 255, 255,0.5);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#time{
    font-size: 2vw;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(to right, #1565C0, #b92b27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* rock, paper and scissor */
.container-rps-child{
    width: 60vw;
    height: 65vh;
    border-radius: 12px; 
    /*
    background: #1c92d2;  /* fallback for old browsers */
   /* background: -webkit-linear-gradient(to right, #f2fcfe, #1c92d2);  /* Chrome 10-25, Safari 5.1-6 */
   /* background: linear-gradient(to right, #f2fcfe, #1c92d2); /*W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+*/
    /* opacity: 0.1; */
    background-color: rgba( 255, 255, 255, 0);
    display: flex;
    flex-direction: column;
}

.rps-main-heading{
    width: 60vw;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5vw;
    color: #fff;
}

.rps-main-heading #display-rps{
    font-size: 3.5vw;
}

.rps-main-work{
    width: 60vw;
    height: 30vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.rps-main-work button{
    font-size: 3.5vw;
    padding: 0.6vw;
    border: none;
    border-radius: 10px;
}

.rps-main-score{
    width: 60vw;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2vw;
    color: #fff;
}

.rps-main-score #reset-rps{
    font-size: 2vw;
    font-weight: 700;
    color: #fff;
    padding: 0.6vh 1.6vw;
    border: none;
    border-radius: 30px;
    margin-top: 0.8vh;
    margin-bottom: 0.5vh;
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    margin-bottom: 1.2vh;
}

/*  Stopwatch Timer */
.stopwatch{
    width: 60vw;
    height: 65vh;
    text-align: center;
    padding: 2vh 0.5vw;
    color: #fff;
    /* border: 2px solid grey; */
    /* box-shadow: 0 10px 10px rgba(0, 0, 0, 0.8); */
    border-radius: 12px;
    /* background-color: rgb(120, 91, 195); */
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

#stopwatch-heading{
  font-size: 4vw;
  font-weight: 800;
  margin-bottom: 3.2vh;
  text-shadow: 5px 4px #4444dd;
}

.stopwatch #timer {
    font-size: 4.5vw;
    font-weight: 600;
    /* text-shadow: 2px 2px #f8a5c2;
    color: #f92672; */
    color: whitesmoke;
    /* width: 600px;*/
    margin: 4vh auto; 
  }
  
  #buttons-stopwatch {
    display: flex;
    justify-content: center;
    margin-top: 1.5vh;
  }
  
  #buttons-stopwatch button {
    /* background-color: #f92672; */
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    color: white;
    border: none;
    font-size: 2vw;
    font-weight: bold;
    padding: 1.5vh 2.5vw;
    margin: 0 1.2vw;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
  }
  
  #buttons-stopwatch button:hover {
    /* background-color: #f44583; */
    background: linear-gradient(to right, #FFFDE4, #005AA7);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  }



/* Main Footer*/
.down-footer{
    width: 100vw;
    height: 5.2vh;
    background-color: rgba( 255, 255, 255, 0.6);
    position: fixed;
    left: 0;
    bottom: 0;
    font-size: 1.5vw;
    font-weight: 650;
    text-align: center;
    color: #636161;
}
.confetti-1, .confetti-2{
    font-size: 1vw;
    margin: 0.5vh 0.5vw 0.8vh;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 0.6vh 0.3vw; 
    background: linear-gradient(to right, #1565C0, #b92b27);
    color: #fff;
}

@media screen and (max-device-width: 600px){

    .class1{
        width: 100vw;
        height: 78vh;
    }

    .class2, .hero, .class5-child, .container-rps-child, .stopwatch{
        width: 65vw;
        height: 55vw;
    }

    .hero-main{
        width: 65vw;
        height: 35vh;
    }
    .hero-heading, .hero-reset{
        width: 65vw;
        height: 10vh;
    }

    .rps-main-heading{
        width: 65vw;
        height: 20vh;
        font-size: 2.3vw;
    }
    .rps-main-heading #display-rps{
        font-size: 5vw;
    }
    

    .rps-main-score{
        width: 65vw;
        height: 10vh;
    }
    .rps-main-work button{
        font-size: 6.5vw;
        padding: 1vw;
        border: none;
        border-radius: 10px;
    }
    /* Color Change Project  */

    .class5-child{
        display: flex;
        justify-content: center;
        padding-top: 2vh;
        padding-bottom: 2vh;
        border-radius: 10px;
        border: 2px solid #fff;
    }
    .class5-child-experiment{
        width: 32vw;
        height: 18vh;
        color: #fff;
        padding: 1.2vh 0.8vw;
        border-radius: 10px;
        text-align: center;
        border: 3px solid #fff;
     
        background: linear-gradient(to right, #FFFDE4, #005AA7);
       
    }

    #colorChange-form{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 32vw;
        height: 18vh;
    }
    #input-color{
        width: 16.2vw;
        padding: 0.3vh 1.2vw;
        /* height: 0.8vh; */
        border: none;
        border: 1px solid #212121;
        border-radius: 10px;
        background-color: #f7f7f7;
        /* margin-left: 30px;*/
        margin: 1.5vh 0;
        text-align: center;
    }
    #button-color{
        width: 16.2vw;
        border: none;
        border: 1.4px solid #fff;
        border-radius: 8px;
        /* padding: 0.4vh 0.8vw; */
        font-size: 1vw;
        background: linear-gradient(to right, #FFFDE4, #005AA7);
        color: #fff;
        margin-bottom: 1.6vh;
    }
    .class5-child-experiment h1{
        font-size: 3.2vw;
    }
    
    .class5-child-experiment p{
        font-size: 1.5vw;
    }
    .down-footer{
        height: 4.2vh;
    }
    .confetti-1, .confetti-2{
        font-size: 1.5vw;
        font-weight: 650;
    }

    /*Digital Time Display*/
    .time-footer{
        width: 14vw;
        height: 6.8vh;
    }
    #time{
        padding-left: 0.7vw;
    }
}

/*Scroll Bar*/
::-webkit-scrollbar{
    width: 1vw;
}

::-webkit-scrollbar-track{
    background: #d1e5ff;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, transparent, #1565C0, #b92b27);
    border-radius: 16px;
}

::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(to bottom, #1565C0, #b92b27);
    border-radius: 12px;
}