@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --voxen-dark-hex: #17263d;
  --voxen-dark-rgb: 23, 38, 61;
  --voxen-light-hex: #246b9e;
  --voxen-light-rgb: 36, 107, 158;

  --background-color: #eaeaea;
  --font-color-white: #dbe2e3;

  --red: #ec0909;
}

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  font-family: inherit;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--background-color);
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


a:not(.tile):not(.button) {
  color: var(--voxen-light-hex);
  text-decoration: underline;
  width: fit-content
}
a {
  cursor: pointer;
}
a.tile {
  transition: transform 250ms;
}
a.tile:hover {
  transform: translateY(-5px);
}



header {
  min-height: 75px;
  background-color: var(--voxen-dark-hex);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}


header .name img {
  display: block;
  height: 32px;
}

header .nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

header .nav a {
  position: relative;
  color: var(--font-color-white) !important;
  text-decoration: none !important;
}
header .nav a:not(.button)::after {
  content: '';
  position: absolute;
  display: block;
  height: 2px;
  width: 100%;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background-color: var(--voxen-light-hex);
  transform: scaleX(0);
  transition: transform 250ms;
  pointer-events: none;
}
header .nav a:hover::after {
  transform: scaleX(1);
}



div.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000040;
  backdrop-filter: blur(8px);
  align-content: center;
}
div.modal .content {
  min-height: 50%;
  width: 50%;
  min-width: 300px;
  background-color: var(--background-color);
  margin: auto;
  border-radius: 10px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

div.modal h1 {
  text-align: center;
}

div.modal .button[action="close"] {
  display: inline-block;
  margin: auto auto 10px;
  width: fit-content;
}


a.button,
input[type="submit"],
input[type="button"] {
  background: var(--voxen-light-hex);
  padding: 6px;
  border-radius: 10px;
  color: var(--font-color-white);
  cursor: pointer;
  text-decoration: none;
}


form {
  display: flex;
  flex-direction: column;
}

input {
  padding: 9px 15px !important;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
}

form label.error {
  color: var(--red);
  padding: 0 8px;
}
form label:not(:first-child),
form input[type="submit"] {
  margin-top: 20px;
}
form input[type="submit"] {
  font-weight: 700;
}

form label {
  padding-left: 8px;
}

form label[required]::after {
  content: "*";
  color: var(--red);
}



.welcome {
  font-weight: 400;
}
.welcome h3 {
  font-weight: inherit;
  font-size: 1.4em;
}

h1, h2, h3 {
  font-weight: 500;
}



.section {
  margin: 0 40px;
  padding: 8px;
  border-radius: 10px;
}
.section:not(.shelf) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}


.shelf.disabled {
  pointer-events: none;
}
.tile.bounce {
  animation: bounce 1s infinite;
}
.shelf {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.shelf .tile {
  background-color: #fff;
  border-radius: 10px;
  padding: 12px 10px;
  width: calc(50% - 5px);
  min-width: 300px;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shelf.selecting .tile {
  animation: bounce 1s infinite, pulse 500ms infinite;
}
@keyframes bounce {
  0% { transform: translateY(0); background-color: #fff; }
  50% { transform: translateY(-5px); background-color: #f4f4f4; }
  100% { transform: translateY(0); background-color: #fff; }
}
@keyframes pulse {
  0% { background-color: #fff; }
  50% { background-color: #f4f4f4; }
  100% { background-color: #fff; }
}

.list {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.list .item {
  padding-bottom: 20px;
  border-bottom: solid 1px #d8d8d8;
}


.tile.vor {
  position: relative;
  background-color: #ff66665e !important;
}
.tile.vor::after {
  content: "VOR";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-10px, -50%);
  background-color: #ff66665e;
  color: var(--red);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7em;
  font-weight: 100;
}



.top-button {
  width: calc(8px + 20px + 10px);
  height: calc(8px + 20px + 10px);
  position: fixed;
  bottom: 25px;
  right: 15px;
  background-color: var(--voxen-light-hex);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms;
}
.top-button.active {
  opacity: 1;
  pointer-events: all;
}
.top-button svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  fill: var(--font-color-white);
}




@media (max-width: 375px) {
  .section {
    margin: 0;
  }
}