@font-face {
  font-family: "W95font";
  src:
    url(./fonts/w95font.woff2) format("woff2"),
    url(./fonts/w95font.woff) format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "W95font";
  src:
    url(./fonts/w95font-bold.woff2) format("woff2"),
    url(./fonts/w95font-bold.woff) format("woff");
  font-weight: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "W95font", Arial, sans-serif;
}

.error {
  position: absolute;
  right: 20px;
  bottom: 0px;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

body {
  color: white;
  background-color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.background {
  position: fixed;
  inset: 0;
  background: url("images/cherry.jpg") center/cover no-repeat;
  z-index: -1;
  filter: blur(10px) brightness(0.65);
  inset: -20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: #222;
  transition: opacity 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
}

header.hidden {
  opacity: 0;
}

.logo {
  height: 30px;
  margin-left: auto;
  margin-right: 20px;
}

#s1 {
  min-height: 150px;
  justify-content: flex-start;
}

.left {
  margin: 20px;
}

#s4 {
  min-height: 300px;
  flex: 1;
  align-items: flex-start;
}

#s3 {
  min-height: 500px;
}

#s2 {
  min-height: 20vh;
}

.telegram-card {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
  transition: 0.2s ease;
}

.telegram-card:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.25);
}

.telegram-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid rgba(255, 255, 255, 0.4);
}

.telegram-info {
  flex: 1;
}

.telegram-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.telegram-info p {
  opacity: 0.8;
  font-size: 18px;
  margin-bottom: 8px;
}

.telegram-info span {
  font-size: 14px;
  opacity: 0.9;
}

.telegram-icon {
  font-size: 32px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #229ed9;
  border-radius: 50%;
}

.telegram-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.solid {
  background: #584444;
}

.solid2 {
  background: #222;
}

.transparent {
  background: transparent;
}

.card {
  margin-top: 170px;
  margin-bottom: 30px;
  width: min(700px, 90%);
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.contact {
  margin: 50px;
  width: min(700px, 90%);
}

div a {
  display: block;
}

a h2 {
  color: white;
}

a {
  color: #ffebeb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.external::after,
p.external::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.15em;
  background: url("./images/link.svg") no-repeat center;
  background-size: contain;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 280px;
  margin-top: 30px;
}

.carousel-image {
  height: 280px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.project-carousel {
  position: relative;
  width: min(700px, 90%);
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-item {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.project-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#tidal-store {
  height: 160px;
}

.mapgen-demo {
  margin: 50px;
  width: min(700px, 90%);
  position: relative;
}

.status-badge {
  position: absolute;
  right: 0;
  top: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.online {
  color: #79c267;
}

.status-badge.offline {
  color: #ff7777;
}

.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media (max-width: 600px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  body {
    font-size: 14px;
  }

  header {
    padding: 10px;
    height: auto;
  }

  header .left {
    margin: 10px;
  }

  header h1 {
    font-size: 22px;
  }

  .logo {
    height: 25px;
    margin-right: 10px;
  }

  section {
    padding: 20px 0;
  }

  #s2 {
    min-height: 180px;
  }

  #s4 {
    min-height: 180px;
    height: auto;
    flex: none;
  }

  .card {
    margin-top: 100px;
    margin-bottom: 20px;
    width: 90%;
    padding: 15px;
  }

  .card h2 {
    font-size: 20px;
  }

  .error {
    width: 100px;
    right: 10px;
  }

  .project-carousel {
    width: 90%;
    min-height: 450px;
  }

  .project-item h2 {
    font-size: 20px;
  }

  .project-item p {
    font-size: 14px;
  }

  .image-row {
    flex-direction: column;
  }

  .carousel-image {
    max-width: 90%;
    height: auto;
    max-height: 300px;
  }

  #tidal-store {
    height: auto;
    max-width: 60%;
  }

  .mapgen-demo {
    width: 90%;
    margin: 20px;
  }

  .status-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
  }

  .contact {
    margin: 20px;
    margin-top: 5px;
    width: 90%;
  }

  .telegram-card {
    margin-top: 10px;
    padding: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .telegram-avatar {
    width: 60px;
    height: 60px;
  }

  .telegram-info h3 {
    font-size: 18px;
  }

  .telegram-info p {
    font-size: 14px;
  }

  .telegram-icon {
    width: 35px;
    height: 35px;
  }
}
