/* Box Model Hack */
* {
     box-sizing: border-box;
}

/* Clear fix hack */
.clearfix:after {
     content: ".";
     display: block;
     clear: both;
     visibility: hidden;
     line-height: 0;
     height: 0;
}

.clear {
	clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/

body{
     height: 100vh;
     width: 100vw; 
     display: flex;
     
     font-size: 125%;
     overflow-x: hidden;
     



}

.sidepanel{
     width: 20%;
     height: 100%;
     background: linear-gradient(180deg, rgba(131,58,180,1) 0%, rgba(186,51,51,1) 20%, rgba(252,252,69,1) 40%, rgba(69,252,111,1) 60%, rgba(69,100,252,1) 80%, rgba(69,252,234,1) 99%);
}
main {
     width: 60%;
     margin-top: 10px;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
    
}
h1{
     width: 75%;
     text-align: center;
}
form{
     display: flex;
     justify-content: space-between;
     width: 100%;
}

.colorValue{
     width: 100%;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
}

#colorInput{
     margin: 20px;
     width: 120px;
     background-color: black;
}
#shape{
     height: 380px;
     width: 380px;
     background: rgb(161, 161, 161);
     margin-top: 20px;
     border: 3px solid black;
}

button {
     font-family: cursive;
     padding: 5px 10px;
     margin: 30px;
     border-radius: 5px;
     background-color: black;
     color: white;
     border: 3px solid black;
     cursor: pointer;
}

button:hover{
     border: 3px solid yellow;
     color: yellow;
}

#redValue{
     color: red;
     text-shadow: 0.5px 0.5px black;
     font-size: larger;
}

#greenValue{
     color: green;
     text-shadow: 0.5px 0.5px black;
     font-size: larger;

}

#blueValue{
     color: blue;
     text-shadow: 0.5px 0.5px black;
     font-size: larger;

}

#hexOutput{
     visibility: hidden;
     margin-bottom: 30px;
}


@media only screen and (max-width: 767px){
     body{
          flex-direction: column;
          font-size: 90%;

     }

     main{
          width: 100%;
          padding: 10px;

     }
     .sidepanel{
          width: 100vw;
          height: 300px;
          background-color: white;
     }

     #shape{
          width: 300px;
          height: 300px;
     }
}