/* --- START OF FILE styles.css --- */

body {
    font-family: 'Press Start 2P', cursive;
    background: #ade8f4;
    color: #333;
    margin: 0;
    padding: 0;
    overflow: auto; /* Keep overflow auto for body */
    cursor: url('custom-cursor.png'), auto;
}

/* Header-Stile */
header {
    background: #48cae4;
    text-align: center;
    padding: 1rem;
    position: relative; /* Needed for positioning the wave button */
}

header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

/* Wave Navigation Button */
.wave-button {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem; /* Slightly smaller font */
    border: none;
    z-index: 1500; /* Ensure it's above most things */
}


/* Karten-Container */
.map-container {
    position: relative;
    width: 100vw;
    /* height: 100vh; */ /* Avoid fixing height to prevent cutting off content */
    min-height: calc(100vh - 70px); /* Adjust based on header height */
    display: flex;
    justify-content: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto;   /* Allow vertical scroll if map is tall */
    padding-top: 10px;
    box-sizing: border-box; /* Include padding in dimensions */
}

.map {
    position: relative; /* Referenz für absolut positionierte Elemente */
    width: 1152px; /* Breite der Karte */
    height: 648px; /* Höhe der Karte */
    background: url('map-background.png') no-repeat center;
    background-size: cover;
    margin-bottom: 70px; /* Space for impressum button */
}

/* --- Styles for Wave 2 Map --- */
/* If Wave 2 uses a different background or size, define it here */
#map-w2 {
    background: url('map-background-w2.png') no-repeat center; /* Example: Different background */
    /* width: 1152px; */ /* Keep same size unless needed */
    /* height: 648px; */
}


/* Level Icons */
.level {
    width: 30px;
    height: 30px;
    position: absolute;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
transform: translateZ(0);
}

/* --- Wave 1 Level Positions & Icons --- */
#level1 { top: 606px; left: 510px; background-image: url('level-icon1.png'); }
#level2 { top: 564px; left: 624px; background-image: url('level-icon2.png'); }
#level3 { top: 480px; left: 553px; background-image: url('level-icon3.png'); }
#level4 { top: 480px; left: 500px; background-image: url('level-icon4.png'); } 
#level5 { top: 342px; left: 690px; background-image: url('level-icon5.png'); }
#level6 { top: 210px; left: 801px; background-image: url('level-icon6.png'); }
#level7 { top: 480px; left: 399px; background-image: url('level-icon7.png'); }
#level8 { top: 288px; left: 444px; background-image: url('level-icon8.png'); }
#level9 { top: 396px; left: 362px; background-image: url('level-icon9.png'); }
#level10 { top: 138px; left: 492px; background-image: url('level-icon10.png'); }
#level11 { top: 300px; left: 365px; background-image: url('level-icon11.png'); }
/* #level12 { top: 300px; left: 500px; background-image: url('level-icon12.png'); } */ /* Add if Level 12 exists */
/* #level13 { top: 350px; left: 1400px; background-image: url('level-icon13.png'); } */ /* Adjust position if needed */
/* #level14 { top: 250px; left: 1500px; background-image: url('level-icon14.png'); } */ /* Adjust position if needed */
/* #level15 { top: 50px; left: 1450px; background-image: url('level-icon15.png'); } */ /* Adjust position if needed */

/* --- Wave 2 Level Positions & Icons --- */
/* Add styles for Wave 2 levels - replace with actual IDs, positions, and icons */
#level1-w2 { top: 100px; left: 100px; background-image: url('level-icon1-w2.png'); }
#level2-w2 { top: 150px; left: 200px; background-image: url('level-icon2-w2.png'); }
/* ... add all Wave 2 levels here ... */


/* Abgeschlossene Level */
.level.completed {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Popups Allgemein */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; /* Use flex for centering */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 1rem; /* Base font size */
    padding: 20px; /* Add padding for smaller screens */
    box-sizing: border-box;
}

