body {
    background-color: rgb(0, 81, 168);
    margin: 0;
    padding: 0;
    user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: hidden;
    overflow-x: hidden;
}

#bg {
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0;
    padding: 0;
    background-image: url(images/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -3;
    display: none;
}

#mainBox {
    position: absolute;
    left: calc(50% - 270px / 2);
    top: calc(50% - 320px / 2);
    background-color: rgba(255, 255, 255, 0.555);
    width: 270px;
    height: 280px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    transform: scale(1.3);
}

#serversPanel {
    font-family: sans-serif; 
    position: absolute;
    left: calc(50% - 350px / 2);
    top: calc(50% - 360px / 2);
    background-color: rgba(255, 255, 255, 0.555);
    width: 350px;
    height: 330px;
    border-radius: 20px;
    display: none;
    transform: scale(1.3);
    justify-content: space-around;
    align-content: space-evenly;
    align-items: center;
    grid-template-columns: 150px 80px 80px;
    grid-template-rows: 10px 12px 15px 15px 15px 15px 15px 15px 15px 15px 15px 15px 15px 15px;
    font-size: 10px;
}

.bigger-grid-item {
    color: #2b2b2b;
    display: flex;
    justify-content: center;
    grid-column: 1 / 4;
    font-size: 22px;
    font-weight: 600;
}

.top-grid-item {
    color: #444444;
    font-size: 15px;
    font-weight: 600;
}

.server-flag-grid-item {
    font-weight: 500;
    font-family: sans-serif;
    font-size: 11.5px;
}

.server-flag-grid-item::before {
    background-size: 28px 30px;
    background-repeat: no-repeat;
    display: inline-flex;
    align-items: center;
    width: 28px; 
    height: 30px;
    padding-right: 5px;
    padding-top: 3px;
    border-radius: 5px;
    content:"";
}

.popularity {
    font-family: sans-serif;
    font-size: 10px;
    color: #2a2a2aad;
}

.join {
    background-color: rgba(71, 218, 57, 0.849);
    border-radius: 10px;
    box-shadow: 0px 3.5px 0px 0px rgb(96, 173, 86);
    cursor: pointer;
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-weight: 800;
    letter-spacing: .5px;
    color: rgb(68, 68, 68);
    font-size: 9px;
    width: 80px;
}

.US::before {
    background-image: url(images/flags/US.png);
}

.MEX::before {
    background-image: url(images/flags/MEX.png);
}

.BRZ::before {
    background-image: url(images/flags/BRZ.png);
}

.EU::before {
    background-image: url(images/flags/EU.png);
}

.TOK::before {
    background-image: url(images/flags/TOK.png);
}

.SL::before {
    background-image: url(images/flags/SL.png);
}

.ME::before {
    background-image: url(images/flags/ME.png);
}

.AU::before {
    background-image: url(images/flags/AU.png);
}

#closeServersPanelBtn {
    position: absolute;
    top: 1%;
    left: 91%;
    width: 30px;
    height: 30px;
    color: #f14040;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: sans-serif;
    background-color: transparent;
    border: none;
}

.grid-item.join {
  transition: transform 0.4s, background-color 0.4s, box-shadow 0s;
  padding: 0 !important;
  border: none !important;
}

.grid-item.join:hover {
  transform: scale(1.07);
  background-color: rgba(48, 230, 31, 0.849);
}

.grid-item.join:active {
  box-shadow: 0px 1.5px 0px 0px rgb(96, 173, 86);
}

#pirateDogImg {
    position: absolute;
    top: -3%;
    width: 260px;
    height: 180px;
    background-size: 200px;
    background-position: center;
    background-image: url(images/PIRATE_DOG.png);
    background-repeat: no-repeat;
    animation: scaleAnim 2s infinite;
}

input[type="text"] {
    position: absolute;
    bottom: 70px;
    border: none;
    width: 67%;
    color: rgb(49, 49, 49);
    background-color: rgba(139, 139, 139, 0.658);
    height: 40px;
    padding: 0px 10px;
    border-radius: 10px;
    font-weight: 800;
    resize: none;
    background-size: 25px;
    background-image: url(images/input_icon.png);
    background-position: 8px center;
    background-repeat: no-repeat;
    padding-left: 40px;
}

input[type="text"]:focus {
    outline: none;
}

#playBtn {
    position: absolute;
    background-color: rgba(71, 218, 57, 0.849);
    width: 40%;
    height: 40px;
    bottom: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 0px 0px rgb(96, 173, 86);
    cursor: pointer;
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-weight: 800;
    letter-spacing: .5px;
    color: rgb(68, 68, 68);
    font-size: 12px;
    border: none;
    left: 7%;
    animation: scaleAnim 2s infinite;
    transition-duration: 0.3s;
}

#serversBtn {
    position: absolute;
    background-color: rgba(71, 218, 57, 0.849);
    width: 40%;
    height: 40px;
    bottom: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 0px 0px rgb(96, 173, 86);
    cursor: pointer;
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-weight: 800;
    letter-spacing: .5px;
    color: rgb(68, 68, 68);
    font-size: 12px;
    border: none;
    right: 7%;
    transition-duration: 0.3s;
}

