﻿@import url("https://fonts.googleapis.com/css?family=Press+Start+2P");

body {
    margin: 0;
    color: white;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

button {
    outline: none;
    cursor: pointer;
    border: none;
    box-shadow: 3px 5px 0px 0px rgba(0, 0, 0, 0.75);
    margin-top: 18px;
}

#accelerate {
    margin-bottom: -86px;
    margin-left: 1150px;
    cursor:pointer;
}

#decelerate {
    margin-bottom: 245px;
    margin-left:30px;
    cursor:pointer;
}

.carsound {
    width: 50px;
    height: 50px;
    margin-top: 227px;
    margin-left: -31px;
    cursor: pointer;
}

.popup {
    background: url(../image/popup.png);
    padding: 131px;
    width: 110px;
    margin-top: -92px;
    background-size: 371px 262px;
}

.crash {
    margin-left: 76px;
    margin-top: -200px;
}

.restart {
    margin-left: 120px;
    font-size: 24px;
    font-family: unset;
    background-color: steelblue;
    box-shadow: 7px 9px blue;
    color: white;
    font-weight:bold;
}

a,
a:visited {
    color: inherit;
}

#score {
    position: absolute;
    font-family: unset;
    font-size: 4.1em;
    color: black;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    max-width: 100px;
    text-align: center;
    line-height: 1.6em;
}

#controls {
    position: absolute;
    bottom: 50px;
    left: 50px;
    display: none;
}

    #controls #buttons {
        width: 80px;
        opacity: 0;
        transition: opacity 2s;
    }

    #controls #instructions {
        margin-left: 20px;
        max-width: 300px;
        background-color: rgba(0, 0, 0, 0.2);
        /*padding: 20px;*/
        opacity: 0;
        transition: opacity 2s;
    }

    #controls button {
        width: 100%;
        height: 40px;
        background-color: white;
        border: 1px solid black;
        margin-bottom: 10px;
    }

#results {
    position: absolute;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.75);
    display: none;
    z-index: 51;
}

    #results .content {
        max-width: 350px;
        padding: 50px;
        border-radius: 20px;
    }

.youtube,
#youtube-card {
    display: none;
    color: black;
}

@media (min-height: 325px) {
    #score {
        font-size: 2.5em;
        max-width: 150px;
    }

    #controls {
        display: flex;
    }
}

@media screen and (max-width:1000px){
    #accelerate {
        margin-left: 633px;
        margin-bottom: -100px;
    }

    #decelerate {
        margin-left: -28px;
        margin-bottom: 90px;
    }

    .carsound {
        margin-top: 138px;
        margin-left: -75px;
    }
}

