﻿/*(C) 2020 Moses Odhiambo*/

@font-face {
    font-family: Extrude;
    src: url(assets/fonts/Extrude.ttf);
}

@font-face {
    font-family: Boxy;
    src: url(assets/fonts/PressStart2P.ttf);
}

* {
    padding: 0;
    margin: 0;
    user-select: none;
}

*:focus {
    outline: none;
}

body {
    margin: 0;
    overflow: hidden;
}

canvas {
    height: 100%;
    width: 100%;
    display: none;
}

#score {
    font-family: Boxy;
    font-size: 18px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
}

#splash {
    height: 100vh;
    width: 100vw;
    background-image: url(assets/images/splash-screen.jpg);
    background-size: 960px 540px;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #11bfe2;
    position: fixed;
}

#title {
    position: absolute;
    width: 100vw;
    top: 15%;
    font-family: Extrude;
    font-size: 40px;
    color: white;
    text-align: center;
    vertical-align: middle;
    line-height: 6vh;
}

#title span {
    font-size: 48px;
}

#loading {
    opacity: 1;
    position: relative;
    top: 87vh;
    width: 240px;
    height: 5%;
    margin: 0 auto;
    font-family: Boxy;
    font-size: 24px;
    background-color: white;
}

.letter {
    height: 80%;
    float: left;
    color: #11bfe2;
}

.main {
    height: 80%;
    margin: 5px 0px;
}

.period1 {
    animation: first 3s step-end infinite;
}

.period2 {
    animation: second 3s step-end infinite;
}

.period3 {
    animation: third 3s step-end infinite;
}

#instructions {
    position: absolute;
    top: 75vh;
    width: 100%;
    height: 5%;
    margin: 0 auto;
    font-family: Boxy;
    font-size: 18px;
    text-align: center;
    color: white;
}

.w3-modal {
    padding-top: 31px !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

#modal {
    position: absolute;
    top: 5vh;
    width: 100%;
    height: 5%;
    margin: 0 auto;
    font-family: Boxy;
    font-size: 18px;
    text-align: center;
    color: white;
}

#play {
    opacity: 0;
    position: relative;
    top: 85vh;
    margin: 0 auto;
    font-family: "Press Start 2p";
    font-size: 24px;
    text-align: center;
    color: #11bfe2;
}

#restart-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

#restart {
    background-color: red;
    color: white;
    border-radius: 8px;
    padding: 15px 30px 15px 30px;
    font-family: Boxy;
    font-size: 20px;
    border-style: none;
    transition: .4s;
}

#restart:hover {
    box-shadow: 0px 0px 6px 3px #ef0000;
    cursor: pointer;
}

@keyframes first {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
}

@keyframes second {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
}

@keyframes third {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
}

#mute-button {
    position: fixed;
    bottom: 32px;
    left: 32px;
}

#mute-button span {
    font-size: 32px;
    border-radius: 8px;
    border: 1px solid white;
    color: white;
    padding: 4px;
    transition: 0.5s;
    cursor: pointer;
}

#mute-button span:hover {
    transform: scale(1.1);
}


/* Play Button */

.play-button {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
    perspective: 1600px;
    max-width: 600px;
    width: 100%;
    height: 60px;
}

.license-button {
    display: flex;
    margin-bottom: 50px;
    perspective: 1600px;
    width: 200px;
    height: 60px;
}

.instructions {
    top: 64px !important
}

#play-button {
    position: relative;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    max-width: 200px;
    width: 100%;
    height: 100%;
    border: 0;
    font-family: Extrude;
    background: radial-gradient(ellipse at center, #d60d2e 0%, #c20020 100%);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0px 12px 0px #750014;
    border-radius: 8px;
    transform: rotateX(30deg) translateY(0);
}

#play-button:active {
    text-shadow: 0 0 4px #ad001d;
    box-shadow: 0 1px 0 #423847;
    background: radial-gradient(ellipse at center, #ff002b 0%, #ed0028 100%);
    transition: transform 0.05s, box-shadow 0.05s;
    transform: rotateX(30deg) translateY(4px);
}

#play-button span {
    position: relative;
    font-size: 32px;
    color: white;
    text-transform: uppercase;
    transform: translate3d(0, 0, 0);
}

#license-button {
    position: relative;
    border-radius: 8px;
    margin: 0;
    padding: 5px;
    max-width: 200px;
    width: 100%;
    height: 100%;
    border: 0;
    font-size: 26px;
    color: white;
    font-family: Extrude;
    background: radial-gradient(ellipse at center, #379103 0%, #379103 100%);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0px 12px 0px #085001;
    border-radius: 8px;
    transform: rotateX(30deg) translateY(0);
}

#license-button:active {
    text-shadow: 0 0 4px #379103;
    box-shadow: 0 1px 0 #423847;
    background: radial-gradient(ellipse at center, #379103 0%, #379103 100%);
    transition: transform 0.05s, box-shadow 0.05s;
    transform: rotateX(30deg) translateY(4px);
}

#license-button span {
    position: relative;
    font-size: 32px;
    color: white;
    text-transform: uppercase;
    transform: translate3d(0, 0, 0);
}

html {
    overflow-x: unset !important;
}

.w3-display-topright {
    color: white !important;
}

.w3-container {
    padding: unset !important;
}