/* ***** */
/* MISC */
/* **** */
@font-face {
  font-family: 'Baloo-Regular';
  src: url('../fonts/Baloo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Baloo-Regular", sans-serif;
  color: #333;
  text-align: center;
  margin: 0;
  background-color: rgba(93, 106, 110, 1);
}

input, button { padding: 5px; margin-right: 10px; }

#error {
    color: red;
    font-weight: bold;
}

/* ************ */
/* HEADER IMAGE */
/* ************ */
.header-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: 69px;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ***** */
/* TITLE */
/* ***** */
h1 {
  font-size: 3rem;
  font-weight: 100;
  color: #dbdbdb;
  text-shadow: 
    4px 4px 0 rgba(0,0,0,0.2);
}

/* ******* */
/* BUTTONS */
/* ******* */
#button-container {
    display: flex;
    gap: 10px;
    margin: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    /* margin-bottom: 30px; */
}

.landing-actions {
  margin: 24px auto 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-button {
  display: inline-block;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(to bottom, #946b43, #6b4b2a);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ***** */
/* TABLE */
/* ***** */
#leaderboard {
  margin: 40px auto;
  border-collapse: collapse;
  width: 60%;
  background: #fffdf7;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 3px solid #c9c3b5;
  transform: rotate(-1deg);
}

#leaderboard thead {
  background: linear-gradient(to right, #d6d1c4, #f0eadb);
}

#leaderboard th {
  padding: 12px;
  font-size: 1.2rem;
  border-bottom: 2px solid #aaa;
  text-transform: uppercase;
}

#leaderboard td {
  padding: 10px;
  border-bottom: 1px dashed #bbb;
}

#leaderboard tr:nth-child(even) {
  background-color: #f7f3e8;
}

#leaderboard tr:hover {
  background-color: #fff475;
  transform: scale(1.01);
  transition: 0.2s;
}

#loadMore {
  font-weight: bold;
  background: linear-gradient(to bottom, #946b43, #6b4b2a);
  color: #fff;

  border: none;
  border-radius: 8px;

  cursor: pointer;
  transform: rotate(1deg);
}

#loadMore:hover {
  transform: rotate(0deg) scale(1.05);
  background: linear-gradient(to bottom, #c89f6a, #9d7b50);
}

