@font-face{
    font-family:'stats';
    src:url('fonts/stats.otf')
}

html{
    background: radial-gradient(circle at center, #222 10%, #000 80%);
}

*{
    outline: 0!important;
}

body {
    margin:0;
    padding:0;
    color:white;
    overflow:hidden
}

::-webkit-scrollbar {
    width: 3px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3)
  }
   
 #server_status{
    width:100%;margin-top:20px;text-align:center;color:#ccc;user-select:none
 }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgb(138, 138, 138, 0.3)
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgb(138, 138, 138, 0.4)
  }

  @keyframes fadeBlurIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.fade-blur-in {
    animation: fadeBlurIn 0.3s ease-out forwards;
}

#chatbox{
    position:absolute;
    font-family: Arial, Helvetica, sans-serif;
    z-index:9;
    display:flex;
    flex-direction: column;
    bottom:0;
    left:0;
    margin:10px;
    width:300px;
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(59, 59, 59, 0.5);
    animation: fadeBlurIn 0.3s cubic-bezier(0.3, 0.7, 0.3, 1)
}

#messages{
    overflow-y: scroll;
    min-height:40px;
    height:250px;
    flex:1;
    background-color: rgba(19, 19, 19, 0.719);
    padding:15px;
    overflow-x:hidden
}

#chat_input_container{
    display:flex;
    align-items:center;
    flex:1;
    padding:7px;
    justify-content:center;
    background-color: rgba(0,0,0,0.4);
    max-height:20px;
}

#chat_input{
    font-size:16px;
    border:none;
    outline:none;
    color:rgb(182, 182, 182);
    width:100%;
    flex:1;
    background-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
}

#chat_resizer{
    cursor:grab;
    position:fixed;
    margin-top:5px;
    max-width:30px;
    opacity: 0.65;
}

::placeholder {
    color:rgba(255,255,255,0.15)
  }

::-ms-input-placeholder{
    color:rgba(255,255,255,0.15)
}

.message{
    color:rgb(168, 168, 168)
}

.gradient-text{
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


#overlay{
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(15px);
    width:100%;
    height:100%;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position:absolute;
    top:0;
    left:0;
}

#nav{
    width: 1150px; 
    height:60px;
    display:flex;
    justify-content: center;
    border:1px solid #3f3f3f;
    background-color:#17171bb0;
    backdrop-filter: blur(10px);
}

#nav > div {
    flex:1;
    margin: 0px 40px;
    display:flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor:pointer;
    max-width:60px;
    user-select: none;
}

#nav > div:not(.active) > svg{
    width:32px;
    height:32px;
    color:#ffffff7e;
    fill:#ffffff7e;
    transition: 0.3s;
}

#nav > div.active > svg{
    fill:white;
    color:white;
    width:45px;
    height:45px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

#nav > div:not(.active):hover > svg {
    color:white;
    fill:white
}

#main {
    display:flex;
    justify-content: center;
    width:1152;
    height:530px;
}

#main > div {
    flex:1
}

#home-container {
    display: flex;
    flex:1
}

#home-container > div {
    flex:1
}

#overview{
    margin:0px 20px;
    min-width:420px
}

#stats{
    margin-left:50px
}

#skin_previews > div {
    backdrop-filter: blur(10px);
    width:300px;
    height:300px;
    opacity:0.4;
    border-radius:100%;
    background-size: 300px 300px;
    overflow:hidden;
    border:2px solid white;
    cursor:pointer;
    background-color: rgba(255, 255, 255, 0.253);
}

#skin_previews > div.active{
    z-index: 99;
    opacity:1
}

#skin_previews > div:nth-child(2){
    position: absolute; /* Position it absolutely within the parent */
    top: 50%; /* Vertically center the child */
    right: 0; /* Make the child touch the right edge of the parent */
    transform: translateY(-50%); /* Vertically center the child */
}

#skin_previews{
    position: relative;
    width:420px;
    height:350px;
    display:flex;
    align-items: center;
}

#input-container{
    width:420px;
    display:flex;
    flex-direction: column;
    align-items: center;
}

#nickname, #skin, #tag{
    backdrop-filter: blur(10px);
    width:298px;
    height:38px;
    margin:2px;
    transition: 0.2s;
}

#nickname:focus, #skin:focus, #tag:focus{
    border-color: rgb(200,200,200);

}

#_nickname{
    width:200px;
    border-radius: 6px 0px 0px 0px;
    margin-right:0px;
}

