@import url("https://fonts.googleapis.com/css2?family=Mooli&display=swap");

:root {
  --primary-color: #52489c;
  --secondary-color: #59c3c3;
  --accent-color: #f45b69;
  --text-dark: #333;
  --text-light: #ebebeb;
  --primary-font: Arial, Helvetica, sans-serif;
  --secondary-font: Mooli, sans-serif;
}

body {
  font-family: var(--primary-font);
  font-size: 1.2em;
  margin: 0;
  color: var(--text-dark);
  background: #eaeaea;
}

header, footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 1rem;
  text-align: center;
}

h1 {
  font-family: var(--secondary-font);
  font-size: 3.5em;
  margin: 0.5rem 0;
}

h2 {
  text-align: center;
  margin: 1.5rem 0 1rem;
  font-weight: bold;
}

nav {
  flex-direction: column;
  margin-top: 0.75rem;
}

nav a {
  display: block;
  margin: 0 1.5rem;
  padding: 0.5rem;
  color: var(--text-light);
  text-decoration: underline; 
}

.menu-button {
  background: none;
  border: none;
  font-size: 1.2em;
  color: var(--text-light);
  cursor: pointer;
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem;
  justify-items: center;
}

.gallery img {
  width: 250px;
  height: 250px;
  padding: 5px;
  object-fit: cover;
  box-shadow: 3px 3px 6px rgba(0,0,0,1);
}

footer {
  text-align: left;
  font-size: 0.8em;
  padding-left: 20%; 
  margin-top: 2rem;
}

@media screen and (min-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
}

@media screen and (min-width: 1000px) {
  nav {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 4rem; 
    margin-top: 1.2rem;
  }

  nav a {
    padding: 0;
    font-size: 1.1em;
  }

  .menu-button {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hide {
	display: none;
}

dialog {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  z-index: 10; 
}

dialog img {
  display: block;
  width: 90%;
  max-height: 100%;
  margin: 20vh auto;
}

.close-viewer {
  position: absolute;
  top: 20vh;
  right: 5%;  
  background: #fff;
  font-size: 1.5rem;
}
