.background + main {
  margin-top: -270px;
}

.background {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  position: relative;
  overflow: hidden;
  height: 680px;
  margin-top: -80px;
}
.background > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.background:after {
  content: '';
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  margin-bottom: -1px;
  background: linear-gradient(rgba(24, 23, 39, 0), #1f2029);
}
.is-scam {
  flex-wrap: wrap;
  padding: 20px !important;
  margin: 3% 0;
  background-color: var(--danger);
  border-radius: var(--radius-base);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
}
main > .server {
  display: flex;
  flex-direction: column;
}
main > .server > h1 {
  width: 100%;
  overflow: hidden;
}
main > .server > div {
  padding: 30px 0;
}
.server > .header {
  display: flex;
  flex-wrap: wrap;
  padding-top: 0;
}

.header > .avatar-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-align-items: center;
  width: 300px;
}
.header > .avatar-rate > img {
  border-radius: var(--radius-xl);
}
.header > .about {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: calc(100% - 300px);
}
.about > .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.about > .name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  overflow: hidden;
}
.about > .name > span {
  color: var(--third-text);
}
.about > .button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.about > .button > dialog[data-dialog='serverReport'] {
  flex-direction: column;
  padding: 25px;
}
.about > .button > dialog[data-dialog='serverReport'] > form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about > .button > dialog[data-dialog='serverReport'] > form > .info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about > .button > dialog[data-dialog='serverReport'] > form > .cf-turnstile {
  overflow: hidden;
}
.about > .button > dialog[data-dialog='serverReport'] > form > .info > span {
  color: var(--text);
}
.about > .button > dialog[data-dialog='serverReport'] > form > textarea {
  min-height: 180px;
}
.about
  > .button
  > dialog[data-dialog='serverReport']
  > form
  > textarea:invalid {
  border-bottom: 2px solid var(--danger);
}
.about > .button > .btn.success:has(svg) > svg {
  margin-left: 3px;
  width: 15px;
}
.about > .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about > .info > div {
  display: flex;
  gap: 10px;
  align-items: center;
  -webkit-align-items: center;
}
.about > .info > .server-tag {
  margin-bottom: 15px;
}
.about > .info > .language {
  margin-bottom: 15px;
}
.about > .info > div > label {
  min-width: 150px;
  white-space: nowrap;
}
.about > .info > div > .col {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.about > .info > div > .col > .tooltip {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  gap: 5px;
}
.about > .info > .language > .col > .locale {
  display: flex;
  justify-content: center;
  -webkit-justify-content: center;
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  background-color: var(--dark-white-mixed);
  padding: 5px;
  font-size: 12px;
  border-radius: 2px;
}

/* Rating */
.star {
  fill: gray;
}

.star > .filled {
  fill: gold;
}

.half-star.highlighted,
.half-star.selected {
  fill: gold;
  cursor: pointer;
}

.rating-add {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  height: 50px;
  margin-top: 10px;
}

.rating-add > .stars {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
}

.rating-add > .grade {
  display: flex;
  flex-direction: column;
  width: 50px;
  align-items: center;
  -webkit-align-items: center;
  justify-content: center;
  -webkit-justify-content: center;
  text-align: center;
  position: relative;
}
.rating-add > .grade > span {
  margin-bottom: 0px;
  color: var(--text);
}
.rating-add > .grade > span:nth-child(1) {
  font-size: 30px;
  font-weight: 600;
}
.rating-add > .grade > span:nth-child(2) {
  font-size: 11px;
  position: absolute;
  top: 40px;
}

.ratings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ratings > .rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 300px;
  width: 100%;
}

.ratings > .rating > .bar-container {
  display: flex;
  width: 100%;
  margin: 2px 0;
}

