body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    background-color: #f0f0f0;
    background-image: url('wassersand1.png');
    background-size: cover;
    background-repeat: no-repeat;
}

#headline {
    top: 72px;
    margin-bottom: 0px;
    font-size: 2.4em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 800;
    color: #decd51;
    text-align: left;
    z-index: 1000;
    position: relative;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    margin-left: 95px;
}

h2 {
    text-align: center;
    font-size: 1em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 800;
    color: #decd51;
}

p {
    text-align: left;
    font-size: 0.5em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 400;
    color: #decd51;
    column-count: 2;
    column-gap: 120px;
}

#myImage {
    width: 100%;
    position: fixed;
    top: 0px;
    z-index: 1;
    opacity: 0.9;
}

canvas {
    display: block;
    background-color: transparent;
    width: 100%;
    position: fixed;
    bottom: 0px;
    z-index: -1;
}

#reloadButton {
    position: absolute;
    top: 100px;
    left: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    background-color: #decd51;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reloadButton:hover {
    background-color: #c1b349;
}

.sideButton {
    position: absolute;
    width: 110px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
    background-color: #decd51;
    color: white;
    border: none;
    border-radius: 10%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
    font-family: "Gill Sans", sans-serif;
}

.sideButton:hover {
    background-color: #c1b349;
}

#button1 {
    top: 100px;
    right: 60px;
}

#button2 {
    top: 155px;
    right: 60px;
}

#photoBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90%;
    background-color: rgb(255, 255, 255);
    z-index: 1001;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    font-size: 2.3em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 800;
    color: #decd51;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

#photoBox img {
    max-width: 24%;
    max-height: 80%;
    margin: 10px;
}

#reflexionBox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90%;
    background-color: rgb(255, 255, 255);
    z-index: 1001;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    font-size: 2.3em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 800;
    color: #decd51;
}

#reflexionBox p {
    padding: 120px;
}

.closeButton {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 30px;
    background-color: #decd51;
    color: white;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

#sourceCodeLink {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    bottom: 25px;
    right: 40px;
}

#sourceCodeLink a {
    font-size: 1.4em;
    font-family: "Gill Sans", sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

/* Media Query für responsive Design */
@media (max-width: 768px) {
    #headline {
        font-size: 1.8em;
        text-align: center;
        margin-left: 0;
        top: 20px;
    }

    #reloadButton {
        top: 105px;
        left: 20px;
    }

    .sideButton {
        width: 100px;
        font-size: 1em;
    }

    #button1 {
        top: 80px;
        right: 20px;
    }

    #button2 {
        top: 135px;
        right: 20px;
    }

    #photoBox {
        flex-direction: column;
        overflow-y: auto; /* Scrollen für mehr Bilder ermöglichen */
    }

    #photoBox img {
        max-width: 80%;
        max-height: 20%;
    }

    #reflexionBox {
        overflow-y: auto; /* Scrollen für langen Text ermöglichen */
    }

    #reflexionBox p {
        column-count: 1; /* Text in einer Spalte anzeigen */
        padding: 20px;
        font-size: 0.45em;
    }

    #sourceCodeLink {
        bottom: 15px;
        right: 15px;
    }

    #sourceCodeLink a {
        font-size: 1em;
    }
}