@import url('https://fonts.googleapis.com/css2?family=Nunito');
* {
    font-family: Nunito, sans-serif;
    text-align: center;
}

:root {
    background: linear-gradient(to bottom, #001f, #001f, #001c, #001f, #001f), url('../img/download.jpg');
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}
.main {
    height: 100%;
    width: 100%;
    display: table;
}
.wrapper {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
}

*::selection {
    color: black;
    background: white;
}

form {
    opacity: 1;
    margin: auto auto;
    width: 60%;
    border: solid 10px;
    border-left: none;
    border-right: none;
    transition: 0.3s;
    padding: 0 10%;
    padding-bottom: 20px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow:8px 0px 8px 0px #0004,
               -8px 0px 8px 0px #0004;
    transform: scaleX(0) scaleY(0.1);
}

table {
    transition: 0.5s;
    opacity: 0;
}

form * {
    font-size: large;
}

input[type='text'] {
    width: 50px;
    font-size: small;
    color: white;
    border: none;
    border-bottom: #888 1px solid;
    text-align: center;
    background: #0000;
    transition: 0.3s;
    outline: none;
}

input[type='text']:focus::selection {
    color: white;
    background-color: black;
}

input[type='text']:focus {
    color: #000;
    background: #fff;
    border-color: white;
    transform: scale(1.3);
}

input[type='range'] {
    appearance: none;
    -webkit-appearance: none;
    height: 10px;
    background: #fff3;
    outline: none;
    width: 100%;
    transition: 0.2s;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #fff;
    cursor: pointer;
    box-shadow: 2px 2px 4px black;
    transition: 0.2s;
}

input[type='range'][disabled]::-webkit-slider-thumb {
    cursor: default;
}

input[type='range']::-webkit-slider-thumb:active {
    transform: scale(1.5);
}

input[type='button'] {
    background-color: #0000;
    border: 1px solid white;
    color: #fff;
    padding: 10px 40px;
    outline: none;
    transition: 0.2s;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input[type='button']:active {
    color: #000;
    background-color: #fff;
    transform: scale(1.1);
}

#output {
    padding: 10px;
    color: white;
}

#heading {
    color: white;
    font-size: larger;
    margin-top: 0px;
    padding: 10px;
    font-weight: normal;
}

td {
    vertical-align: middle;
}

.ranges {
    font-size: small;
}

.result {
    font-size: x-large;
}

@media only screen and (max-width: 1000px) {
    form {
        width: 100%;
        padding: 0;
        padding-bottom: 10px;
    }
    .ranges {
        display: none;
    }
    input[type='range'] {
        appearance: none;
        -webkit-appearance: none;
        height: 10px;
        background: #fff3;
        outline: none;
        width: 100%;
        transition: 0.2s;
    }
}

#top-view {
    position: relative;
    height: 2.86vw;
    margin: 30px auto;
    width: 100%;
    border: 1px solid #fff;
    border-left: none;
    border-right: none;
    background: linear-gradient(to bottom, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #ffff, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2, #fff2);
    transform: scaleY(0);
    transition: transform 0.3s;
}

#top-view img {
    position: absolute;
    height: 0.95vw;
    opacity: 0;
    transition: opacity 0.3s, top 1.5s;
}

#top-view hr {
    height: 0px;
    vertical-align: middle;
    width: 100%;
}

#carB {
    width: 2.38%;
    left: 0;
    top: 33.33%;
}

#carC {
    width: 2.38%;
    right: 0;
    bottom: 10%;
    transform: scaleX(-1);
}

#carA {
    width: 2.38%;
    left: 5.71429%;
    top: 10%;
}

@media only screen and (min-width: 1000px) {
    input[type='button']:hover {
        transform: scale(1.1);
    }
}