#nickname{
    width:200px;
    border-radius: 6px 6px 0px 0px;
    margin-right:0px;
    margin-left:0px;
}

#tag{
    width:93px;
    margin-left:0px;
    border-radius: 0px 6px 0px 0px;
    display:none;
}

.nickname-field {
  position: relative;
  width: 298px;
}

.nickname-field input[type="text"],
.nickname-field #nickname {
  width: 100%;
  padding-right: 40px; /* space for picker */
  height: 38px;
  box-sizing: border-box;
}

#nicknameColor {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

#skin{
    border-radius: 0px 0px 6px 6px;
}

input:not([type='range']){
    border:1px solid #3f3f3f;
    background-color:#17171bb0;
    padding: 8px;
    color:#ccc;
    font-family: "Gowun Dodum", serif;
    font-size:18px;
}

#tag:not(:placeholder-shown):not(:focus), #skin:not(:placeholder-shown):not(:focus){
    color: transparent; /* Text color */
    text-shadow: 0 0 10px rgba(255,255,255, 0.7);
}

.uk-tooltip{
    font-size:16px;
    border:1px solid #3f3f3f;
    background-color:#323238;
    padding:5px 20px;
    font-family: "Gowun Dodum", serif;

}

#interact-buttons{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-top:10px;
}

#play, #spec{
    width:240px;
    height:45px;
    border:1px solid #3f3f3f;
    background-color:#17171bb0;
    color:rgb(148, 148, 148);
    transition: 0.2s;
    font-size:22px;
    font-family: "Gowun Dodum", serif;
}

#play:hover, #spec:hover{
    color:rgb(200,200,200);
    border-color: rgb(200,200,200);
    cursor:pointer;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#spec{
    font-size:17px;
    height:30px;
    margin-top:3px
}

#servers {
    display:flex;
    margin-top:25px;
    flex-direction: column;
    margin-right:50px;
}

#servers > div {
    flex:1;
    max-height:45px;
}

#regions{
    display:flex;
}

#regions > div{
    backdrop-filter: blur(10px);
    flex:1;
    border:1px solid #3f3f3f;
    background-color:#17171bb0;
    font-family: "Gowun Dodum", serif;
    color:rgb(122, 122, 122);
    justify-content: center;
    align-items: center;
    display: flex;
    margin:5px;
    font-size: 20px;
    font-weight: bolder;
    user-select: none;
    cursor:pointer;
    transition: 0.2s;
}

#regions > div:not(.active):hover, .server:not(.active):hover, #setting-categories > div:hover{
    color:rgb(160,160,160);
    border-color: rgb(160,160,160);
}

#regions > div.active, .server.active, #setting-categories > div.active{
    color:rgb(200,200,200);
    border-color: rgb(200,200,200);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.server, #setting-categories > div, .setting-label{
    backdrop-filter: blur(10px);
    max-height:40px;
    border:1px solid #3f3f3f;
    background-color:#17171bb0;
    font-family: "Gowun Dodum", serif;
    color:rgb(122, 122, 122);
    justify-content: space-between;
    align-items: center;
    display: flex;
    margin:5px;
    font-size: 20px;
    font-weight: bolder;
    user-select: none;
    cursor:pointer;
    transition: 0.2s;
}

.setting-label {
    border:none;
    padding:8.4px;
    cursor:default;
    max-height:50px;
    display:flex;
    color:rgb(183, 182, 187);
    justify-content: space-between;
    align-items: center;
}

.setting-label:not(.disabled):hover{
    background-color:#18181dda;
}

.setting-label.vertical{
    flex-direction: column;
    align-items: normal
}

.setting-label.disabled{
    opacity:0.6;
    cursor:default
}

.setting-label.vertical > * {
    flex:1
}

.setting-label.vertical > div {
    display:flex;
    justify-content: space-between;
}

.setting-label.vertical > input {
    width:97%;
    margin:5px
}

.server > div {
    padding:8px;
    display:flex;
    justify-content: center;
    align-items: center;
}

.server > div > svg {
    margin-left:5px;
}

#server-list{
    display:flex;
    flex-direction: column;
    overflow-y:auto;
    min-height:410px;
}

#settings-container{
    display:none;
    margin-top:25px;
}

#server_location{
    margin:5px;opacity:0.6;user-select: none;display:flex;align-items: center;
}

#setting-categories {
    flex:1;
    max-width:250px;
    margin-right:20px;
} 

#setting-categories > div {
    padding:5px 10px;
    justify-content: left;
}

