body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #87CEEB;
}

.container {
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    background-color: white;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

#start-screen, #game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 80vh;
    background-color: #87CEEB;
}

.green {
    background-color: #0b8813;
    width: 100%;
    height: 100%;
}

/* #biker {
    position: absolute;
    left: 40px;
    background: url('./bilder/bike.png') no-repeat center center / contain;
    z-index: 9997;
} */



#biker {
    position: absolute;
    left: 40px;
    width: 9vw;
    height: 57px;
    background: url('./bilder/biker.gif') no-repeat center center / contain;
    z-index: 9997;
}





#obstacle, #item {
    position: absolute;
    right: -50px; /* Startet außerhalb des Bildschirms */
}

#obstacle {
    background: url('./bilder/zaun.png') no-repeat center center / contain;
    z-index: 9999;
    bottom: 12px;
}

#item {
    background: url('./bilder/etiketten-bonuspunkte-treuepunkte.png') no-repeat center center / contain;
    bottom: 32px !important;
    right: -45px; /* Startet außerhalb des Bildschirms */
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px; 
    color: white;
}

#time {
    position: absolute;
    top: 20px;
    right: 10px;
    font-size: 24px;
    color: red;
    font-weight: bold;
}

.left {
    position: absolute;
    top: 20px;
    left: 10px;
}

.cloud {
    position: absolute;
    top: 50px;
    right: -100px; /* Startet außerhalb des Bildschirms */
    width: 15vw;
    height: 28%;
    background: url('./bilder/cloud.png') no-repeat center center / contain;
}

#cloud2 {
    top: 120px;
    right: -150px;
}

.gras-container {
    position: absolute;
    bottom: 0;
    width: 100vw;
    height: 50px;
    overflow: hidden;
}

.gras {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%; /* Zweimal die Breite des Containers */
    height: 52px;
    background: url('./bilder/gras.png') repeat-x;
    animation: moveGras 100s linear infinite;
    z-index: 9999;
}

@keyframes moveGras {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Tabellen */

table.blueTable {
    border: 1px solid #1C6EA4;
    background-color: #EEEEEE;
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

table.blueTable td, table.blueTable th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
}

table.blueTable tbody td {
    font-size: 13px;
}

table.blueTable tr:nth-child(even) {
    background: #D0E4F5;
}

table.blueTable thead {
    background: #1C6EA4;
    background: -moz-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    background: -webkit-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    background: linear-gradient(to bottom, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    border-bottom: 2px solid #444444;
}

table.blueTable thead th {
    font-size: 15px;
    font-weight: bold;
    color: #FFFFFF;
    border-left: 2px solid #D0E4F5;
}

table.blueTable thead th:first-child {
    border-left: none;
}

table.blueTable tfoot {
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    background: #D0E4F5;
    background: -moz-linear-gradient(top, #dcebf7 0%, #d4e6f6 66%, #D0E4F5 100%);
    background: -webkit-linear-gradient(top, #dcebf7 0%, #d4e6f6 66%, #D0E4F5 100%);
    background: linear-gradient(to bottom, #dcebf7 0%, #d4e6f6 66%, #D0E4F5 100%);
    border-top: 2px solid #444444;
}

table.blueTable tfoot td {
    font-size: 14px;
}

table.blueTable tfoot .links {
    text-align: right;
}

table.blueTable tfoot .links a {
    display: inline-block;
    background: #1C6EA4;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 5px;
}

/* Responsive Styles */

/* Obstacle */
@media screen and (min-device-width: 768px) and (max-device-width: 2732px) { 
    #obstacle {
        width: 15vw;
        height: 56px;
    }
}

@media screen and (min-width: 769px) {
    #obstacle {
        width: 7vw;
        height: 56px;
    }
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    #obstacle {
        width: 16vw;
        height: 56px;
    }
}

@media only screen and (max-device-width: 480px) {
    #obstacle {
        width: 17vw;
        height: 56px;
    }
}

/* Item */
@media screen and (min-device-width: 768px) and (max-device-width: 2732px) { 
    #item {
        width: 15vw;
        height: 56px;
    }
}

@media screen and (min-width: 769px) {
    #item {
        width: 8vw;
        height: 56px;
    }
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    #item {
        width: 17vw;
        height: 56px;
    }
}

@media only screen and (max-device-width: 480px) {
    #item {
        width: 17vw;
        height: 56px;
    }
}

/* Biker */
@media screen and (min-device-width: 768px) and (max-device-width: 2732px) { 
    #biker {
        width: 22vw;
        height: 56px;
    }
}

@media screen and (min-width: 769px) {
    #biker {
        width: 9vw;
        height: 57px;
    }
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    #biker {
        width: 15vw;
        height: 56px;
    }
}

@media only screen and (max-device-width: 480px) {
    #biker {
        width: 28vw;
        height: 56px;
    }
}

/* Score and Time */
@media screen and (min-device-width: 768px) and (max-device-width: 2732px) { 
    #score, #time {
        font-size: 24px;
    }
}

@media screen and (min-width: 769px) {
    #score, #time {
        font-size: 24px;
    }
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    #score, #time {
        font-size: 18px;
    }
}

@media only screen and (max-device-width: 480px) {
    #score, #time {
        font-size: 16px;
    }

    #start-screen, #game-over-screen {
        width: 90%;
        padding: 10px;
    }
}





@media screen and (min-device-width: 100px) and (max-device-width: 480px) { 
    #item {
        width: 17vw;
        height: 3vh;
    }
}


/* Neue CSS-Regeln für die Tabelle */


h1 {
    text-align: center;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9e9e9;
}

a {
    display: inline-block;
    margin: 20px;
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}
