body {
    font-family: Arial, sans-serif;
}

header {
    position: relative;
    text-align: center;
    padding: 10px;
    background-color: #f4f4f4;
}

.header-icons {
    position: absolute;
    top: 10px;
    right: 20px; /* Abstand vom rechten Rand */
    display: flex;
    gap: 15px; /* Abstand zwischen den Icons */
}

.header-icon {
    font-size: 24px; /* Größe der Icons */
    color: #333; /* Icon-Farbe */
    text-decoration: none; /* Entfernt den Unterstrich */
    transition: color 0.3s ease;
}

.header-icon:hover {
    color: #0073e6; /* Farbe beim Hover */
}

#calendar-popup {
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#flatpickr-calendar {
    font-size: 16px;
    padding: 5px;
    width: 100%;
}

/* Stil für das Blitz-Popup-Fenster */
#lightning-popup {
    position: absolute;
    top: 50px; /* Du kannst die Position anpassen */
    right: 20px; /* Abstand vom rechten Rand */
    width: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#lightning-popup p {
    font-size: 14px;
    color: #333;
}

#copy-message {
    top: 40px; /* Abhängig von der Position des Icons */
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

#like-system {
    text-align: center;
    margin-top: 20px;
}

#like-button {
    display: inline-flex;
    align-items: center;
    background-color: #ff4d4d; /* Helles Rot für den Button */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sanfter Schatten */
    transition: all 0.3s ease;
    outline: none; /* Entfernt den Standard-Button-Rahmen */
}

#like-button:hover {
    background-color: #ff0000; /* Helleres Rot beim Hover */
    transform: scale(1.05); /* Vergrößert den Button leicht */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* Stärkerer Schatten beim Hover */
}

#like-icon {
    margin-right: 10px; /* Abstand zwischen dem Icon und dem Text */
    font-size: 22px; /* Etwas größere Größe für das Herz-Icon */
}

#like-count {
    font-size: 18px;
    font-weight: normal;
}

section {
    margin: 20px;
}

.projects {
    display: flex;
    flex-direction: row; /* Stellt die Projekte nebeneinander */
    align-items: flex-start; /* Richtet die Projekte links aus */
    gap: 20px; /* Abstand zwischen den Projekten */
    margin-top: 20px; /* Abstand zum vorherigen Element */
}

.project {
    display: inline-block;
    width: 200px;
    height: 200px;
    background-color: #f4f4f4; /* Standard Hintergrundfarbe */
    color: #333;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-wrap: break-word; /* Ermöglicht den Umbruch bei zu langem Text */
    white-space: normal; /* Textumbruch aktivieren */
    line-height: 1.6;
    display: flex;
    justify-content: center; /* Zentriert den Text horizontal */
    align-items: center; /* Zentriert den Text vertikal */
}

.project:hover {
    background-color: #69C9D0;
    color: white;
    transform: scale(1.05);
}

h1, h2 {
    color: #333;
}

#bio, #work {
    background-color: #e9e9e9;
    padding: 15px;
    padding-left: 20px;
}

footer {
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px;
}

#socialmedia {
    background-color: #e9e9e9;
    padding: 15px;
    text-align: left;
    padding-left: 20px;
}

.social-icons {
    display: flex;
    flex-direction: row; /* Stellt sicher, dass die Icons nebeneinander sind */
    align-items: center; /* Zentriert die Icons */
    margin-top: 10px;
    margin-bottom: 10px;
}

.social-icon {
    font-size: 30px; /* Größe der Icons */
    margin: 10px 30; /* Abstand zwischen den Icons */
    color: #333; /* Icon-Farbe */
    text-decoration: none; /* Entfernt den Unterstrich */
}

.social-icon:hover {
    color: #0073e6; /* Ändert die Farbe bei Hover */
}

#comments-section {
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 8px;
    padding-left: 20px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

#comment-list {
    margin-top: 20px;
}

.comment {
    padding: 10px;
    background-color: #f1f1f1;
    margin-bottom: 10px;
    border-radius: 4px;
}

body.dark-mode {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode p,
body.dark-mode li,
body.dark-mode a,
body.dark-mode .project,
body.dark-mode .social-icon,
body.dark-mode .comment {
    color: #f5f5f5;
}

/* Hintergrundbereiche */
body.dark-mode header,
body.dark-mode footer,
body.dark-mode #bio,
body.dark-mode #work,
body.dark-mode #socialmedia,
body.dark-mode #comments-section,
body.dark-mode #calendar-popup,
body.dark-mode #lightning-popup {
    background-color: #2c2c2c;
    color: #f5f5f5;
}

/* Projektboxen */
body.dark-mode .project {
    background-color: #3a3a3a;
    border-color: #666;
}

/* Hover-Effekt Projekt */
body.dark-mode .project:hover {
    background-color: #555;
    color: #ffffff;
}

/* Social Icons Hover */
body.dark-mode .social-icon:hover {
    color: #ffcc00;
}

/* Kommentar-Feld & Buttons */
body.dark-mode textarea,
body.dark-mode button {
    background-color: #444;
    color: #f5f5f5;
    border: 1px solid #777;
}

body.dark-mode button:hover {
    background-color: #666;
}

#secret-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 24px;
    padding: 30px;
    border-radius: 12px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

#close-icon {
    cursor: pointer;
    font-size: 24px;
    
    transition: color 0.3s ease;
}

#close-icon:hover {
    color: #e74c3c; /* Rote Farbe beim Hover */
}

#elevator-icon {

    right: 20px;
    top: 10px;
    z-index: 999;
    transition: top linear;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

#snake-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #111;
    padding: 20px;
    border: 4px solid lime;
    border-radius: 10px;
    z-index: 9999;
    display: none;
}

#snake-canvas {
    background-color: black;
    display: block;
    margin: 0 auto;
}

/* Emoji-Fall-Animation */
@keyframes emoji-fall {
    0% {
      opacity: 1;
      transform: translateY(0) rotate(0deg);
    }
    100% {
      opacity: 0;
      transform: translateY(100vh) rotate(360deg);
    }
  }
  
  .emoji {
    position: fixed;
    top: -2em;
    font-size: 2rem;
    pointer-events: none;
    animation: emoji-fall 3s ease-out forwards;
  }

  /* Stil für das Lichtbirnen-Popup */
#lightbulb-popup {
    position: absolute;
    top: 50px;  /* Passt die Position an */
    right: 20px; /* Abstand vom rechten Rand */
    width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#lightbulb-popup textarea {
    width: 100%;
    min-height: 1.5em; /* sichtbar genug für 1 Zeile */
    padding: 10px;
    border: 1px solid #ccc;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    line-height: 1.5;
  }

  #meme-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .meme-video-inner {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    background: #000;
    padding: 10px;
    border-radius: 10px;
  }
  
  #meme-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  #close-meme-video {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  







/* Namensabfrage beim ersten Besuch */
#name-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.name-gate-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.name-gate-box p {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.name-gate-box input {
    display: block;
    margin: 0 auto 15px auto;
    padding: 10px;
    width: 220px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.name-gate-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #ff4d4d;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.name-gate-box button:hover {
    background: #ff1a1a;
}

/* Restliche Seite blurren, solange die Namensabfrage offen ist */
body.gated > *:not(#name-gate) {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* Like-Button im "bereits geliked"-Zustand */
#like-button:disabled {
    cursor: default;
    opacity: 0.9;
}