.popup-content {
    background: #fff;
    padding: 2rem; /* Use rem for padding */
    border-radius: 5px;
    text-align: center;
    max-width: 90%; /* Max width for content */
    max-height: 90vh; /* Max height */
    overflow-y: auto; /* Allow scroll if content overflows */
    font-family: 'Press Start 2P', cursive; /* Ensure font consistency */
    color: #333; /* Ensure text color */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content h2 {
    font-size: 1.2rem; /* Adjust heading size */
    margin-bottom: 1rem;
    color: #333;
}

.popup-content p {
    font-size: 0.9rem; /* Adjust paragraph size */
    line-height: 1.5;
    margin-bottom: 1rem;
}

.popup-content button {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem; /* Adjust button font size */
    margin-top: 15px;
    background: #48cae4;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 5px; /* Spacing between buttons */
    margin-right: 5px;
}

.popup-content button:hover {
    background: #00b4d8; /* Slightly darker on hover */
}

/* Helper class to hide elements */
.hidden {
    display: none !important; /* Use !important to override inline styles if necessary */
}

/* Info Button (Top Right) */
.info-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007BFF;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive; /* Ensure font */
    font-size: 0.8rem; /* Adjust size */
    z-index: 500; /* Ensure it's above map but below popups */
}

/* Info Popup (Centered) */
#info-popup {
    /* Inherits .popup styles for positioning and background */
    /* Specific styles below */
}

#info-popup .popup-content { /* Target content within info-popup */
    border: 9px solid #007BFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px; /* Specific max width */
    padding: 20px;
}

#info-content { /* This ID seems redundant if using .popup-content structure */
   /* Styles moved to #info-popup .popup-content */
   font-size: 0.9rem; /* Adjusted font size */
}

#info-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1rem 0;
}
#info-content li {
    margin-bottom: 0.5rem;
}


/* Close Button for Info Popup */
#close-info-button { /* Should be inside #info-popup .popup-content */
    /* Inherits base button styles */
}

/* Generic Trigger Image Styles */
.trigger-image {
    position: absolute;
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
    z-index: 5; /* Above map background, below levels potentially */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.trigger-image:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* --- Wave 1 Trigger Image Positions & Sizes --- */
#triggerImage1 { top: 534px; left: 300px; width: 60px; } /* Toad */
#triggerImage2 { top: 473px; left: 720px; width: 30px; } /* Luigi */
#triggerImage3 { top: 450px; left: 930px; width: 60px; } /* Hund */
#triggerImage4 { top: 570px; left: 570px; width: 30px; } /* Grüntoad */
#triggerImage5 { top: 24px;  left: 945px; width: 34px; } /* Kaptaintoad (Corrected top) */
#triggerImage6 { top: 450px; left: 900px; width: 30px; } /* Neutoad1 */
#triggerImage7 { top: 250px; left: 350px; width: 30px; } /* Neutoad2 */
#triggerImage8 { top: 255px; left: 390px; width: 30px; } /* Neutoad3 */

/* --- Wave 2 Trigger Image Positions & Sizes --- */
/* Add styles for Wave 2 triggers - replace with actual IDs, positions, and sizes */
#triggerImage1-w2 { top: 50px;  left: 50px;  width: 40px; }
#triggerImage2-w2 { top: 200px; left: 800px; width: 50px; }
/* ... add all Wave 2 triggers here ... */


/* Message Popup (Generic) */
#messagePopup {
    /* Inherits .popup styles for positioning and background */
    /* Specific styles below */
    background: rgba(0, 0, 0, 0.85); /* Slightly darker for messages */
}

#messagePopup .popup-content {
    max-width: 600px;
    background-color: transparent; /* Make content background transparent */
    color: white; /* Text color for messages */
    padding: 20px;
    border-radius: 10px;
    box-shadow: none; /* Remove inner box shadow if desired */
}

#messageContent {
    text-align: center;
    font-size: 1.5rem; /* Larger font for messages */
    min-height: 50px; /* Ensure space for text */
    margin-bottom: 20px;
}

