* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Space Mono", monospace;
}

body {
  background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #fdfdfd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.title {
  text-align: center;
  font-family: "Alice", serif;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111111;
}

html,
body {
  height: 100%;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  justify-content: space-between;
  row-gap: 4rem;
  width: 100%;
  max-width: 800px;
  padding: 1rem;
  box-sizing: border-box;
}

.section-header {
  grid-column: 1 / -1;
  text-align: center;
}

.subtitle {
  margin: 0.5rem 0 0 0;
  line-height: 20px;
  font-size: 1rem;
  color: #666666;
}

/* Individual card styling */
.card {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}



/* 120px Square image wrapper */
.image-wrapper {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.image-wrapper img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #333333;
  line-height: 20px;
  position: relative;
  display: inline-block;
}

.card-description {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  color: #666;
  font-size: 0.8rem;
  z-index: 10;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover .img-icon {
  filter: brightness(1.1);
}

.card:hover .card-description {
  visibility: visible;
  opacity: 1;
}

.image-wrapper img.fit-image {
  object-fit: contain;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block; /* Ensures the whole card area remains clickable */
}

@keyframes hover-wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-5deg);
  }
  40% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-3deg);
  }
  80% {
    transform: rotate(2deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Wobble the image when hovering anywhere over the parent .card */
  .card:hover .fit-image,
  .card:focus-within .fit-image {
    animation: hover-wobble 0.6s ease 1;
  }
}

.img-icon {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.construction {
  filter: grayscale(100%);
  pointer-events: none;
}

main {
  display: block;
}

#screen-warning {
  display: none;
}

@media screen and (max-width: 767px) {
  main {
    display: none !important;
  }

  #screen-warning {
    background-image: url("images/sydney.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
  }

  #glass-card {
  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 12px;
  box-shadow: 0 8px 32px 0 #C4CFD3;
  padding: 40px 32px;
  max-width: 450px;
  }

  h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
  }

  #glass-card p {
    font-family: "DM Sans", sans-serif;
    padding-top: 10px;
  }

  #bot-line {
    display: flex;
    align-items: center;
    gap: 10px;  
  }

  .bot-icon {
    width: 30px;
  }
}