/* ========================================
   BASE STYLES
   ======================================== */

html {
  height: auto !important;
  padding-bottom: 100px !important;
}

body {
  margin: auto;
  max-width: 960px;
  padding: 0 5%;
  background-color: rgb(41, 41, 41);
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 110%;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul {
  text-align: center;
}

h3 {
  margin-top: 2em;
  margin-bottom: 0;
}

a {
  display: block;
  color: lightskyblue;
  text-align: center;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.hover-text {
  color: lightskyblue;
  cursor: default;
}

/* ========================================
   LAYOUT
   ======================================== */

.row {
  display: flex;
}

.column-2 {
  flex: 50%;
}

.column-3 {
  flex: 33%;
}

/* ========================================
   IMAGES
   ======================================== */

.img-page {
  max-width: 320px;
}

#image-preview {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  background: white;
  transition: transform 0.3s ease;
}

/* ========================================
   MODAL
   ======================================== */

#image-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#image-modal.show {
  display: flex;
  opacity: 1;
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

.hamburger-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.hamburger-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #666666;
  color: white;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 1px 1px 1px black;
}

.menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  padding: 0.5rem 0;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  animation: fadeInUp 0.3s ease;
}

.menu.show {
  display: flex;
}

.menu a {
  padding: 0.75rem 1rem;
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

@media (pointer: none), (pointer: coarse) {
  .img-page {
    max-width: 25vw;
  }

  .hamburger-button {
    width: 15vw;
    height: 15vw;
  }
}
