@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
    background-color: #2a2a33;
}

#bg1 {
    position: absolute;
    z-index: -11;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

#bg2 {
    position: absolute;
    z-index: -11;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

#themePlayerLeft {
    position: absolute;
    width: 200%;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

#themePlayerRight {
    position: absolute;
    width: 200%;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

#gameArea {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
}

.titel {
    color: #faf2cb;
    font-family: pacifico, sans-serif;
    font-size: 48px;
    text-align: center;
    letter-spacing: 7px;
    text-transform: uppercase;
    cursor: default;
    font-weight: lighter;
    text-shadow: 0 0 5px rgba(0, 100, 0, 0), 0 0 15px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff, 0 0 60px #00ccff, 0 0 10px #00ccff, 0 0 98px #00ccff;
}

.shopbg{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.shop{
    width: 80%;
    height: 95%;
    border: solid 1px #555;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    user-select: none;
    overflow: hidden;
    background-color: #1a1a1a;
}

#shop{
    display: none;
}

.item{
    position: relative;
    aspect-ratio: 1;
    border: solid 1px #888;
    cursor: pointer;
}

.kategorieGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px);
    grid-gap: 10px;
}

.x{
    position: absolute;
    right: 0;
    cursor: pointer;
    top: 0;
    transition: 150ms;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#menu{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.9);
    color: #fff;
    user-select: none;
}

.m-btn{
    cursor: pointer;
    position: relative;
    width: 7rem;
    height: 7rem;
    margin: 5rem;
}

.m-btns{
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    display: flex;
}

@media(max-width: 51rem){
    .m-btns{
        flex-direction: column;
    }
}

.settingsbg{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

#settings{
    display: none;
}

.settings {
    width: 80%;
    height: 95%;
    border: solid 2px #555;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    user-select: none;
    overflow: hidden;
    background-color: #1a1a1a;
}

.settings_main {
    position: relative;
    border-top: solid 2px #555;
    display: grid;
    grid-template-columns: 60% 40%;
    padding-left: 10%;
    overflow-y: scroll;
    height: calc(100% - 2.5rem);
    padding-bottom: 3rem;
}

.settings_header {
    height: 2.5rem;
}

.settings_title{
    transform: translateY(-40%);
    color: #faf2cb;
    font-family: pacifico, sans-serif;
    font-size: 35px;
    text-align: center;
    letter-spacing: 7px;
    text-transform: uppercase;
    cursor: default;
    font-weight: lighter;
    text-shadow: 0 0 5px rgba(0, 100, 0, 0), 0 0 15px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff, 0 0 60px #00ccff, 0 0 10px #00ccff, 0 0 98px #00ccff;
}

.settings_rangeInput {
    cursor: pointer;
    width: 15rem;
}

.settings input {
    margin: 0.5rem 0;
}

.settings_headings {
    grid-column: 1 / span 2;
}

.settings_rangeOutput {
    position: relative;
    font-size: 20px;
    top: -11px;
    left: 5px;
}

.pause{
    position: absolute;
    cursor: pointer;
    right: 2.5rem;
    top: 1rem;
}

#score {
    color: #faf2cb;
    font-family: sans-serif;
    font-size: 48px;
    text-align: center;
    letter-spacing: 7px;
    text-transform: uppercase;
    cursor: default;
    text-shadow: 0 0 5px rgba(0, 100, 0, 0), 0 0 15px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff, 0 0 60px #00ccff, 0 0 10px #00ccff, 0 0 98px #00ccff;
}

#timer {
    color: #DEDEDE;
    font-family: arial, sans-serif;
    font-weight: bold;
    font-size: 19px;
    text-align: center;
    letter-spacing: 1px;
    position: static;
    cursor: default;
}

#game {
    display: none;
}

#shop_header {
    top: 0;
    position: relative;
    height: 20%;
    border: solid 1px #555;
    user-select: none;
}

#shop_main {
    position: relative;
    overflow-y: scroll;
    height: 80%;
    border: solid 1px #555;
    user-select: none;
    padding: 10px;
}

.shop_title{
    color: #faf2cb;
    font-family: pacifico, sans-serif;
    font-size: 38px;
    text-align: center;
    letter-spacing: 7px;
    text-transform: uppercase;
    cursor: default;
    font-weight: lighter;
    text-shadow: 0 0 5px rgba(0, 100, 0, 0), 0 0 15px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff, 0 0 60px #00ccff, 0 0 10px #00ccff, 0 0 98px #00ccff;
}

.item_balken {
    position: absolute;
    width: 20px;
    height: 120px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.item_ball {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
}

.item_price {
    color: #fff;
    position: absolute;
    bottom: 0.2em;
    right: 0.2em;
    display: flex;
    font-size: 20px;
    align-items: center;
}

.item_price_img {
    margin-left: 0.2em;
    width: 25px;
    height: 25px;
}

.item_theme {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-position: center;
    background-size: cover;
}

#shop_playerSelect {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border: solid 1px #fff;
    background-color: transparent;
    color: #fff;
    left: 0.5rem;
    bottom: 0.5rem;
    position: absolute;
    cursor: pointer;
    text-align: center;
}

#shop_playerSelect option {
    color: #000;
}

#coinsDisplay {
    position: absolute;
    right: 0;
    bottom: 0;
    align-items: center;
    display: flex;
    padding: 0.5rem;
}

#coinsDisplay_img {
    width: 2.5em;
    margin-right: 1rem;
}

#coinsDisplay_count {
    font-size: 40px;
}

#schlaegerRundung_simulation {
    position: relative;
    width: 40px;
    overflow: hidden;
    left: calc(7.5rem - 20px);
}

#schlaegerRundung_simulation_schlaeger {
    width: 40px;
    height: 200px;
    background-color: #fff;
}

#schlaegerRundung_simulation_rundung {
    position: absolute;
    border-right: dotted 3px #f00;
    border-top: dotted 3px #f00;
    border-bottom: dotted 3px #f00;
    width: 97px;
    height: 220px;
    transform: translate(1px, -50%);
    top: 50%;
    right: 0;
    border-radius: 0 50% 50% 0;
}

.ItemSelected {
    border: solid 2px #0f0;
}