@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@200..700&display=swap');

html {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

a {
  text-decoration: none
}

/* -- GLASSMORPHISM EFFECT -- */

.glassmorphism {
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  padding: 10px;
  width: 100%;
  height: 100%;
}

/* -- LOGO -- */

.logo {
  position: fixed;
  width: auto;
  padding-top: 20px;
  padding-left: 10px;
  align-items: center;
}

.logo a {
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 500;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff8f;
}

/* -- MUSIC -- */

.music-widget {
  position: fixed;
  top: 20px;
  right: 10px;
  height: 45px;
  width: 40px;
  background: #ffffff00;
  color: #ffffff8f;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: width .4s ease, background .3s ease;
  cursor: pointer;
  z-index: 1;
}

.music-widget:hover {
  width: 35vw
}

.music-icon {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  opacity: 0;
  transition: opacity .3s ease;
  overflow: hidden;
}

.music-widget:hover .music-content {
  opacity: 1
}

.track-name {
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 500;
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
}

.controls span {
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
  transition: 0.2s;
}

.controls span:hover {
  transform: scale(1.2)
}

.material-icons {
  user-select: none
}

/* -- 404 TEXT -- */

.error_code {
  color: #ffffff8f;
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 30vh);
  margin-top: 5vh;
  margin-bottom: 5vh;
  text-align: center;
}

/* -- OOPS! -- */

.title {
  color: white;
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 5vmin;
  margin-top: 0vmin;
}

/* -- DESC -- */

.subtitle {
  color: #ffffff;
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: 3.5vmin;
  margin-top: -1vmin;
  margin-bottom: 9vmin;
}

/* -- BACK -- */

.btn-back {
  border: 1px solid white;
  color: white;
  height: 5vmin;
  padding: 12px;
  font-family: "Stack Sans Notch", sans-serif;
  border-radius: 5px;
  box-shadow: 4px 4px 0px 0px rgba(255, 255, 255, 0.5);
}

.btn-back:hover {
  background: #ffffff50
}

/* -- MUSIC LICENSE -- */

.music-license-link {
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 200;
  font-size: x-small;
  position: fixed;
  bottom: 12px;
  right: 12px;
  color: #ffffff8f;
  padding-bottom: 5px;
  transition: 0.2s ease;
}

.music-license-link:hover {
  color: white
}

/* -- BACKGROUND SWITCHING -- */

.bg-switch {
  position: fixed;
  bottom: 20px;
  left: 10px;
  width: 42px;
  height: 42px;
  background: #ffffff00;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.35s ease, border-radius 0.35s ease, background 0.3s ease;
  z-index: 10;
}

.bg-switch:hover {
  width: 60px
}

.bg-icon {
  font-size: 22px;
  color: #ffffff8f;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.bg-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bg-switch:hover .bg-controls {
  opacity: 1
}

.bg-switch:hover .bg-icon {
  opacity: 0
}

.bg-controls .material-icons {
  font-size: 24px;
  color: #ffffff8f;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bg-controls .material-icons:hover {
  transform: scale(1.2)
}

@media (max-width: 500px) {

  .logo a .name {
    display: none
  }

  .error_code {
    font-size: 15vh;
    margin-top: 15vh;
    margin-bottom: 15vh;
  }

  .music-widget:hover {
    width: 75%
  }

}
