@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #222;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #0056b3; 
    }

.logo {
    height: 50px; 
    margin-right: 20px;
}

.nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center; 
}

nav {
    display: flex;
    gap: 15px; 
}

.logo {
    height: 80px; 
    margin-right: 20px;
}

header a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

header a:hover {
    color: #ffd700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: white;
    text-align: center;
}

.gallery-item {
    position: relative;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease-in-out;
}

.gallery-item:hover img {
    opacity: 0;
}

.gallery-item .description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-item:hover .description {
    opacity: 1;
}

.info-section {
    padding: 40px;
    background-color: white;
    text-align: center;
}

h1 {
    color: #0056b3;
    text-align: center;
}

.contact {
    background-color: #0056b3;
    color: white;
    padding: 30px;
    text-align: center;
}
.contact p a {
    text-decoration: none;
    color: white;
}

.contact p a:hover {
    color:#ffd700;
}

.comment-section {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    gap: 20px;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

#comments {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

.contact-form input, .contact-form textarea, .contact-form button  {
    width: 98%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button  {
    background-color: #ffd700;
    color: black;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.cookies-button {
    background-color: #ffd700;
    color: black;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#contrast-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #ffea00;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    color: #1a0033;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: background-color 0.3s ease;
}

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f1f1f1;
    text-align: center;
    border-top: 1px solid #ccc;
}

body.contrast {
    background-color: #1a0033 !important;
    color: #ffea00 !important;
}

body.contrast a {
    color: #ffea00 !important;
}

body.contrast header {
    background-color: #330066 !important;
}

body.contrast .contact,
body.contrast .contact-form,
body.contrast .delete-comment,
body.contrast .comment-box,
body.contrast #comments,
body.contrast .info-section,
body.contrast .gallery {
    background-color: #2b0057 !important;
    color: #00ffd5 !important;
}

body.contrast h1 {
    color: #00ffd5 !important;
}

body.contrast .gallery-item .description {
    background-color: rgba(0, 255, 213, 0.9) !important;
    color: #000 !important;
    font-weight: bold;
}

@media (max-width: 768px) {
  .logo {
    display: block;
    margin: 0 auto;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .nav-container {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 5px 0;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 5px 15px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .comment-section {
    flex-direction: column;
  }

  #contrast-toggle {
    top: 20px;
    right: 20px;
  }

  .gallery-item:hover .description {
    transition: background-color 2s ease;
}

}
