* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
}

:root {
    color-scheme: dark;
}

html {
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    background-image: url('../img/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    zoom: 80%;
}

input {
    border-color: black !important;
    display: block;
    background-color: rgba(255, 255, 255, 0.07) !important;
    min-width: 400px;
}

input[type="text"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="email"]:-webkit-autofill {
    /* box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.07) inset !important; */
    -webkit-box-shadow: 0 0 0 1000px rgba(100, 100, 100, 0.356) inset !important;
    box-shadow: 0 0 0 1000px rgba(100, 100, 100, 0.356) inset !important;
}

select {
    border-color: black !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: black !important;
    min-width: 400px;
}

select:focus {
    background-color: gainsboro !important;
}

textarea {
    border-color: black !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    min-width: 400px;
    resize: none;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
    /* color: aqua; */
}

ul {
    list-style-type: none;
}

li {
    list-style-type: none;
    white-space: nowrap;
}

footer {
    background-color: rgb(39, 39, 39);
    /* margin: 0.5em; */
    min-height: 4.3vh;
    color: #717790;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
}

.footer-link {
    text-decoration: none;
    color: #414450;
}

.alert {
    width: max-content;
}

.alert-danger,
.alert-success {
    display: none;
}

button {
    background: none;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
}

.btn.sharp {
    border-radius: 0;
}

/* Remove custom dropdown styles and let Bootstrap handle it */
.dropdown-header {
    pointer-events: none;
}

.row-dropdown {
    display: flex;
    flex-wrap: nowrap;
}

.category-item:hover {
    border-radius: 5px;
}

.category-item a {
    color: #CDCCCB;
    text-decoration: none;
    white-space: nowrap;
}

.res-clock {
    margin-right: 15px;
    cursor: pointer;
}

.content {
    display: flex;
    background-color: transparent;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    min-height: 110vh !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    padding-bottom: 20px;
    padding-top: 20px;
}


#form-register {
    border-radius: 3px;
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 50px 35px;
    transition: all 0.3s ease-in-out;
}

#form-login {
    border-radius: 3px;
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 50px 35px;
    transition: all 0.3s ease-in-out;
}

#email,
#password,
#confirm_password,
#site_title,
#site_url,
#banner_url {
    width: 100%;
    /* max-width: 360px; */
    height: 40px;
    padding: 1px;
    border-radius: 0;
}

#short_desc {
    width: 100%;
    max-width: 360px;
    border-radius: 0;
}

#full_info {
    width: 100%;
    max-width: 360px;
    border-radius: 0;
}

.form-text {
    /* color: #414450 !important; */
    color: #414450 !important;
}

.login-card {
    padding-top: 200px;
}

.register-card {
    padding-top: 200px;
}

.card-title.rank {
    margin: 15px;
}

.row {
    margin: 30px auto 5px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 20px 0;
    min-width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.details-card {
    display: flex;
    gap: 8px;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    /* min-height: 110vh !important; */
    width: 100%;
    justify-content: center;
    max-width: 100%;
    /* margin: 0 auto; */
    border-radius: 5px;
}

.right-section {

}

.left-section {

}
/* 
.details-row {
    display: flex;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 20px;
    cursor: pointer;
} */

.server-details {
    margin: 0 150px 300px 150px;
}

.section-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#full_info {
    margin-top: 50px;
}

#site_url {
    margin-left: 130px;
    margin-top: 60px;
    font-size: larger;
}

.vote-desc-box {
    display: flex;
    justify-content: space-between;
    padding-right: 30px;
}

.vote-details-btn {
    margin-top: 20px;
    text-align: center;
}

.site-title a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
}

.rank {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    height: auto;
}

.pages {
    color: #023020;
}

.box-rank {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    text-wrap: nowrap;
    min-width: 75px;
}

.box-votes {
    text-align: center;
    vertical-align: middle;

    width: 10%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-wrap: nowrap;
    font-size: 20px;
    padding: 18px 0;
    margin-left: 50px;
}

