/* Wave Style */
@keyframes wave {
    0%   { transform: scale(1); }
    50%  { transform: scale(2); }
    100% { transform: scale(1); } 
}

html, body{
    font-family: monospace;
}

.snake {
    width : 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

input{
    margin: 3px;
}

h1 , h2 {
    text-align: center;
}

input.wave {
    animation: wave 0.4s cubic-bezier(.17, .67, .83, .67);
}

.retry-btn{
    color: white;
    font-family: monospace;
    text-align: center;
    margin: 10px;
    width: 100px;
    height: 30px;
    background-color: #5386E4;
    border: none;
    border-radius: 5px;
    display: none;
}

.retry-btn:hover{
    background-color: #809BCE;
}

.controller{
    margin: 10px;
    display: flex;
    flex-direction: row;
}

.mid-con{
    display: flex;
    flex-direction: column;
}

.keys{
    color: white;
    margin: 3px;
    background-color: #5386E4;
    border: none;
    border-radius: 10px;
    width: 70px;
    height: 50px;
    font-size: 25px;
}

.keys:hover{
    background-color: #809BEC;
}

/* for responsive. */
@media  screen and (min-width: 1300px) {
    .controller{
        display: none;
    }
}

/* This is style for dark mode. */
.switch {
    margin-left: 200px;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    transform: scale(0.7);
}

.switch input {
    display: none;
}

.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background: #b892ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.dark-mode {
    background: #0b0a14;
}

.dark-mode h1{
    color: #f7f0e9;
}

.dark-mode h2 {
    color: #f7f0e9;
}

.dark-mode .keys, .retry-btn {
    background: #b892ff;
}
