:root {
  --bg-color: #ffffff;
  --text-color: #333;
  --card-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #333;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;
  box-sizing: border-box;
  z-index: 999;

  background: #222;
  color: white;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.site-header nav {
  display: flex;
  gap: 25px;
}

.site-header a {
  color: white;
  text-decoration: none;
}

.site-header a:hover {
  color: #009578;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.wrapper{
  position: relative;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.card {
  border-radius: 24px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 360px;
  aspect-ratio: 1 / 1;
  background: #76C0EC;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card button {
  padding: 10px;
  position: absolute;
  bottom: 15%;
}

.create-room {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  background-image: url('');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-size: 70% 70%;
}

.create-room-img{
  position: absolute;
  top: 10%;
  height: 80%;
  width: 80%;
}

.join-room {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  background-image: url('');
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-size: 60% 60%;
}

.join-room-img{
  position: absolute;
  top: 20%;
  height: 40%;
  width: 40%;
}

.join-room #room-key{
  position: absolute;
  bottom: 30%;
  padding: 8px;
  width: 180px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #aaa;
  box-shadow:
    inset 2px 2px 1px rgba(0, 0, 0, 0.5);
}

.button-49,
.button-49:after {
  width: 200px;
  height: 48px;
  line-height: 25px;
  font-size: 18px;
  font-family: 'Bebas Neue', sans-serif;
  background: linear-gradient(45deg, transparent 5%, #FF013C 5%);
  border: 0;
  color: #fff;
  letter-spacing: 3px;
  box-shadow: 6px 0px 0px #00E6F6;
  outline: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-49:after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  
  content: 'EXECUTE';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 3%, #00E6F6 3%, #00E6F6 5%, #FF013C 5%);
  text-shadow: -3px -3px 0px #F8F005, 3px 3px 0px #00E6F6;
  clip-path: var(--slice-0);
}

.button-49:hover:after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }
  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }
  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }
  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }
  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }
  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }
  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }
  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }
  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }
  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }
  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}

@media (min-width: 768px) {
  .button-49,
  .button-49:after {
    width: 200px;
    height: 48px;
    line-height: 25px;
  }
}

.room-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
  text-align: center;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.room-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-items: center;
}

.section-title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 64px;
  font-size: 20px;
  gap: 20px;
}

.room-details{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

#room-id:hover {
  cursor: pointer;
}

.raid-list {
  border: 2px solid;
  border-radius: 4px;
  overflow-y: auto;
  height: 448px;
  width: 360px;
}

.raid-entry {
  height: 48px;
  padding: 8px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid #55585c;
  cursor: pointer;
}

.raid-code {
  margin-left: 5px;
}

#raid-key {
  margin-top: 24px;
  width: 200px;
  height: 40px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #aaa;
  box-shadow:
    inset 2px 2px 1px rgba(0, 0, 0, 0.5);
}

.chatbox {
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 350px;
  border: 2px solid;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

.user-details {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    gap: 5px;
}

.user-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 34px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ca2222;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2ab934;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(85px);
  -ms-transform: translateX(85px);
  transform: translateX(85px);
}

.on
{
  display: none;
}

.on, .off
{
  color: white;
  position: absolute;
  transform: translate(-50%,-50%);
  top: 50%;
  left: 50%;
  font-size: 10px;
  font-family: Verdana, sans-serif;
}

input:checked+ .slider .on
{display: block;}

input:checked + .slider .off
{display: none;}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;}
