<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Basic Webpage</title>
  <link rel="stylesheet" href="styles.css" />
  <style>
    /* General Styles */
    body {
        background-color: #121212; /* Dark background */
        color: #ffffff; /* Light text color */
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }

    header {
        background: #1e1e1e; /* Darker header background */
        color: #ffffff;
        padding: 20px 0;
        text-align: center;
        border-bottom: 2px solid #4CAF50; /* Green accent */
    }

    h1, h2 {
        margin: 0;
        color: #4CAF50; /* Green accent for headings */
    }

    .container {
        width: 80%;
        margin: auto;
        overflow: hidden;
    }

    footer {
        background: #1e1e1e; /* Darker footer background */
        color: #ffffff;
        text-align: center;
        padding: 10px 0;
        border-top: 2px solid #4CAF50; /* Green accent */
    }

    /* Navigation Buttons */
    nav .button {
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
        color: #ffffff;
        background-color: #4CAF50;
        text-decoration: none;
        border-radius: 5px;
        margin: 0 10px;
        transition: background-color 0.3s ease;
    }

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

    /* About Me Section */
    #about-me {
        background: #1e1e1e; /* Dark background for the section */
        color: #ffffff;
        padding: 20px;
        margin: 20px auto;
        border-radius: 10px;
        max-width: 800px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .about-me-content p, .about-me-content ul {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .about-me-content ul {
        padding-left: 20px;
    }

    .about-me-content ul li {
        margin-bottom: 5px;
    }

    /* Gallery Section */
    #gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin: 20px auto;
        padding: 10px;
        max-width: 1200px;
        background: #1e1e1e;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.7);
    }

    .gallery-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
    }

    .gallery-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        color: #ffffff;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .gallery-item:hover .gallery-caption {
        opacity: 1;
    }

    nav {
        text-align: center;
        margin: 20px 0;
    }

    nav .button {
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
        color: #ffffff;
        background-color: #4CAF50;
        text-decoration: none;
        border-radius: 5px;
        margin: 0 10px;
        transition: background-color 0.3s ease;
    }

    nav .button:hover {
        background-color: #45a049;
    }
  </style>
</head>
<body>
  <header>
    <h1>Welcome to My Basic Webpage</h1>
  </header>

  <nav>
    <a href="./about.html" class="button">About Me</a>
    <a href="./gallery.html" class="button">Media Gallery</a>
    <a href="./login.html" class="button">Login</a>
  </nav>

  <div class="container">
    <section id="about-me">
      <h2>About Me</h2>
      <div class="about-me-content">
        <p>Hello! I'm a web enthusiast learning to build interactive and beautiful websites.</p>
        <p>This is a simple webpage to demonstrate basic HTML, CSS, and JavaScript integration.</p>
      </div>
    </section>

    <div style="text-align: center; margin-bottom: 20px;">
      <button id="show-gallery-button" class="button">View Media Gallery</button>
    </div>

    <div id="gallery-container" style="display: none;">
      <section id="gallery">
        <h2>Media Gallery</h2>
        <div class="gallery-grid">
          <div class="gallery-item">
            <img src="images/photo1.jpg" alt="Photo 1" class="gallery-image" />
            <div class="gallery-caption">Photo 1 caption</div>
          </div>
          <div class="gallery-item">
            <img src="images/photo2.jpg" alt="Photo 2" class="gallery-image" />
            <div class="gallery-caption">Photo 2 caption</div>
          </div>
          <div class="gallery-item">
            <img src="images/photo3.jpg" alt="Photo 3" class="gallery-image" />
            <div class="gallery-caption">Photo 3 caption</div>
          </div>
        </div>
      </section>
    </div>
  </div>

  <footer>
    <p>© 2025 Emma Blaak </p>
  </footer>

  <script>
    // JavaScript for gallery lightbox and other interactions could go here

    document.getElementById('show-gallery-button').addEventListener('click', function() {
        const galleryContainer = document.getElementById('gallery-container');
        galleryContainer.style.display = 'block';
        this.style.display = 'none'; // Hide the button after clicking
    });
  </script>
</body>
</html>