body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: #121212; 
    background-image: url('../static/login.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; /* Creates parallax and stops scroll weirdness on mobile */
    background-repeat: no-repeat;
    color: #e0e0e0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.container {
    width: 95%;
    max-width: 600px;
    margin: 4vh auto;
    padding: 30px;
    background: rgba(18, 25, 33, 0.7); /* Deep Glassmorphism */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    padding-bottom: 40px; 
}

form {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    margin-top: 15px; 
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #f39c12; /* Viking Orange/Gold accent */
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

button[type="submit"], .upgrade-button, #ship-list button, #return-to-island {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c0392b, #8e44ad); /* Viking themed red/purple */
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.5);
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 25, 33, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    display: flex; 
    justify-content: space-around; 
    padding: 8px 0;
    z-index: 1000;
}

.taskbar button {
    flex: 1; 
    background: transparent;
    color: #e0e0e0;
    border: none;
    padding: 12px 10px;
    margin: 0 5px; 
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.taskbar button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.flashes {
    color: #ff5252;
    list-style: none;
    padding: 0;
}

.flashes.success {
    color: #69f0ae; 
}

a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        width: 95%; 
        padding: 20px; 
        margin: 2vh auto;
    }

    h1, h2, h3 {
        font-size: 1.8em; 
    }

    button[type="submit"] {
        padding: 12px; 
    }
}


.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Sicherstellen, dass die Navbar über anderen Inhalten liegt */
}

.building-item {
    margin-bottom: 10px; /* Abstand zwischen den Zeilen */
}

.building-info {
    display: flex; /* Flexbox für die Gebäudeinformationen */
    justify-content: space-between; /* Verteilen Sie die Elemente gleichmäßig */
    align-items: center; /* Zentrieren Sie die Elemente vertikal */
}

.building-costs {
    font-size: 12px; /* Kleinere Schriftgröße für die Kosten */
    color: #666; /* Graue Farbe für die Kosten */
    margin-top: 4px; /* Abstand nach oben */
    margin-left: 20px; /* Optional: Einrückung für bessere Lesbarkeit */
}

.upgrade-button {
    padding: 5px 10px; /* Kleinere Polsterung für den Button */
    font-size: 12px; /* Kleinere Schriftgröße */
    background-color: #4CAF50; /* Grüner Hintergrund */
    color: white; /* Weiße Schriftfarbe */
    border: none; /* Kein Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer; /* Hand-Cursor */
    width: auto; /* Automatische Breite basierend auf dem Inhalt */
}

.upgrade-button:hover {
    background-color: #45a049; /* Dunklerer Grünton bei Hover */
}

.cancel-button {
    padding: 5px 10px; /* Gleiche Polsterung wie die Upgrade-Buttons */
    font-size: 12px; /* Gleiche Schriftgröße wie die Upgrade-Buttons */
    background-color: #f44336; /* Roter Hintergrund für den Abbrechen-Button */
    color: white; /* Weiße Schriftfarbe */
    border: none; /* Kein Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer; /* Hand-Cursor */
}

.cancel-button:hover {
    background-color: #e53935; /* Dunklerer Rotton bei Hover */
}

.building-name {
    cursor: pointer; /* Ändert den Mauszeiger in eine Hand */
    color: #007BFF; /* Setzt die Textfarbe auf Blau */
    text-decoration: underline; /* Unterstreicht den Text */
}

.building-name:hover {
    color: #0056b3; /* Ändert die Textfarbe beim Hover */
    text-decoration: none; /* Entfernt die Unterstreichung beim Hover */
}

.building-name2 {
    cursor: default; /* Standard-Cursor, um anzuzeigen, dass es nicht anklickbar ist */
    color: #666; /* Graue Farbe, um anzuzeigen, dass es nicht aktiv ist */
    text-decoration: none; /* Keine Unterstreichung */
}


/* Schiffswerft von hier */

#shipyard {
    margin-top: 20px;
}

#ship-list {
    list-style-type: none;
    padding: 0;
}

#ship-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#ship-list button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

#ship-list button:hover {
    background-color: #0056b3;
}

#ship-list input[type="number"] {
    margin-right: 10px;
}

.ship-item {
    margin-bottom: 10px;
}

.ship-info {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
}

.ship-header {
    display: flex;
    align-items: center; /* Zentriert die Elemente vertikal */
    justify-content: space-between; /* Verteilt die Elemente horizontal */
}

.ship-quantity {
    width: 50px;
    margin-left: 10px;
    margin-right: 10px;
}

.build-button {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px; /* Kleinere Schriftgröße */
    width: auto; /* Automatische Breite basierend auf dem Inhalt */
    white-space: nowrap; /* Verhindert, dass der Text umbricht */
}

.build-button:hover {
    background-color: #45a049;
}

.ship-cost {
    font-size: 12px; /* Kleinere Schriftgröße für die Kosten */
    color: #555; /* Dunklere Farbe für bessere Lesbarkeit */
    margin-top: 5px;
}

#building-details {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Vollbildhöhe */
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Verhindert, dass der Hauptcontainer scrollt */
}

#shipyard-options {
    flex: 1;
    overflow-y: auto; /* Ermöglicht das Scrollen innerhalb des Schiffsbau-Bereichs */
}

#ship-queue-container {
    margin-top: 20px;
}

/* bis hier */


/*Button zurück zur Insel und noch mehr*/


#return-to-island {
    margin-top: 20px;
    align-self: center;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#return-to-island:hover {
    background-color: #45a049;
}
/* bis hier */


/*Karte*/
.map-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 2px;
    width: 300px;
    height: 300px;
    margin: 10px;
}

.map-cell {
    width: 100%;
    height: 100%;
    background-color: blue;
    position: relative;
}

.map-cell.island {
    background-color: green;
}

.map-controls {
    text-align: center;
    margin: 5px 0;
}

.map-controls button,
.vertical-controls button {
    margin: 2px;
    padding: 5px 5px;
    font-size: 16px;
}

.vertical-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popover-content {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 200px; /* Maximalbreite des Popovers */
    max-height: 150px; /* Maximale Höhe des Popovers */
    overflow: auto; /* Ermöglicht das Scrollen bei Bedarf */
    white-space: nowrap; /* Erlaubt Zeilenumbrüche im Text */
    line-height: 1.2; /* Reduzierter Zeilenabstand */
}

.popover-content p {
    margin: 2px 0; /* Reduziertes Margin für Absätze */
    padding: 0; /* Kein Padding für Absätze */
}
/* bis hier */