#nextMessageButton {
    /* Inherits base button styles from .popup-content button */
    background-color: #007BFF; /* Specific color for next button */
}
#nextMessageButton:hover {
    background-color: #0056b3;
}

/* Countdown Overlay (for TriggerImage3) */
#countdownOverlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000; /* Highest */
    justify-content: center;
    align-items: center;
}

#countdownText {
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 80px; /* Large countdown number */
    font-weight: bold;
    text-align: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Slight background for number */
}


/* Secret Code Input Area */
#secretCodeSection {
    /* Container for the secret code elements */
    position: absolute; /* Position relative to the map */
    bottom: 70px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
    z-index: 10;
    text-align: center;
}

#clickableImage {
    cursor: pointer;
    width: 100px; /* Adjust size */
    display: block; /* Make it block for centering */
    margin: 0 auto 10px auto; /* Center and add margin */
    transition: transform 0.2s ease;
}
#clickableImage:hover {
    transform: scale(1.05);
}


#codeInputContainer {
    display: none; /* Initially hidden */
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #48cae4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#codeInputContainer label {
    display: block; /* Label on its own line */
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #333;
}

#codeInputContainer input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    width: 150px; /* Adjust width */
    margin-right: 5px;
}

#codeInputContainer button {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#codeInputContainer button:hover {
    background-color: #0056b3;
}


/* Success/Error Popups for Code */
#successPopup, #errorPopup {
     /* Inherits .popup styles for positioning and background */
     /* Specific styles below */
    z-index: 1100; /* Above message popup */
}

#successPopup .popup-content,
#errorPopup .popup-content {
    max-width: 700px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 30px; /* More padding */
    font-size: 1.3rem; /* Larger text */
}
#successPopup p, #errorPopup p {
    font-size: 1.3rem; /* Ensure p tags inherit */
    margin-bottom: 20px;
}

#errorPopup .popup-content {
    background-color: rgba(200, 0, 0, 0.85); /* Red background for error */
}

#successPopup button, #errorPopup button {
    /* Inherits base button styles */
    padding: 12px 25px; /* Larger close buttons */
    font-size: 1rem;
}
#successPopup button { background-color: #007BFF; }
#errorPopup button { background-color: #FF0000; }
#successPopup button:hover { background-color: #0056b3; }
#errorPopup button:hover { background-color: #cc0000; }


/* Impressum Button */
#impressum-button { /* Renamed from impresssum */
    position: absolute; /* Position relative to map */
    bottom: 20px; /* Adjust position relative to map bottom */
    right: 20px; /* Adjust position */
    background-color: #6c757d; /* Greyish color */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 500; /* Above map, below popups */
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border: none;
}
#impressum-button:hover {
    background-color: #5a6268;
}

/* Impressum Popup */
#impressum-popup {
    /* Inherits .popup styles */
    /* Specific styles below */
}
#impressum-popup .popup-content {
    background-color: white;
    color: #333;
    padding: 30px;
    border: 2px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    text-align: left; /* Impressum text usually left-aligned */
}
#impressum-popup h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#close-impressum { /* Style the close button/link */
    display: block; /* Make it block */
    text-align: right; /* Align text to right */
    margin-bottom: 15px; /* Space below close link */
    cursor: pointer;
    color: #dc3545; /* Red color */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
    font-size: 0.9rem;
}
#close-impressum:hover {
    color: #c82333; /* Darker red on hover */
}

/* Welcome Popup */
#welcomePopup {
     /* Inherits .popup styles */
}
#welcomePopup .popup-content {
    background-color: white;
    padding: 40px; /* Adjust padding */
    border: 10px solid black;
    z-index: 1000;
    font-size: 1rem; /* Adjust font size */
    max-width: 700px;
}
#welcomePopup h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
#welcomePopup p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
#welcomePopup button#closePopup { /* Specific ID for close button */
     /* Inherits base button styles */
}

/* --- END OF FILE styles.css --- */