html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

* {
    box-sizing: border-box;
    touch-action: manipulation;
}

div, p {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

#overlay-home {
    position: absolute;
    z-index: 100;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.flex-center-fill {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#input-name {
    font-family: monospace;
    font-size: 40px;
    font-weight: 800;
    color: black;
    padding: 4px;
    border: 4px solid #000;
    border-radius: 80px;
    width: 400px;
    margin: 10px;
    outline: none;
    text-align: center;
}

#play-btn-container {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
#btn-play {
    width: 400px;
    height: 80px;
    animation: pulse 2s infinite;
    background: url("../img/ui/btn-play2.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
    outline: none;
    border: none;
}

#score-container {
    z-index: 50;
    border-radius:20px;
    padding-left: 20px;
    color: white;
    font-size: 26px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    font-family: monospace;
    left: 10px;
    width: 180px;
    pointer-events: none;
}
#score-container .row {
    display: flex;
    flex-direction: row;
    padding-top: 8px;
}
#score-container .row div:nth-child(1) {
    color: #4dce4d;
}
#score-container .row div:nth-child(2) {
    flex: 1;
    text-align: right;
}

#top-list-container {
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 50;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    color: white;
    font-size: 22px;
    font-family: monospace;
    width: 240px;
    font-weight: bold;
    pointer-events: none;
}
#top-list-container .row {
    display: flex;
    flex-direction: row;
    padding: 4px 0;
}
#top-list-container .row div:nth-child(1) {
    text-align: left;
    flex: 1;
}
#top-list-container .row div:nth-child(2) {
    text-align: left;
    flex: 5;
}
/* #top-list-container .row div:nth-child(3) {
    text-align: right;
    flex: 2;
} */
#me-list {
    border-top: 4px solid #fff;
    padding-top: 10px;
    margin-top: 6px;
}

#log-container {
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 50;
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 6px 10px;
    color: white;
    font-size: 18px;
    font-family: monospace;
    width: 300px;
    height: 180px;;
    font-weight: bold;
    display: flex;
    flex-direction: column-reverse;
    pointer-events: none;
}
#log-container p {
    white-space: nowrap;
    margin: 4px 0;
    line-height: 20px;

}

#skin-img-container {

}
.car-container {
    width: 180px;
    height: 180px;
    border-radius: 100px;
    border: 4px solid white;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(120, 120, 120, 0.4);
    text-align: center;
    box-shadow: inset 0px 0px 40px 10px rgba(0,0,0,0.5);
}
.car-container img {
    transform: rotate(45deg) scale(1.2);
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.4));
}
#btn-skins {
    
    padding: 10px 35px;
    font-size: 24px;
    color: white;
    font-weight: bold;
    font-family: cursive;
    background: url("../img/ui/btn-skins.png") no-repeat center;
    background-size: contain;
    margin-top: -20px;
    cursor: pointer;
    width: 150px;
    height: 60px;
    margin-left: -60px;
}
#btn-skins:hover {
}
#last-info-container {
    width: 240px;
    height: 150px;
    border-radius: 20px;
    background: rgba(0,0,0,0.4);
    margin-left: 20px;
}

#car-choose-container {
    background: black;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: none;
}
#car-choose-container-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.btn-cars {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
#btn-prev-cars {
    background-image: url("../img/ui/btn-prev.png");
}
#btn-next-cars {
    background-image: url("../img/ui/btn-next.png");
}
#btn-select-car {
    color: white;
    padding: 6px 40px;
    font-size: 30px;
    font-weight: bold;
    font-family: cursive;
    background: url("../img/ui/btn-done.png") no-repeat center;
    background-size: contain;
    margin-top: 40px;
    cursor: pointer;
    width: 200px;
    height: 70px;
}
.btn-cars.disabled {
    filter: saturate(0);
    cursor: auto;
}
.btn-cars:hover:not(.disabled) {
    filter: contrast(2);
}
#cars-page-container {
    width: 600px;
    height: 250px;
    overflow: hidden;
    position: relative;
}
#cars-page-container-inner {
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0px;
    transition: 0.2s ease;
}
#cars-page-container-inner>div {
    display: inline-block;
    padding: 10px;
}
.car-container-outer {
    text-align: center;
}
.car-select-btn {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: cursive;
    background: url("../img/ui/btn-select.png") no-repeat center;
    background-size: contain;
    display: inline-block;
    padding: 4px 20px;
    margin-top: -20px;
    cursor: pointer;
    width: 180px;
    height: 56px;
}
.car-select-btn:hover {
    
}
.car-select-btn.selected {
    background: url("../img/ui/btn-selected.png") no-repeat center;
    background-size: contain;
}

#start-ui {
    display: none;
}

#help-container {
    background: rgba(255,255,255,0.2);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: none;
    overflow: auto;
    text-align: center;
}

#help-container>div {
    max-width: 600px;
    border-radius: 20px;
    color: white;
    font-family: monospace;
    font-weight: bold;
    display: inline-block;
    background-color: rgba(0,0,0,0.9);
    margin: 20px;
    padding: 10px 30px;
}
#help-container h3 {
    text-align: center;
    font-size: 36px;
}
#help-container li {
    font-size: 20px;
    text-align: left;
    margin-top: 10px;
}
#btn-help-ok {
    display: inline-block;
    margin: 30px;
    font-size: 32px;
    padding: 6px 50px;
    border: 1px solid white;
    border-radius: 6px;
    cursor: pointer;
}
#btn-help-ok:hover {
    background-color: #444;
}
#btn-help {
    position: absolute;
    background: url('../img/ui/help.png') no-repeat center;
    width: 70px;
    height: 60px;
    top: 20px;
    left: 20px;
    background-size: contain;
    cursor: pointer;
}