/* ====== Reset och grundstilar ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
  ====== Body ======
  Background color for a classic telegram style.
*/
body {
  /* Use Gotham Ultra if available, otherwise fallback to Poppins or sans-serif */
  font-family: 'Gotham Ultra', 'Poppins', sans-serif;
  background: #f3efe0;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== Header ====== */
header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  color: #333;
  position: relative;
}

/*
  "GötKom.se" as one string
  - G and K are slightly larger
  - .se is smaller & black
  - Color is green-ish
*/
header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: normal; /* No extra spacing */
  color: #77a181;           /* Green-ish */
  line-height: 1;
  font-family: 'Gotham Ultra', 'Poppins', sans-serif;
  
  /* Transition properties for smooth animation */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  
  /* Make sure the h1 takes the full width for easier clicking */
  display: inline-block;
}
.big-letter {
  font-size: 1.8em;          /* Slightly larger letters */
  display: inline-block;
  vertical-align: baseline;  /* Keep on the same baseline */
}
.se {
  font-size: 0.4em;
  color: #000;
}

/* Hover effect for header h1 */
header a:hover h1 {
  transform: translateY(-5px); /* Move up slightly */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Add text shadow */
}

/* Make the header link block-level to cover the h1 area */
header a {
  text-decoration: none; /* Remove underline */
  color: inherit;        /* Inherit text color */
  cursor: pointer;       /* Indicate interactivity */
  display: inline-block; /* Allow padding and hover effects */
}

/* Subtext with simple fade animation */
header p {
  margin-top: 12px;
  font-size: 1.2rem;
  animation: fadeIn 3s infinite alternate ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0.6; }
  to   { opacity: 1;   }
}

/* Dashed line under header */
header::after {
  content: "";
  display: block;
  width: 80%;
  margin: 20px auto 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

/* ====== Main and box layouts ====== */
main {
  display: flex;
  justify-content: space-around; /* Pillar-style boxes side by side */
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  gap: 100px;
}
.box {
  width: 250px;        /* Narrow width for pillar shape */
  height: 350px;       /* Tall to look like pillars */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

  /* Flexbox to keep icon at the top center */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  
  /* Make the entire box clickable */
  cursor: pointer;
  text-decoration: none; /* Remove underline if using <a> */
  color: inherit;        /* Inherit text color */
}
.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;

  /* Transition property for the icon */
  transition: transform 0.3s ease;
}

/* Animation effect on the icon when box is hovered */
.box:hover .icon {
  transform: scale(1.1) rotate(5deg);
}
/* ====== Footer ====== */
footer {
  text-align: left;
  padding: 4px 10px;  /* Very small strip */
  margin-top: auto;
  font-size: 0.7rem;  /* Slightly smaller text */
  color: #555;
  background-color: #f8f8f8;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: "Courier New", Courier, monospace; /* Courier */
  font-weight: bold;  /* Bold font */
}
footer p {
  margin: 0;
}

/* =========================== */
/*       Responsiveness       */
/* =========================== */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
  }
  .box {
    width: 80%;
    height: 300px; /* Slightly shorter pillars on smaller screens */
  }
  header::after {
    width: 90%;
  }
}
@media (max-width: 480px) {
  header h1 {
    /* Make sure the title isn’t too large */
    font-size: 2rem;
  }
  .box {
    width: 90%;  /* Even wider relative to screen for better readability */
    height: 280px;
  }
  header p {
    font-size: 1rem;  /* Slightly smaller text if needed */
  }
}

/* ====== Link Styles ====== */
/* Remove default link styles for boxes and header */
a {
  text-decoration: none;
  color: inherit;
}
