.inputbox {
  position: relative;
  width: 80%;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
}

.inputbox input {
  position: relative;
  width: 100%;
  padding: 20px 10px 10px;
  background: transparent;
  outline: none;
  box-shadow: none;
  border: none;
  color: #23242a;
  font-size: 1em;
  letter-spacing: 0.05em;
  transition: 0.5s;
  z-index: 10;
}

.inputbox span {
  position: absolute;
  left: 0;
  padding: 20px 10px 10px;
  font-size: 1em;
  color: #8f8f8f;
  letter-spacing: 00.05em;
  transition: 0.5s;
  pointer-events: none;
}

.inputbox input:valid ~span,
.inputbox input:focus ~span {
  color: #45f3ff;
  transform: translateX(-10px) translateY(-34px);
  font-size: 0,75em;
}

.inputbox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #45f3ff;
  border-radius: 4px;
  transition: 0.5s;
  pointer-events: none;
  z-index: 9;
}

.inputbox input:valid ~i,
.inputbox input:focus ~i {
  height: 44px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  margin: 6% auto;
  width: 30%;
  height: 30%;
}

.close {
  color: #00ffff;
  position: relative;
  left: 90%;
  top: 20%;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 2em;
  padding-right: 2em;
  padding-bottom: 0.4em;
  background-color: #171717;
  border-radius: 25px;
  transition: .4s ease-in-out;
  justify-content: center;
  align-items: center;
}

#heading {
  text-align: center;
  color: rgb(255, 255, 255);
  font-size: 1.2em;
}

.field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 25px;
  padding: 0.6em;
  border: none;
  outline: none;
  color: white;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.button1 {
  padding: 0.8em 1.8em;
  border: 2px solid #17C3B2;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  transition: .3s;
  z-index: 1;
  font-family: inherit;
  color: #17C3B2;
  border-radius: 10px;
  margin-right: 5px;
}

.button1:before {
  content: '';
  width: 0;
  height: 300%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #17C3B2;
  transition: .5s ease;
  display: block;
  z-index: -1;
}

.button1:hover::before {
  width: 105%;
}
.button1:hover {
  color: #111;
}

.btn {
  --primary: #009dff;
  --shadow-primary: #ffffff;
  --color: rgb(255, 255, 255);
  --font-size: 10px;
  --shadow-primary-hue: 180;
  --shadow-secondary-hue: 60;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
  --clip: polygon(11% 0, 95% 0, 100% 25%, 90% 90%, 95% 90%, 85% 90%, 85% 100%, 7% 100%, 0 80%);
  --border: 5px;
  --shimmy-distance: 5;
  --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
  color: var(--color);
  text-transform: uppercase;
  font-size: var(--font-size);
  letter-spacing: 3px;
  position: relative;
  font-weight: 900;
  width: 100%;
  height: 100%;
  line-height: 38px;
  text-align: center;
  transition: background 0.2s, 0.3s;
}

.btn:after, .btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}

.btn:after {
  background: var(--primary);
}

.btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: block;
}

.btn__glitch:before {
  content: '';
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }

  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }

  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }

  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }

  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1%), 0);
  }

  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1%));
  }

  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1%));
  }

  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }

  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1%), 0);
  }

  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }

  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

.number {
  background: var(--shadow-primary);
  color: #323232;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  width: 27px;
  height: 7px;
  top: 0;
  left: 81%;
  line-height: 6.2px;
}

.discordbtn {
  background-color: transparent;
  border-style: none;
}

.auth-btn {
  display: flex;
  flex-direction: row;
}

.grid-container {
  display: grid;
  grid-template-columns: 20% auto 20%;
  grid-gap: 10px;
}

.grid-1 {
  margin-left: 10%;
}

.chat-container {
  width: 100%;
  padding-right: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}
.content {
  flex: 1;
  overflow-wrap: break-word;
}
.global-name {
  font-weight: bold;
  margin-bottom: 4px;
  color: #000000;
}
.message-content {
  margin-bottom: 8px;
  color: #000000!important;
}
.attachment {
  max-width: 100%;
  max-height: 400px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.grid-3 {
  margin-right: 10%;
}

.bg-wallpaper {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.middle-grid-container {
  background-color: rgba(255, 255, 255, 0.6);
}

.modal-console {
  position: relative;
  margin: 6% auto;
  width: 40%;
  height: 60%;
  border-width: 5px;
  border-color: rgb(49, 255, 49);
  border-radius: 15px;
  border-style: solid;
  background-color: rgba(38, 38, 38, 0.8);
  box-sizing: border-box;
  padding: 15px;
  color: #00ff00;
  font-family: 'press_start_2pregular';
  font-size: 12px;
  overflow: hidden;
}

.close-console {
  position: absolute;
  border-width: 3px;
  border-style: solid;
  text-align: center;
  font-weight: bold;
  max-width: 100px;
  right: 0%;
  bottom: 0%;
  margin-right: 30%;
  margin-bottom: 5%;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
  color: rgb(0, 255, 0);
}

.console-button {
  position: absolute;
  border-width: 3px;
  border-style: solid;
  text-align: center;
  font-weight: bold;
  max-width: 100px;
  right: 0%;
  bottom: 0%;
  margin-right: 5%;
  margin-bottom: 5%;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
  color: rgb(0, 255, 0);
}

.register-state {
  font-size: 16px;
  text-align: center;
}

#skin-preview-container {
  background-image: url('/img/minecraft_wardrobe.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.skin-selector-option-container {
  position: absolute;
}

.skin-selector-option {
  position: relative;
}

@media(max-width:1200px){
  .grid-1 {
    display:none;
  }
  .grid-container {
    display: grid;
    grid-template-columns: auto 30%;
    grid-gap: 10px;
  }
}