/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.background {
    background-image: url('image/startbild.jpg'); /* Bild hier einfügen */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: -10px;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.overlay {
    position: absolute;
    top: 0;
    left: 4px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #fff;
    padding: 2vh;
}
.text {
    font-size: 1.8em;
    margin-top: 2vh;
    margin-bottom: 2vh;
}
.button-container {
    margin-top: 16vh;
}

/* Highscore-Stile */
.highscore-container {
    display: flex;
    width: 80%;
    margin-top: -16vh;
    justify-content: space-between;
    align-items: flex-start;
}

.highscore-column {
    width: 28%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid red;
    border-radius: 10px;
    padding: 1vh;
    color: #fff;
    min-height: 38vh;
}

.highscore-column h2 {
    color: red;
    margin-bottom: 1vh;
    font-size: 1.2em;
}

.highscore-list {
    width: 100%;
}

.highscore-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5vh;
    font-size: 0.9em;
}

.highscore-item .rank {
    width: 15%;
    text-align: left;
}

.highscore-item .name {
    width: 55%;
    text-align: left; /* Text linksbündig ausrichten */
    padding-left: 10px; /* Weniger Abstand links */
}

.highscore-item .score {
    width: 30%;
    text-align: right;
}

.first-place {
    position: absolute;
    bottom: 2vh;
    width: 80%;
    background: none;
    border: 5px solid red;
    border-radius: 10px;
    padding: 2vh;
    color: #fff;
    overflow: hidden;
}

.first-place .first-place-content {
    position: relative;
    z-index: 1;
    font-size: 3em;
    text-align: center;
}

.first-place::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Breite verdoppelt */
    height: 100%;
    background: linear-gradient(90deg, red, black, red, black);
    background-size: 50% 100%; /* Hintergrund wiederholt sich */
    animation: moveBackground 4s linear infinite; /* Animation angepasst */
}

/* Punktezahl des ersten Platzes weiter nach rechts verschieben */
.first-place .highscore-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.first-place .name {
    text-align: left;
}

.first-place .score {
    text-align: right;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -100% 0;
    }
}

/* Anpassung der Button-Größe */
.button-container a {
    display: inline-block;
    border: none;
}
.button-container img {
    width: 15vw;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}
.button-container img:hover {
    transform: scale(1.05);
}
/* Button-Stil */
.button-container {
    position: relative;
    z-index: 10; /* Höherer z-index, damit der Button oben liegt */
    margin-top: 16vh;