.privacy {
    display: inline-block;
    text-align: center;
}

.gold-membership {
    color: rgb(246, 0, 20);
}

.desc-control {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.form-details {
    color: rgb(18, 124, 195);
    padding-left: 3px;
    text-decoration: none;
}

.form-select {
    width: 230px;
}

.account-options {
    margin: 30px auto;
}

.col-rank {
    width: fit-content;
}

.col-server {
    width: 100%;
    max-width: 728px;
    padding: 10px;
}

.box-server img {
    width: 100%;
    max-width: 728px;
    height: auto;
    border-radius: 5px;
}

.col-votes {
    text-align: center;
    vertical-align: middle;
    width: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-wrap: nowrap;
}


.container-rank {
    min-height: 900px;
}

.container-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container-pages>* {
    flex: 1 1 auto;
    min-width: 0;
}

.page-btn {
    background: #ddd;
    color: #2c303a;
    height: 35px;
    border-radius: 2px;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3 ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.page-btn:not([class$="-page"]) {
    width: 35px;
}

.page-btn[class$="-page"] {
    background: #ccc;
    font-size: 0.6em;
    font-weight: bold;
}

.page-btn.active {
    background: #717790;
    color: #fff;
}

.page-btn[disabled] {
    opacity: 0.3;
}

.spinner {
    margin-bottom: 10px;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner>div {
    background-color: #333;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {

    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1.0);
    }
}

@keyframes sk-stretchdelay {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

@media (min-width: 993px) {
    .row {
        min-width: 907px;
    }

    .box-votes {
        margin-right: 30px;
    }
}


@media (max-width: 992px) {
    .details-card {
        display: flex;
        flex-direction: column;
    }
    .row {
        flex-direction: column;
        padding: 10px;
    }

    .col-server,
    .col-votes {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .col-votes {
        padding: 10px;
        margin-right: 0;
    }

    .box-server img {
        width: calc(100% - 20px);
        max-width: none;
    }

    #short_desc {
        width: 100%;
        max-width: 100%;
    }

        #full_info {
        width: 100%;
        max-width: 100%;
    }

    .container-pages {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

@media(max-width: 768px) {
    .navbar .dropdown-menu {
        max-height: 300px;
        overflow-y: scroll;
        display: flex;
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.3s linear;
    }
}

.details-card {
    padding: 30px 10px;
}

.server-details {
    margin: 0;
}

.box-votes {
    margin-left: 0;
    justify-content: center;
    font-size: 16px;
    width: 100%;
}

.vote-desc-box {
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    text-align: center;
}

.site-title a {
    font-size: 1.2rem;
}

#full_info {
    margin-top: 30px;
}

#site_url {
    margin-left: 0;
    margin-top: 20px;
    display: block;
    font-size: 14px;
    word-break: break-all;
}

@media (max-width: 480px) {
    .navbar .dropdown-menu {
        max-height: 300px;
        overflow-y: scroll;
    }

    .box-server img {
        width: calc(100% - 20px);
        max-width: none;
    }

    .container-pages {
        margin: 5px;
        width: calc(100% - 20px);
    }

    .page-btn {
        padding: 0 5px;
        font-size: 0.8em;
    }

    .page-btn:not([class$="-page"]) {
        width: 30px;
    }

    footer {
        width: calc(100% - 20px);
    }
}

/* Login button hover effect */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  width: 50px;   /* Make the circle bigger */
  height: 50px;  /* Make the circle bigger */
  padding: 0;    /* Remove extra padding, handled by width/height */
}

.login-btn img {
  width: 32px;   /* Icon size inside the circle */
  height: 32px;
}

.login-btn:hover {
  background: rgba(10, 10, 10, 0.3); /* Super dark gray, 50% opacity */
}

input[type="checkbox"]#rememberMe {
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
  }

.login-input, .register-input {
  height: 56px;
  font-size: 1.35rem;
  padding: 0.5rem 1rem;
}

h1.card-title.rank {
    line-height: 1.2;
    font-weight: bold;
}