@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Chakra Petch', sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Chakra Petch', sans-serif;
  background-color: #000000;
  color: #e6e6e6;
  overflow: hidden;
}

:root {
  --accent: #39FF14;
  --muted-text: #e6e6e6;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  background-color: #000000;
  border-bottom: 2px solid rgba(57, 255, 20, 0.08);
  z-index: 100;
}

#logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

#logo {
  width: 60px;
  height: 60px;
  margin: 10px;
}

#title {
  font-size: 2rem;
  color: #FFFFFF;
  font-weight: 700;
}

#chall-title {
  margin-left: 10px;
}

#main-body {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-image: url('/img/assets/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#instructions {
  display: none;
}

#competitions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  height: 100%;
}

#chall-select {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cards {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

#chall-card {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  color: var(--muted-text);
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

#chall-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.5);
}

#buttons,
#info {
  text-align: center;
}

h1 {
  text-align: center;
}

#next {
  margin-left: 100px;
}

#center {
  text-align: center;
}

@media only screen and (max-width: 1370px) {
  #instructions {
    display: none;
  }

  #competitions {
    width: 100%;
  }

  #cards {
    grid-template-columns: repeat(2, 160px);
  }
}

@media only screen and (max-width: 768px) {
  #cards {
    grid-template-columns: repeat(1, 160px);
  }
}