#playBtn:hover {
    transform: scale(1.05);
    background-color: rgba(48, 230, 31, 0.849);
}

@keyframes scaleAnim {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#serversBtn:hover {
    transform: scale(1.05);
    background-color: rgba(48, 230, 31, 0.849);
}

#title {
    position: absolute;
    top: 50px;
    width: 900px;
    height: 270px;
    left: 50%;
    top: 7%;
    background-size: 600px;
    background-position: center;
    background-image: url(images/logo.png);
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    z-index: -1;
}

#AD {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 90%;
    width: 40%;
    height: 100px;
    background-color: rgba(65, 65, 65, 0.507);
    transform: translate(-50%, -50%);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.507);
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    padding: 0px 10px;
    z-index: -1;
}

.featuredVideos {
    position: absolute;
    background-color: #fff;
    width: 200px;
    display: flex;
    height: 140px;
    font-family: sans-serif;
    font-size: 20px;
    border-radius: 0px 0px 20px 0px;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    font-weight: 800;
    color: rgb(68, 68, 68);
}

#video {
    position: absolute;
    top: 32%;
    left: 5%;
    border-radius: 10px;
    z-index: 1;
}

.credits {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    top: calc(100% - 50px);
    left: 0%;
    width: 200px;
    height: 50px;
    background-color: white;
    border-radius: 0px 20px 0px 0px;
    font-family: sans-serif;
    font-weight: 800;
    color: rgb(68, 68, 68);
    padding-top: 5px;
}

#thanks {
    position: absolute;
    color: rgb(141, 141, 141);
    font-weight: 800;
    font-size: 13px;
    top: 50%;
}

.info {
    white-space: break-spaces;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    top: 95%;
    left: 100%;
    width: 250px;
    height: 5%;
    background-color: white;
    border-radius: 20px 0px 0px 0px;
    transform: translate(-100%, 0);
    font-size: 15px;
    align-items: center;
}

.changelogs {
    white-space: break-spaces;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    top: 90%;
    left: 100%;
    width: 220px;
    height: 5%;
    background-color: rgb(214, 214, 214);
    border-radius: 20px 0px 0px 0px;
    transform: translate(-100%, 0);
    font-size: 14px;
}

.links {
    color: rgb(68, 68, 68) !important;
    text-decoration: none;
    font-family: sans-serif;
}

.links:hover {
    color: rgb(196, 49, 49) !important;
}

#iframe {
    display: none;
    position: absolute;
    z-index: 2;
}

#mainMenuBtn {
  display: none;
  position: absolute;
  border-radius: 4px;
  z-index: 3;
  font-weight: 200;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  background-color: #f7f5f5;
  border: none;
  box-shadow: 0px 5px 0px #b8b6b6;
  color: rgb(68, 68, 68);
  font-size: 15px;
  font-family: sans-serif;
  height: 20px;
  width: 130px;
  left: 10px;
  top: 6px;
  transition: .05s;
  padding-left: 23px;
}

#mainMenuBtn:hover {
  top: 8.5px;
  box-shadow: 0px 2.5px 0px #b8b6b6;
}

#mainMenuBtn:before {
  content: url(images/house_icon.png);
  transform: scale(.17);
  position: absolute;
  left: -30%;
}

#customLoadingScreen {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  background-image: url("images/LoadingBG.png");
  background-size: cover;
  z-index: 4;
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  letter-spacing: 5px;
}

#loadingScreenBoatImg {
  display: block;
  position: absolute;
  bottom: calc(50%);
  width: 260px;
  height: 180px;
  background-size: 200px;
  background-position: center;
  background-image: url(images/boat1.png);
  background-repeat: no-repeat;
  animation: scaleAnim 2s infinite;
}

#customLoadingScreenInfoText {
  position: absolute;
  top: 55%;
  color: #c4c4c4;
  text-align: center;
}

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -2;
}

#loadingBarBack {
  position: absolute;
  width: 50%;
  height: 30px;
  background-color: #ffffff80;
  border: 5px grey solid;
  border-radius: 10px;
  top: 63%;
  left: calc(50% - 50% / 2);
  z-index: 5;
}

#loadingBar {
  position: absolute;
  width: 0%;
  height: 30px;
  background-color: #f7f7f7;
  border-radius: 10px;
  z-index: 5;
  transition: linear 1s;
}

#Join_Discord_btn {
  position: absolute;
  top: 1%;
  left: calc(100% - 225px - .5%);
  width: 225px;
  height: 66px;
  background-image: url(images/join_discord.png);
  background-size: 100%;
  background-repeat: no-repeat;
  border: none !important;
  cursor: pointer;
  background-color: transparent;
}

#Join_Discord_btn:focus {
  outline: none !important;
  border: none !important;
}

#Join_Discord_btn:hover {
  width: 230px;
  height: 70px;
}
