body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

#welcome-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 3em;
}

h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

#scenes-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.scene-option {
    margin: 10px;
    text-align: center;
    color: white;
    cursor: pointer;
}

.scene-option img {
    max-width: 90px;
    height: auto;
}

#main-window {
    position: relative;
    height: 100%;
    width: 100%;
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

#scene-name {
    font-size: 4em;
    color: white;
    text-shadow: 1px 1px 2px black, 0 0 25px lightgrey, 0 0 5px lightgrey;
    margin-top: 20px;
    text-align: center;
}

#play-pause-button {
    background: none;
    padding: 30px;
    border: none;
    cursor: pointer;
}

#scene-dock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(169, 169, 169, 0.7);
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
}

.dock-scene {
    margin: 0 10px;
    color: white;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 5px;
    transition: background-color 0.3s;
    word-wrap: break-word;
}

.dock-scene.selected {
    background-color: rgba(255, 255, 255, 0.3);
}

#left-arrow, #right-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
    padding: 30px;
    background: none;
    text-shadow: 1px 1px 2px black, 0 0 25px lightgrey, 0 0 5px grey;
    border: none;
    color: white;
    cursor: pointer;
}

#left-arrow {
    left: 10px;
}

#right-arrow {
    right: 10px;
}

#left-arrow:hover, #right-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    width: 100%;
}

a:link, a:visited {
  color: white;
  text-decoration: none;
}

a:hover, a:active {
  background-color: red;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3em;
    }

    #scene-name {
        font-size: 3em;
    }

    #play-pause-button {
        font-size: 3em;
    }

    .scene-option img {
        max-width: 90px;
    }

    .dock-scene {
        max-width: 100px;
    }

    #footer {
        font-size: 0.8em;
        padding: 8px;
    }
}

@media (max-width: 550px) {
    .dock-scene {
        max-width: 90px;
    }
}

@media (max-width: 530px) {
    .dock-scene {
        max-width: 80px;
    }
}

@media (max-width: 500px) {
    .dock-scene {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5em;
    }

    #scene-name {
        font-size: 2.5em;
    }

    #play-pause-button {
        font-size: 3em;
    }

    #scene-dock {
        padding: 10px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .scene-option img {
        max-width: 70px;
    }

    .dock-scene {
        max-width: 45px;
        white-space: nowrap;
        overflow: auto;
    }

    #footer {
        font-size: 0.7em;
        padding: 5px;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 2.5em;
    }

    #scene-name {
        font-size: 2.5em;
    }

    #play-pause-button {
        font-size: 2.5em;
    }

    #scene-dock {
        padding: 5px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .scene-option img {
        max-width: 60px;
    }

    .dock-scene {
        max-width: 40px;
        word-break: keep-all;
        overflow: auto;
    }
}
