/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Basic Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #0c2d3c;
    color: #f2f2f2;
    line-height: 1.6;
    font-size: 16px;
}

/* Header */
header {
    background-color: #01636e; /* Hauptfarbe für den Header */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header .logo h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 900;
}

header .logo p {
    font-size: 1.3em;
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease-in-out;
}

nav a:hover {
    color: #ffd700;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: url('shark-hero.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 200px 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero button {
    background-color: #ffd700;
    border: none;
    color: #01636e; /* Buttonfarbe angepasst */
    padding: 15px 40px;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.hero button a {
    color: #01636e;
    text-decoration: none;
}

.hero button:hover {
    background-color: #ffbf00;
    transform: scale(1.1);
}

/* Gallery */
.gallery {
    padding: 40px 20px;
    text-align: center;
}

.gallery h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
}

.image-gallery {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap;
}

.image-card {
    background-color: #01636e;
    border-radius: 10px;
    overflow: hidden;
    width: 30%;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 2px solid #01636e; /* Passende Borderfarbe */
}

.image-card p {
    font-size: 1.2em;
    padding: 15px;
    background-color: #01636e;
    color: #fff;
    font-weight: 600;
}
/* Login Container */
.login-container {
    max-width: 500px;
    margin: 25px auto;
    padding: 30px;
    background-color: #1c3d52;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.login-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 1.2em;
    color: #fff;
}

input {
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #01636e;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

input:focus {
    border-color: #ffd700;
    outline: none;
}

button.login-btn {
    background-color: #ffd700;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    color: #01636e;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
}

button.login-btn:hover {
    background-color: #ffbf00;
    transform: scale(1.05);
}

/* Links Below the Form */
.form-links {
    text-align: center;
    font-size: 1em;
    color: #fff;
}

.form-links a {
    color: #ffd700;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}
/* Signup Container */
.signup-container {
    max-width: 500px;
    margin: 25px auto;
    padding: 30px;
    background-color: #1c3d52;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.signup-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 1.2em;
    color: #fff;
}

input {
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #01636e;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

input:focus {
    border-color: #ffd700;
    outline: none;
}

button.signup-btn {
    background-color: #ffd700;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    color: #01636e;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
}

button.signup-btn:hover {
    background-color: #ffbf00;
    transform: scale(1.05);
}

/* Links Below the Form */
.form-links {
    text-align: center;
    font-size: 1em;
    color: #fff;
}

.form-links a {
    color: #ffd700;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}
/* Joke Container */
.joke-container {
    max-width: 600px;
    margin: 25px auto;
    padding: 30px;
    background-color: #1c3d52;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.joke-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

.joke-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ffd700;
    font-style: italic;
    text-align: center;
}

button.joke-btn {
    background-color: #ffd700;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #01636e;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
}

button.joke-btn:hover {
    background-color: #ffbf00;
    transform: scale(1.05);
}
#chat-container {
      position: fixed;
      bottom: 70px;
      right: 20px;
      width: 300px;
      height: 400px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      display: none; /* Initially hidden */
      flex-direction: column;
      overflow: hidden;
    }

    #chat-header {
      background-color: #008CBA;
      color: white;
      padding: 10px;
      text-align: center;
      font-size: 18px;
      cursor: pointer;
    }

    #chat-body {
      padding: 10px;
      flex-grow: 1;
      overflow-y: auto;
      font-size: 14px;
    }

    #chat-footer {
      display: flex;
      padding: 10px;
      background-color: #f1f1f1;
    }

    #chat-footer input {
      flex-grow: 1;
      padding: 5px;
      font-size: 14px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }

    #chat-footer button {
      background-color: #008CBA;
      color: white;
      border: none;
      padding: 8px;
      cursor: pointer;
      border-radius: 4px;
    }

    #chat-footer button:hover {
      background-color: #007B9B;
    }
    
    .chat-message {
      margin: 10px 0;
    }

    .chat-message.bot {
      color: #007B9B;
      font-weight: bold;
    }

    .chat-message.user {
      text-align: right;
      color: #333;
    }

    #open-chat-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #008CBA;
      color: white;
      padding: 10px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    /* Pop-up-Container */
    #popup {
      display: none; /* Initially hidden */
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 300px;
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      text-align: center;
      padding: 20px;
      z-index: 1000;
      animation: popUp 0.5s ease-in-out;
    }

    /* Haifisch-Bild im Pop-up */
    #popup img {
      width: 80%;
      border-radius: 8px;
      margin-bottom: 10px;
    }

    /* Pop-up-Text */
    #popup h2 {
      color: #008CBA;
      font-size: 22px;
      margin-bottom: 10px;
    }

    #popup p {
      font-size: 14px;
      color: #333;
      margin-bottom: 15px;
    }

    /* Button zum Schließen */
    #close-btn {
      background-color: #008CBA;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
    }

    #close-btn:hover {
      background-color: #007B9B;
    }

    /* Hintergrunddimmer für Pop-up */
    #overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    /* Pop-up Animation */
    @keyframes popUp {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
      100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

/* Footer */
footer {
    background-color: #01636e; /* Footer-Farbe angepasst */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile View - Media Queries */
@media (max-width: 768px) {
    /* Logo und Navigation anpassen */
    header .logo h1 {
        font-size: 2.5em;
    }

    header .logo p {
        font-size: 1.1em;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav a {
        margin-bottom: 10px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.3em;
    }

    .hero button {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    /* Gallery Section */
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-card {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Very Small Screen (Mobile Phones) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .hero button {
        font-size: 1em;
        padding: 10px 25px;
    }

    .gallery h3 {
        font-size: 2em;
    }

    .image-card {
        width: 100%;
    }

    footer {
        font-size: 0.8em;
    }
    /* Login Form */
    .login-container {
        padding: 20px;
        width: 90%;
    }

    .login-container h2 {
        font-size: 2em;
    }

    .login-form {
        gap: 15px;
    }

    input, button.login-btn {
        font-size: 1em;
    }

    .form-links a {
        font-size: 1.1em;
    }
    /* Joke Container */
    .joke-container {
        padding: 20px;
        width: 90%;
    }

    .joke-container h2 {
        font-size: 2em;
    }

    .joke-text {
        font-size: 1.2em;
    }

    button.joke-btn {
        font-size: 1em;
    }
    /* Signup Form */
    .signup-container {
        padding: 20px;
        width: 90%;
    }

    .signup-container h2 {
        font-size: 2em;
    }

    .signup-form {
        gap: 15px;
    }

    input, button.signup-btn {
        font-size: 1em;
    }

    .form-links a {
        font-size: 1.1em;
    }
}