.ratings > .rating > .bar-container > .bar {
  background-color: rgb(77 150 247 / 70%);
  height: 15px;
  font-size: 10px;
  color: white;
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

.ratings > .rating > .bar-container > .rating-label {
  color: var(--text);
  width: 20px;
  margin-left: auto;
  text-align: right;
}
.ratings > .rating > .bar-container > .s1 {
  background-color: rgb(77 150 247 / 100%);
}

.ratings > .rating > .bar-container > .s2 {
  background-color: rgb(77 150 247 / 90%);
}

.ratings > .rating > .bar-container > .s3 {
  background-color: rgb(77 150 247 / 80%);
}
.server > .description {
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  white-space: break-spaces;
  overflow: hidden;
  gap: 20px;
}
.server > .twitch {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tooltip-castom {
  height: fit-content;
}
.tippy-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services > .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services > .info > .service {
  color: var(--third-text);
  display: flex;
  gap: 5px;
}
.services > .info > .service > p {
  color: var(--third-text);
}
.services > .info > .service::before {
  content: '• ';
  color: var(--third-text);
}

.last-like {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.last-like > .logs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.last-like > .logs > .log {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  height: 60px;
  border-radius: var(--radius-xs);
}
.last-like > .logs > .log::before {
  content: '';
  width: 3px;
  height: 100%;
  background-color: var(--color);
  border-radius: var(--radius-base);
}
.last-like > .logs > .log > .col {
  display: flex;
  align-self: center;
  flex-direction: column;
  padding: 0 20px;
}
.last-like > .logs > .log > .col:nth-child(1) {
  width: 250px;
}
.last-like > .logs > .log > .col:nth-child(1) > .user {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.last-like > .logs > .log > .col:nth-child(2) > .info > .likes {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}
.last-like > .logs > .log > .col:nth-child(2) > .info > .before {
  vertical-align: top;
  font-size: var(--font-size-xs);
}
.last-like > .logs > .log > .col:nth-child(2) > .info > .source {
  font-weight: var(--font-weight-bold);
}
.other {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.other > .servers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.other > .servers > .server {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-align-items: center;
  width: calc(100% / 6 - 17px);
  text-align: center;
  gap: 2px;
}

.other > .servers > .server > .avatar {
  display: flex;
  border-radius: var(--radius-base);
  width: 100px;
  height: 100px;
  overflow: hidden;
  user-select: none;
  margin-bottom: 5px;
}
.other > .servers > .server > .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-md);
  width: 100%;
  font-weight: var(--font-weight-bold);
  height: 20px;
}
.other > .servers > .server > .online {
  display: flex;
  gap: 10px;
}
.other > .servers > .server > .online > .tooltip {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  gap: 5px;
}

@media screen and (max-width: 700px) {
  .background {
    height: 60vh;
  }
  .server > .header {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .header > .avatar-rate {
    width: 100%;
  }
  .header > .about {
    width: 100%;
  }
  .rating-add > .grade > span:nth-child(2) {
    width: 125px;
  }
  .about > .info > .tags {
    align-items: baseline;
    -webkit-align-items: baseline;
  }
  .tab {
    width: 100%;
  }
  .tab-container {
    height: 200px;
  }
  .charts > .controls {
    justify-content: normal;
  }
  .charts > .controls > .switch {
    margin-left: 0;
  }
  .last-like > .logs > .log {
    height: 100px;
    flex-direction: column;
  }
  .last-like > .logs > .log > .col {
    align-self: baseline;
  }
  .last-like > .logs > .log > .col:nth-child(1) {
    width: 100%;
  }
  .other > .servers > .server {
    -webkit-align-items: center;
    width: calc(100% / 3 - 14px);
  }
}

@media screen and (max-width: 450px) {
  .other > .servers > .server {
    -webkit-align-items: center;
    width: calc(100% / 2 - 10px);
  }
}

/* Page Likes */
main > .like {
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-justify-content: center;
  align-items: center;
  -webkit-align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 40px;
}
main > .like > img {
  max-height: 300px;
  width: 100%;
}
main > .like > .count-like > span {
  font-weight: var(--font-weight-bold);
}
main > .like > .name > a {
  color: var(--third-text);
}
main > .like > .name > a:hover {
  color: var(--color);
}
main > button.add-botton {
  margin-top: 20px;
  color: var(--third-text);
}
main > button.add-botton:hover {
  color: var(--color);
}
main > dialog.add-botton {
  padding: 25px;
  flex-direction: column;
  height: fit-content;
  gap: 20px;
}
main > dialog.add-botton > textarea {
  min-height: 120px;
}
/* Page widgets */

.widgets {
  display: flex;
  flex-flow: column;
  gap: 20px;
}
.widgets > .col {
  display: flex;
  flex-wrap: wrap;
  row-gap: 15px;
  column-gap: 20px;
  margin-bottom: 20px;
}
.widgets > .col > .title {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.widgets > .col > .title > label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  width: 100%;
}
.widgets > .col > .title > span {
  color: var(--third-text);
}
.widgets > .col > label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  width: 100%;
}
.widgets > .col > .example {
  display: flex;
  align-items: baseline;
  -webkit-align-items: baseline;
  width: 50%;
  overflow: hidden;
  position: relative;
}
.widgets > .chart > .example {
  height: 200px;
}

.widgets > .col > .info {
  display: flex;
  width: calc(100% - 50% - 20px);
}

.widgets > .col > .info > textarea {
  display: flex;
  align-self: baseline;
  cursor: pointer;
  resize: none;
  overflow: hidden;
  word-break: break-all;
}
@media screen and (max-width: 1250px) {
  .widgets > .col > .info > textarea {
    min-height: 70px;
  }
}
@media screen and (max-width: 860px) {
  .widgets > .col > .info > textarea {
    min-height: 90px;
  }
}
@media screen and (max-width: 710px) {
  .widgets > .col > .example {
    width: 100%;
  }
  .widgets > .col > .info {
    display: flex;
    width: 100%;
  }
  .widgets > .col > .info > textarea {
    min-height: 50px;
  }
}
@media screen and (max-width: 600px) {
  .widgets > .col > .info > textarea {
    min-height: 70px;
  }
}
@media screen and (max-width: 425px) {
  .widgets > .col > .info > textarea {
    min-height: 90px;
  }
}

/* Premium page Server  */

.premium {
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-justify-content: center;
  position: relative;
  height: calc(100vh - 80px);
}
.premium > .background {
  height: 100vh;
}
.premium > .background:after {
  z-index: 1;
}

.premium > .about {
  display: flex;
  flex-direction: column;
  z-index: 1;
  position: absolute;
  right: 10%;
  gap: 20px;
}
.premium > .about > .name {
  max-width: 500px;
}
.premium > .about > .description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}
.premium > .about > .description > p {
  color: var(--text);
}
.premium > .about > .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium > .avatar {
  position: absolute;
  bottom: 0;
  left: 5%;
}
.premium > .avatar > img {
  width: 100%;
  background-size: cover !important;
  max-height: 750px;
}
@media screen and (max-width: 1330px) {
  .premium > .avatar {
    left: -3%;
  }
}

@media screen and (max-width: 1050px) {
  .premium > .avatar {
    left: -10%;
  }
}

@media screen and (max-width: 950px) {
  .premium > .avatar {
    left: -20%;
  }
}

@media screen and (max-width: 870px) {
  .premium > .avatar {
    left: 0;
  }
  .premium > .about {
    bottom: 20px;
    text-align: center;
    left: 0;
    right: 0;
  }
  .premium > .about > .name,
  .premium > .about > .description {
    max-width: 100%;
    padding: 0 30px;
  }
  .premium > .about > .buttons {
    justify-content: center;
  }
  .premium > .scroll-down {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .premium {
    height: 600px;
    margin-bottom: 300px;
  }
  .premium > .about {
    top: 60%;
  }
}

.premium > .scroll-down {
  bottom: 0;
  height: 80px;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  z-index: 1;
  opacity: 0.2;
}
.premium > .scroll-down > .scroll-down-text {
  color: #d8d8d8;
  font-weight: 700;
}
.premium > .scroll-down > .scroll-down-bar {
  animation: elasticus 2s cubic-bezier(1, 0, 0, 1) infinite;
  background: #d8d8d8;
  bottom: 0;
  display: inline-block;
  height: 35px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  width: 2px;
}
@-moz-keyframes elasticus {
  0% {
    transform: scale(1, 0);
    transform-origin: 0% 0%;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0% 0%;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0% 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0% 100%;
  }
}
@-webkit-keyframes elasticus {
  0% {
    transform: scale(1, 0);
    transform-origin: 0% 0%;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0% 0%;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0% 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0% 100%;
  }
}
@-o-keyframes elasticus {
  0% {
    transform: scale(1, 0);
    transform-origin: 0% 0%;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0% 0%;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0% 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0% 100%;
  }
}
@keyframes elasticus {
  0% {
    transform: scale(1, 0);
    transform-origin: 0% 0%;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0% 0%;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0% 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0% 100%;
  }
}

/* Page Invite */

.counter {
  counter-reset: ms var(--number);
  animation: count 5s steps(5);
}
.counter::after {
  content: counter(ms);
}
@property --number {
  inherits: false;
  syntax: '<integer>';
  initial-value: 0;
}
@keyframes count {
  0% {
    --number: 5;
  }
}

.invite {
  display: flex;
  flex-direction: column;
  margin: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.invite > .logo {
  display: flex;
  align-items: baseline;
  -webkit-align-items: baseline;
  gap: 5px;
}
.invite > .logo > a {
  display: flex;
  align-items: center;
  -webkit-align-items: center;
  color: var(--third-text);
  gap: 5px;
}
.invite > .logo > a {
  font-size: var(--font-size-2xl);
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
.invite > .logo > a:hover {
  color: var(--color);
}
.invite > .logo > a > .info {
  writing-mode: vertical-lr;
  font-size: 9px;
  color: var(--color);
  margin-bottom: -2px;
  transform: rotateZ(180deg);
}
.invite > h2 {
  font-size: 40px;
}
@media screen and (max-width: 760px) {
  .invite > h2 {
    width: 100%;
    font-size: 30px;
  }
  .invite {
    margin: 30px auto 60px;
  }
}
