/* ------------------------------
   GLOBAL
------------------------------ */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* ------------------------------
   HOME SEITE
------------------------------ */
body.home {
    height: 100vh;
    background-image: url('pics/theRoof_BackdropDach.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ------------------------------
   BUILDER / KRABBEN AUSWAHL
------------------------------ */
.builder {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.options img {
    width: 100px;
    margin: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: 0.3s;
}

.options img:hover {
    border-color: #0077ff;
    transform: scale(1.5);
}

/* Vorschau der Krabbe */
.preview {
    position: relative;
    width: 200px;
    height: 200px;
}

.preview .layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ------------------------------
   LOBBY
------------------------------ */
#lobby-container {
    position: relative;          /* Absolute Kinder korrekt positionieren */
    width: 100vw;
    height: 100vh;
    background-image: url('pics/theRoof_BackdropDach.png'); /* Lobby Hintergrund */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* ------------------------------
   KRABBEN
------------------------------ */
.crab {
    position: absolute;
    width: 100px;
    height: 100px;
    transition: left 0.2s linear, top 0.2s linear, transform 0.2s ease;
}

.crab.big {
    transform: scale(1.5); /* kurz größer bei Aktion */
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Klicks nicht blockieren */
}

/* ------------------------------
   BUTTONS
------------------------------ */
.button {
    padding: 10px 20px;
    background: #aa2299;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.button:hover {
    transform: scale(1.3);
}

/* ------------------------------
   CHAT
------------------------------ */
#chat-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 300px;
    height: 250px;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    padding: 5px;
}

#chat-input {
    padding: 5px;
    margin-top: 5px;
}

#chat-send {
    margin-top: 5px;
    padding: 5px;
}
