@font-face {
  font-family: 'Burbank Small Medium';
  src: url('/includes/font/burbank_small_medium-webfont.woff2') format('woff2'),
       url('/includes/font/burbank_small_medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: url('/includes/img/background.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

html,
body {
  height: 100vh;
  width: 100vw;
  background-size: cover;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Burbank Small Medium', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: white;
}

.center {
  width: 90vw;
  max-width: 1600px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 10px auto;
  position: relative;
  background-color: #086ca5;
  border: 4px solid #086ca5;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.center-wide {
  max-width: 2000px;
  aspect-ratio: 6.4 / 4;
}

.center-wide2 {
  max-width: 2000px;
  aspect-ratio: 6.1 / 4;
}

#flashContent {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
}

header {
  position: relative;
  background-color: #1FA3F5;
  background-image: linear-gradient(#1FA3F5, #097DC4);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.4vh solid #086ca5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

header::before {
  content: "";
    width: 100%;
    height: 100%;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(/includes/img/tiles/TilePenguinEmote.png);
    background-size: 20vw;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

header img {
  height: 120px;
  transition: transform 0.3s ease;
  padding: 0;
  margin: -8px 0;
  position: relative;
  z-index: 1;
}

header img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 20px;
}

header .container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.nav-button {
  background-image: linear-gradient(#0094f2, #016bc5);
  background-color: #3898ec;
  color: #fff;
  padding: 12px 24px;
  border: 2px solid #0c60b2;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 22px;
  transition: background 0.3s, transform 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-button:hover {
  background-image: linear-gradient(#0077c2, #005ba8);
  transform: scale(1.05);
}

footer {
  position: relative;
  background-color: #1FA3F5;
  background-image: linear-gradient(#1FA3F5, #097DC4);
  padding: 15px 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-top: 0.4vh solid #086ca5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1;
  overflow: hidden;
}

footer::before {
  content: "";
    width: 100%;
    height: 100%;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(/includes/img/tiles/TilePenguinEmote.png);
    background-size: 20vw;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.card-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
}

.card {
  position: relative;
  width: 300px;
  height: 200px;
  aspect-ratio: 1 / 1;
  border-style: solid;
  border-color: #086ca5;
  border-width: 0.4vh;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cpaint {
  width: 350px;
  height: 500px;
}

.card:hover {
  transform: scale(1.05);
}

.card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.card-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  font-family: 'Burbank Small Medium', Arial, sans-serif;
}

.card-name-psa {
  font-size: 1.4rem;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  z-index: 2;
  font-family: 'Burbank Small Medium', Arial, sans-serif;
}

.fav-btn:hover {
  transform: scale(1.05);
  color: gold;
}

.fav-btn.active {
  color: gold;
}

.mob-btn {
  position: absolute;
  top: 8px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  z-index: 2;
  font-family: 'Burbank Small Medium', Arial, sans-serif;
}

.mob-btn:hover {
  transform: scale(1.05);
  color: black;
}

.psaflag {
  display: block;
  margin: 0 auto;
  height: 250px;
  user-select: none;
  transition: transform 0.3s ease;
}

.psaflag:hover {
  transform: scale(1.05);
}

.tooltip-container {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #086CA5;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'Burbank Small Medium', Arial, sans-serif;
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  bottom: 94%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-container .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #1d6fa5 transparent transparent transparent;
}


@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-button {
    font-size: 18px;
    padding: 10px 18px;
  }

  header img {
    height: 90px;
    margin: -6px 0;
  }

  .card-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .card {
    width: 45vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cpaint {
    width: 80vw;
    height: auto;
  }

  .card-name {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .nav-button {
    font-size: 16px;
    padding: 8px 14px;
  }

  header img {
    height: 70px;
    margin: -5px 0;
  }

  .card {
    width: 80vw;
    height: auto;
  }

  .cpaint {
    width: 90vw;
  }

  .card-name {
    font-size: 1.2rem;
  }

  .card-name-psa {
    font-size: 1rem;
  }

  .fav-btn {
    font-size: 2rem;
  }

  footer {
    font-size: 12px;
  }
}
