:root {
    --main-brand-color: #297ae3;
    --second-brand-color: #358dff7e;
    --second-second-brand-color: #358dff28;
    --third-brand-color: #358dff49;
    --primary-color: #15171c;
    --secondery-color: #232933;
    --light-secundery-color: #2e3744;
    --text-color: white;
    --secondery-text-color: #b3b4b6;
    --lila: #5600a7;
}

body {
    background-color: var(--secondery-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0px;
}



h1 {
    text-align: center;
    font-size: 300%;
}

#menü {
    position: fixed;
    bottom: 0;
    background-color: var(--light-secundery-color);
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

#menü table {
    width: 100%;
}

#menü table th {
    padding: 10px;
}

#menü th:hover {
    cursor: pointer;
    background-color: var(--third-brand-color);
}

.switch {
    position: relative;
    display: grid;
    grid-template-columns: 230px 64px;
    grid-template-rows: 34px;
    grid-template-areas: "settings switch";
}

.switch span {
    background-color: #ccc;
    transition: .4s;
    grid-area: switch;
}

.switch p {
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 30px;
    margin-top: 0;
}

input:checked+p::before {
    content: "";
}

input:checked~p::after {
    content: " ";
}

.switch input {
    display: none;
}

.body2{
    text-align: center;
}




#höhe,
#decin {
    font-size: 90%;
    margin-top: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
}









/* Füge diese Stile zu deiner CSS-Datei hinzu */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--main-brand-color);
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}



#spiele {
    position: relative;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.er {
    text-align: center;

}

.mitt {
    text-align: center;
}

.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: var(--secondery-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.loader {
    border: 8px solid var(--main-brand-color);
    border-radius: 50%;
    border-top: 8px solid var(--lila);
    border-bottom: 8px solid var(--lila);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loaded {
    display: none;
}

#overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#popup {
    background: var(--light-secundery-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

button {
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.pp a {
    color: var(--secondery-text-color);
}

.agb {
    font-size: 300%;
    color: var(--main-brand-color);
    background-color: var(--primary-color);
    border-radius: 15%;
    border: 5px solid var(--third-brand-color);
}

.agb:hover {
    color: var(--main-brand-color);
    background-color: var(--secondery-color);
    border-radius: 15%;
    border: 5px solid var(--third-brand-color);
}

.b9 {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#wheel {
    width: 80vmin;
    height: 80vmin;
    background-color: var(--secondery-color);
    border-radius: 50%;
    position: relative;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.segment {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
    transform-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-brand-color);
    /* Änderung hier: Verwende die Hauptmarke blau als Hintergrundfarbe */
}

.segment span {
    transform: rotate(90deg);
    /* Änderung hier: Textrichtung umkehren */
    text-align: center;
    font-size: 1em;
    /* Änderung hier: Schriftgröße angepasst */
    width: 80%;
    /* Änderung hier: Breite des Texts auf dem Segment */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Änderung hier: Text über Hintergrundfarbe */
}

#arrow {
    width: 5vmin;
    height: 5vmin;
    background-color: var(--main-brand-color);
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

#element,
button {
    margin: 10px;
    padding: 5px;
    font-size: 14px;
    background-color: var(--main-brand-color);
    color: var(--text-color);
    border: none;
    border-radius: 3px;
} 

#result {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    color: var(--secondery-text-color);
}

@media (max-width: 600px) {

    #element,
    button {
        width: 100%;
    }
}



.rb {
    padding: 10px 20px;
    background-color: var(-second-brand-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rb:hover {
    background-color: var(--third-brand-color);
}

.pp {
    color: var(--secondery-text-color);
    margin-top: 15px;
}

.pp a {
    color: var(--main-brand-color);
    text-decoration: none;
}

.pp a:hover {
    text-decoration: underline;
}



.agb {
    display: flex;
    align-items: center;
    color: var(--secondery-text-color);
    margin-bottom: 15px;
}

.agb input[type="checkbox"] {
    margin-right: 10px;
}

.agb a {
    color: var(--main-brand-color);
    text-decoration: none;
}

.agb a:hover {
    text-decoration: underline;
}
