@import url('https://fonts.googleapis.com/css?family=Manrope:700|Manrope:400');

:root {
  --text: hsl(0, 0%, 99%);
  --textDim: hsl(0, 0%, 60%);
  --background: rgb(18, 18, 18);
  --primary: #0483fa;
  --primaryBg: hsla(202, 100%, 65%, 0.01);
  --primaryHi: hsla(199, 100%, 75%, 0.25);
  --primaryFg: hsla(209, 100%, 85%, 0.801);
  --secondary: hsl(203, 52%, 14%);
  --secondaryFg: hsl(198, 51%, 75%);
  --secondaryBg: hsla(196, 67%, 32%, 0.05);
  --secondaryHi: hsla(202, 52%, 30%, 0.5);
  --accent: hsl(209, 94%, 86%);
  --accentBg: hsla(203, 100%, 94%, 0.01);
  --accentHi: hsla(207, 81%, 70%, 0.25);
}

a, button {
  cursor: pointer;
}

.drop {
  position: fixed;
  z-index: -1;
  top: -2vh;
  transform: translateY(0);
  animation: fall 3s linear forwards;
  width: 4rem;
  height: 4rem;
  opacity: 0.5;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none; 
  -ms-user-select: none; 
  user-select: none; 
}

@keyframes fall {
  to {
    transform: translateY(105vh);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope';
  font-weight: 400;
  background-image: url("bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  color: var(--textDim);
  width: 100%;
  box-sizing: border-box;
  z-index: 9999;
  padding: 1rem 10%;
  position: fixed;
  top: 0;
  left: 0;
  --background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
}

.menu:hover {
  color: var(--text);
  cursor: pointer;
}

.sitename {
  font-weight: bold;
}

.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.grid {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.grid-svg {
  height: 80%;
  width: 80%;
  position: relative;
  z-index: 1;
}

.blur {
  height: 12rem;
  width: 12rem;
  background-color: var(--primary);
  filter: blur(100px);
  border-radius: 100px;
  z-index: 0;
  position: absolute;
}

.title {
  font-size: 10rem;
  font-weight: 700;
  letter-spacing: -0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: breathing 5s infinite ease-in-out;
}

@keyframes breathing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.title > p {
  margin: 0;
  line-height: 10rem;
  width: auto;
}

.title > p:nth-child(1) {
  align-self: flex-start;
}

.title > p:nth-child(2) {
  color: var(--primary);
  align-self: flex-end;
}

.title > p:nth-child(3) {
  align-self: flex-end;
}

.material-icons {
  display: none;
  fill: var(--text);
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 50px;
  width: 160px;
  z-index: 9999;
}

button {
  height: 50px;
  width: 160px;
  clip-path: path("M 0 25 C 0 -5, -5 0, 80 0 S 160 -5, 160 25, 165 50 80 50, 0 55, 0 25");
  border: none;
  border-radius: 13px;
  background-color: var(--primaryBg);
  box-shadow: 0px -3px 15px 0px var(--primaryHi) inset;
  color: var(--primaryFg);
  font-family: "Manrope";
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  transform: translateY(0px);
  transition: all 0.2s ease;
}

span {
  width: 100px;
  height: 60px;
  background-color: var(--primaryHi);
  border-radius: 100%;
  filter: blur(20px);
  position: absolute;
  bottom: -50%;
  transition: all 0.2s ease;
}

.button:hover > span {
  opacity: 60%;
}

.button:hover > button {
  transform: translateY(5px);
}

.button.first {
  top: 12%;
  right: 20%;
}

.button.sec {
  bottom: 13%;
  right: 11%;
}

.button.sec > button {
  background-color: var(--accentBg);
  box-shadow: 0px -3px 15px 0px var(--accentHi) inset;
  color: var(--accentFg);
}

.button.sec > span {
  background-color: var(--accentHi);
}

.button.third {
  bottom: 25%;
  left: 15%;
}

.button.third > button {
  background-color: var(--secondaryBg);
  box-shadow: 0px -3px 15px 0px var(--secondary) inset;
  color: var(--secondaryFg);
}

.button.third > span {
  background-color: var(--secondaryHi);
}

.scroll-text {
  position: absolute;
  bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.server-list {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 10%;
  box-sizing: border-box;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
}

.server-list h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.subtext {
  font-size: 1.2rem;
  color: var(--textDim);
  margin-bottom: 2rem;
  text-align: center;
}

.search-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
}

#server-search {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.3s ease;
}

#server-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

#server-search::placeholder {
  color: var(--textDim);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.server-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
}

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

.server-logo {
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.2);
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: absolute;
  --top: 1rem;
  --left: 1rem;
}

.server-card h3 {
  font-size: 1.8rem;
  margin: 0 0 1rem 60px;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}

.server-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.server-info p {
  margin: 0;
  font-size: 0.9rem;
}

.join-code {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

.join {
 color:rgb(65, 230, 65);
 font-weight: bold;
}

.pconly {
  color: rgb(58, 113, 165);
}

/* Remove underline and set color for unvisited links */
a:link {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

a {
  transition: transform 0.2s ease-in-out;
}

/* Remove underline and set color for visited links */
a:visited {
  color: rgb(218, 218, 218);
  text-decoration: none;
}

/* Remove underline and set color for hovered links */
a:hover {
  color: rgb(255, 255, 255);
  text-decoration: none;
  transform: scale(1.1);
}

/* Remove underline and set color for active links */
a:active {
  color: black;
  text-decoration: none;
}

@media screen and (max-width: 1000px) {
  .title {
    font-size: 4rem;
  }
  
  .title > p {
    line-height: 5rem;
    letter-spacing: -0.3rem;
  }
  
  nav:not(.show) > :not(.sitename, .material-icons) {
    display: none;
  }
  
  nav:not(.show) {
    justify-content: space-between;
  }
  
  .material-icons {
    display: flex;
    align-items: center;
  }

  .show {
    user-select: none;
    top: 0px;
    position: absolute !important;
    display: flex;
    flex-direction: column;
    background-color: rgb(24, 24, 24) !important;
    border-radius: 5px;
    z-index: 15000;
  }
  
  .server-list {
    padding: 2rem 5%;
  }
  
  .server-grid {
    grid-template-columns: 1fr;
  }
}

/* Prevent body scroll when the menu is open */
body.no-scroll {
  overflow: hidden;
}