/* ******************* */
/* LOGO BULLETIN BOARD */
/* ******************* */
.logo-bar {
  position: relative;

  margin: 60px auto;
  padding: 30px;

  width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  /* Cork board look */
  background: #c89f6a;
  background-image: 
    radial-gradient(#b88952 1px, transparent 1px),
    radial-gradient(#b88952 1px, transparent 1px);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;

  border: 10px solid #6b4b2a;
  border-radius: 8px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.logo-bar a {
  position: relative;

  background: #fffdf7;
  padding: 10px;
  border-radius: 6px;

  box-shadow: 0 4px 8px rgba(0,0,0,0.25);

  transition: all 0.25s ease;
}

.logo-bar a:nth-child(1) { transform: rotate(-3deg); }
.logo-bar a:nth-child(2) { transform: rotate(2deg); }
.logo-bar a:nth-child(3) { transform: rotate(-1deg); }
.logo-bar a:nth-child(4) { transform: rotate(1deg); }

.logo-bar a:hover {
  transform: rotate(2deg) scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  background: #fff8e6; /* slight warm tone */
}

/* Thumb tack */
.logo-bar a::before {
  content: "";
  position: absolute;

  top: -8px;
  left: 50%;
  transform: translateX(-50%);

  width: 12px;
  height: 12px;

  background: radial-gradient(circle at 30% 30%, #ff4d4d, #990000);
  border-radius: 50%;

  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
  z-index: 2;
}

/* Pin disappears when lifted */
.logo-bar a:hover::before {
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
}

.logo-bar img {
  height: 50px;
  width: auto;
  display: block;

  filter: grayscale(20%); /* subtle dullness */
  transition: all 0.2s ease;
}


/* ************* */
/* MEET THE TEAM */
/* ************* */
.newspaper {
  width: 60%;
  margin: 40px auto;
  padding: 25px;
  margin-bottom: 100px;

  background: #e8e4d8;
  background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");

  border: 6px solid black;
}

.main-headline {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;

  background: black;
  color: white;

  padding: 10px;
  margin-bottom: 10px;
}

.subline {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.article {
  background: #f4f1e6;
  border: 4px solid black;
  padding: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.article:hover {
  transform: translateY(-5px) scale(1.03);
  z-index: 5;
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}
.article-img {
  width: 100%;
  height: 300px;
  object-fit: cover;

  border: 3px solid black;
  margin-bottom: 10px;
}
.article h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 5px 0;
}
.role {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.body {
  font-size: 0.95rem;
  line-height: 1.4;
}
.article-socials {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.article-socials img {
  width: 18px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.2s;
}
.article-socials img:hover {
  opacity: 1;
  transform: scale(1.2);
}
.article-socials a {
  font-size: 0.8rem;
  color: black;
  text-decoration: underline;
  margin-right: 10px;
}

.torn {
  position: relative;
}

/* bottom tear */
.torn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 20px;

  background: inherit;

  clip-path: polygon(
    0% 40%, 5% 60%, 10% 30%, 15% 70%, 20% 40%,
    25% 65%, 30% 35%, 35% 75%, 40% 45%, 45% 70%,
    50% 40%, 55% 65%, 60% 35%, 65% 75%, 70% 45%,
    75% 60%, 80% 30%, 85% 70%, 90% 40%, 95% 60%, 100% 40%
  );
}



/* ************ */
/* POST-IT NOTE */
/* ************ */
.post-it {
  position: relative;

  margin: 60px auto;
  margin-bottom: 100px;
  padding: 20px;

  width: 55%; 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;

  font-size: 1.5rem;

  background: #fff475; 
  background-image: 
    repeating-linear-gradient(
        to bottom,
        #fff475,
        #fff475 24px,
        #f7ea61 25px
    );

  border: 1px solid #e6d94c;

  box-shadow:
    0 8px 15px rgba(0,0,0,0.25),  
    0 2px 3px rgba(0,0,0,0.2) inset; 

  transform: rotate(1deg);

}

.post-it::before {
  content: "";
  position: absolute;

  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);

  width: 80px;
  height: 20px;

  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.1);

  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ****** */
/* NAVBAR */
/* ****** */
/* Navbar container */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: #aeb3c8;

  /* stickyyyyyyyyyyyyyy */
  position: sticky; 
  top: 0; 
  z-index: 1000;
}

/* Left (logo) */
.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
}

/* Center (nav links) */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-center a {
  text-decoration: none;
  color: #111;
  font-size: 18px;
}

.nav-center a.is-active {
  color: #6b3f23;
  border-bottom: 2px solid #6b3f23;
  padding-bottom: 4px;
}

.nav-center a:hover {
  color: #6b3f23;
  border-bottom: 2px solid #6b3f23;
  padding-bottom: 4px;
  transition: 0.2s;
}

.dot {
  position: relative;
  width: 14px;
  height: 8px;
  background: #6b3f23;
  border-radius: 50% 50% 45% 45%;
  display: inline-block;
}

/* middle bump */
.dot::before {
  content: "";
  position: absolute;
  bottom: 4.5px;
  left: 2.5px;
  width: 9px;
  height: 7px;
  background: #6b3f23;
  border-radius: 50% 50% 45% 45%;
}

/* top swirl */
.dot::after {
  content: "";
  position: absolute;
  bottom: 9.5px;
  left: 5.5px;
  width: 3px;
  height: 4px;
  background: #6b3f23;
  border-radius: 50%;
}

/* Right (social icons) */
.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  filter: grayscale(10%);
}

.nav-right img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: 0.2s;
}

.nav-right .steam-link img,
.nav-right .steam-logo {
  width: 36px;
  height: 36px;
}

.nav-right .steam-logo {
  transform-origin: center;
}

.nav-right .steam-logo-shine {
  animation: steamShine 1.2s ease-out;
}

@keyframes steamShine {
  0% {
    opacity: 0.75;
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(160, 220, 255, 0));
  }
  35% {
    opacity: 1;
    transform: translateY(-2px) scale(1.5);
    filter: brightness(1.35) drop-shadow(0 0 12px rgba(160, 220, 255, 0.95));
  }
  100% {
    opacity: 0.7;
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(160, 220, 255, 0));
  }
}

.nav-right img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ************** */
/* MOBILE SUPPORT */
/* ************** */
@media (max-width: 768px) {

  /* General */
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  /* NAVBAR */
  .navbar {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    padding: 15px 20px;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    justify-content: center;
  }

  .nav-center {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-center a {
    font-size: 16px;
  }

  .nav-right .steam-link img,
  .nav-right .steam-logo {
    width: 26px;
    height: 26px;
  }

  .logo {
    height: 50px;
  }

  /* HEADER IMAGE */
  .header-image {
    height: 250px;
    margin-bottom: 30px;
  }

  /* BUTTONS */
  #button-container {
    flex-direction: column;
    align-items: center;
  }

  .landing-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* LEADERBOARD */
  #leaderboard {
    width: 95%;
    font-size: 0.9rem;
  }

  #leaderboard th,
  #leaderboard td {
    padding: 8px;
  }

  /* LOGO BOARD */
  .logo-bar {
    width: 90%;
    padding: 20px;
  }

  .logo-bar img {
    height: 40px;
  }

  /* POST-IT */
  .post-it {
    width: 90%;
    font-size: 1.2rem;
    padding: 15px;
  }
}

/* EXTRA SMALL PHONES LIKE YO GRANDPA'S IPHONE 4*/
@media (max-width: 480px) {

  h1 {
    font-size: 1.6rem;
  }

  .nav-center a {
    font-size: 14px;
  }

  .nav-right .steam-link img,
  .nav-right .steam-logo {
    width: 24px;
    height: 24px;
  }

  .logo {
    height: 40px;
  }

  .article h2 {
    font-size: 1.2rem;
  }

  .post-it {
    font-size: 1rem;
  }
}
