@import url('https://fonts.googleapis.com/css2?family=Damion&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&display=swap');

body, button {
    font-family: 'Kanit', sans-serif;
    background-color: #E5E6E4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

body, button {
    font-family: 'Kanit', sans-serif;
}

h1 {
    margin-bottom: 0;
}

p {
    margin-top: 0;
}

h2 {
    border-bottom: 2px solid black;
}

.settings {
    display: flex;
    flex-direction: column;
}

.sidebar-button {
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2em;
    width: 70%;
    margin: auto;
    margin-bottom: 0.5em;
}

.sidebar-button:hover {
    background-color: black;
    opacity: 0.7;
    color: white;
}

.active-button {
    border: 2px solid black;
    background-color: black;
    opacity: 0.7;
    color: white;
}

.inactive-button {
    border: 2px solid black;
    background-color: transparent;
    color: black;
}

.custom-color {
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2em;
    width: 70%;
    margin: auto;
    margin-bottom: 0.5em;
    gap: 0.5em;
}

#custom {
    font-size: 1.25rem;
    flex: 2;
}

.color-picker {
    background-color: #E5E6E4;
    height: 100%;
    margin: auto;
    border: none;
    padding: 0;
    flex: 1;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
  
input[type="color"]::-webkit-color-swatch {
    border: none;border-radius: 5px;
}
  
input[type="color" i] {
    height: 40px;
    width: 100px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 25px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}
  
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: black;
    cursor: pointer;
}
  
.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: black;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    gap: 0.25rem;
    margin-top: 2em;
    text-decoration: none;
    color: black;
}

.footer:hover {
    animation: push 0.3s linear 1;
}

@keyframes push{
    50%  {transform: scale(0.8);}
}

img {
    height: 1.25rem;
}

.handheld {
    background-color: #d00000;
    margin: 3vh 5vw;
    padding: 0;
    width: 94vh;
    height: 94vh;
    box-shadow: 2px 2px 10px black;
    border-radius: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

h3, .shake {
    font-family: 'Damion', cursive;
}

h3 {
    font-size: 2em;
    color: #D7A709;
    margin: 1.5vh 0;
}

.screen {
    background-color: white;
    height: 70vh;
    width: 75vh;
    border-radius: 2vh;
    border: 1px solid dimgray;
    box-shadow: inset 0px 0px 8px black;
    margin: 0;
    padding: 0;
}

.grid {
    width: 100%;
    height: 100%;
    border-radius: 2vh;
    display: inline-block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
  
.cell {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bottom {
    display: flex;
    width: 100%;
    align-items: space-between;
    justify-content: space-between;
    
}

.dials {
    background-color: white;
    height: 8vh;
    width: 8vh;
    border-radius: 50%;
    box-shadow: 0px 0px 8px black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2vw;
}

.dial-inner {
    height: 7vh;
    width: 7vh;
    box-shadow: 0px 0px 6px black;
    border-radius: 50%;
}

.console-button {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

button {
    height: 6vh;
    font-size: 1.5em;
    padding: 0 1.5vw;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.shake-animation {
    animation: shake 0.5s;
}

@keyframes shake {
    10%, 90% {
      transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
      transform: translate3d(2px, 0, 0);
    }
  
    30%, 50%, 70% {
      transform: translate3d(-4px, 0, 0);
    }
  
    40%, 60% {
      transform: translate3d(4px, 0, 0);
    }
}

@media screen and (max-width:1024px){
    body {
        flex-direction: column;
    }

    .settings {
        margin-bottom: 2em;
    }

    .footer {
        margin-top: 1em;
    }
}

@media screen and (max-width:768px){
    body {
        flex-direction: column;
    }

    .settings {
        margin-bottom: 2em;
    }

    .handheld {
        margin: 3vh 5vw;
        width: 60vh;
        height: 70vh;
    }

    .screen {
        height: 50vh;
        width: 55vh;
    }

    .footer {
        margin-top: 1em;
    }
}

@media screen and (max-width:480px){
    body {
        flex-direction: column;
    }
    .settings {
        margin-bottom: 2em;
    }

    .handheld {
        margin: 3vh 5vw;
        width: 40vh;
        height: 60vh;
    }

    .screen {
        height: 35vh;
        width: 35vh;
    }

    .footer {
        margin-top: 1em;
    }
}