#setting-categories > div > svg {
    margin-right:6px;
}

#settings-main {
    flex:1;
    overflow-y:auto;
    max-width:43%;
    margin-right:5px
}

select {
    padding: 5px;
    font-size: 17px;
    background: #222227;
    width:160px;
    height:35px;
    color: rgb(165, 165, 165); 
    border-radius: 0px;
    outline: none;
    cursor: pointer;
    border:transparent;
}

select:hover:not(:disabled)  {
    background: #3e3e46;
}


.switch{
    color: rgb(165, 165, 165); 
    display:flex;
    width:66px;
    height:32px;
    cursor:pointer;
    flex-shrink: 0;
    background:#222227;
    padding:4px;
    transition: 0.3s;
    box-sizing: border-box;
}

.switch.disabled:hover{
    cursor:default;
}

.switch > div {
    flex:1;
    flex-shrink: 0;
    max-width:25px;
    transition: 0.3s;
    background-color: rgb(97, 97, 97);
    box-sizing: border-box
}

.switch[data-value='true'] > div {
    background-color:white;
    margin-left:33px;
    box-shadow:0 0 10px rgba(255,255,255, 0.7);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 220px;
    background: transparent;
  }

  /* Track */
  input[type="range"]::-webkit-slider-runnable-track {
    background: #555;
    height: 8px;
    box-shadow: inset 0px 0px 5px #222;
  }

  input[type="range"]::-moz-range-track {
    background: #333335;
    height: 8px;
    box-shadow: inset 0px 0px 5px #222;
  }

  /* Thumb */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    border-radius:15px;
    height: 16px;
    background: rgb(199, 199, 199);
    cursor: pointer;
    margin-top: -4px;
  }

  input[type="range"]::-moz-range-thumb {
    appearance: none;
    width: 14px;
    border-radius:15px;
    height: 14px;
    background: rgb(199, 199, 199);
    cursor: pointer;
    margin-top: -6px;
  }

  /* Hover & Active Effects */
  input[type="range"]:hover::-webkit-slider-thumb {
    background: white;
    box-shadow:0 0 10px rgba(255,255,255, 0.7);
  }

  input[type="range"]:active::-webkit-slider-thumb {
    background: #aaa;
  }

  #settings-main::-webkit-scrollbar {
    width: 12px;
  }

  .swal2-modal, .swal2-toast{
    background-color: #19191a;
    border-radius:0px;
    border:1px solid rgba(255, 255, 255, 0.7);
    box-shadow:0 0 10px rgba(255,255,255, 0.5);
    color:rgb(199, 199, 199);
  }

  .swal2-toast{
    width: auto !important;
    max-width: none !important;
    display: inline-block;
    padding:10px 20px
  }

  .swal2-actions > button {
    border-radius:0px;
    border:1px solid rgba(255, 255, 255, 0.7);
    color:rgb(199, 199, 199);
    background-color: #353538;
  }

  .swal2-actions > button:hover { 
    background-color: #323235;
  }

  .hotkey{
    display:flex;
    width:140px;
    background-color: #222227;
    border:1px solid #505053;
    justify-content: center;
    align-items: center;
    padding:5px;
    height:30px;
    font-weight:normal;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hotkey.listening{
    border:1px solid rgba(255, 255, 255, 0.7);
    box-shadow:0 0 10px rgba(255,255,255, 0.5);
    color:rgb(199, 199, 199);
    text-shadow:0 0 10px rgba(255,255,255, 0.5);
  }

  @keyframes pulse-opacity {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
  }
  
  .pulse {
    animation: pulse-opacity 1.5s infinite alternate ease-in-out;
  }

  .hotkey:hover{
    background: #2c2c30;
    cursor:pointer
  }

  #login > div.connecting {
    font-family: "Gowun Dodum", serif;
    font-size:80px; 
    font-weight: 100;
    opacity:0.75;
    text-shadow: 0 0 10px rgba(255,255,255, 0.5);
    text-align: center;
  }

  #top-text,#bottom-text{
    margin:30px;
    opacity:0.7;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position:absolute;
    top:0;
    left:0;
    width:100%;
  }

  #bottom-text{
    bottom:0;
    top:unset
  }

  #login{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeBlurZoom 1s cubic-bezier(0.3, 0.7, 0.3, 1);
  }

  @keyframes fadeBlurZoom {
    from {
      opacity: 0;
      filter: blur(10px);
      transform: scale(0.5);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: scale(1);
    }
  }