@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "poppins";
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #004d40;
}

.container{
    width: 90%;
    max-width: 400px;
    border: 5px solid #ffffff;
    border-radius: 5px;
    background-color: #355a64;
    position: relative;
}

.canvas-wrapper{
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
}
canvas{
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #37474f;
}
.controls{
    width: 100%;
    padding: 20px 0 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

button{
    width: 144px;
    height: 40px;
    background-color: #fff;
    text-transform: uppercase;
    font-family: "poppins";
    font-size: 14px;
    color: #004d40;
    font-weight: bold;
    border: 1px solid #fff;
    border-radius: 3px;
    letter-spacing: 0.3em;
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.3s, background 0.3s;
    text-align: center;
    margin: 0 25px 20px;
}

button:hover{
    background: #004d40;
    box-shadow: 0 0 20px 5px rgba(0,0,0,0.3);
    color: #fff;
    border: 1px solid #fff;
}
.range{
    width: 100%;
    margin-bottom: 20px;
    margin: 0 20px 20px;
    display: flex;
    align-items: center;
}

.range label{
    color: white;
    text-transform: uppercase;
    margin-right: 20px;
    width: 30%;
}

.range-wrapper{
    width: 100%;
    position: relative;
    height: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
}
.range-value{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    color: white;
    font-size: 14px;
    height: 100%;
    padding-left: 3px;
    line-height: 20px;
}

.range-slider{
    transform-origin: left top;
    position: absolute;
    border: 1px solid #fff;
    top: 0;
    left: 0;
    background: #004d40;
    display: inline-block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transition: tranform 0.2s ease-out;
}

.range input{
    position: relative;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 1;
}

.score{
    position: absolute;
    top: 10px;
    z-index: 1;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    opacity: 0.3;
    text-transform: uppercase;
    color: white;
}
