* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body,
html {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    touch-action: pan-y;
    -ms-touch-action: pan-y;
    overflow-x: hidden;
    background: radial-gradient(circle at top, #1e293b, #020617);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    color: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 59000;
    place-content: center;
    border-bottom: 1px solid #334155;
}

.player {
    max-width: 100%;
    place-self: center;
}

nav .title {
    font-size: 34px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2563eb;
}

#menutoggle {
    display: none;
}

.menutoggle-icon {
    display: none;
    position: fixed;
    top: 18px;
    left: 20px;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 101;
}

.menutoggle-icon span {
    display: block;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100%;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    padding: 70px 20px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 99;
}

@media screen and (max-width: 768px) {
    .menutoggle-icon {
        display: flex;
    }

    nav ul.desktop {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .nav {
        display: none;
    }
}

.nav ul {
    flex-direction: column;
}

.nav li {
    margin-bottom: 25px;
}

#menutoggle:checked~.nav {
    left: 0;
}

#menutoggle:checked+.menutoggle-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
}

#menutoggle:checked+.menutoggle-icon span:nth-child(2) {
    opacity: 0;
}

#menutoggle:checked+.menutoggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-14px);
}

h1 {
    margin-bottom: 20px;
    font-size: 38px;
    color: rgb(0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rules-container {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 250px auto;
    background-color: #0f172a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rules-container1 {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    background-color: #0f172a;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: height 6s ease;
}

#searchInput {
    position: absolute;
    width: 100%;
    max-width: 280px;
    margin-top: -20px;
    padding: 8px 12px;
    border-radius: 5px;
    background: none;
    color: rgb(172, 172, 172);
    border: none;
}

#searchInput1 {
    display: block;
    margin: 150px auto -185px auto;
    width: 100%;
    max-width: 280px;
    padding: 8px 12px;
    border-radius: 5px;
    background: none;
    color: rgb(172, 172, 172);
    border: none;
    z-index: 60001;
}

.pretrazi {
    position: absolute;
    height: 2px;
    width: 280px;
    margin-top: 10px;
    border: 1px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.pretrazi1 {
    position: absolute;
    height: 2px;
    width: 280px;
    place-self: center;
    align-self: center;
    margin-bottom: -370px;
    border: 1px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    color: white;
}

#searchInput:focus+.pretrazi {
    border: 1px solid green;
}

#searchInput1:focus {
    outline: none;
    color: white;
}

#searchInput1:focus+.pretrazi1 {
    border: 1px solid green;
}

@media (max-width: 768px) {
    .rules-container1 {
        flex-direction: row;
        justify-content: space-between;
    }

    #searchInput {
        margin-bottom: 10px;
    }
}

.rule {
    flex: 1;
    margin: 0 15px;
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
    background: none;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rule h2 {
    font-size: 24px;
    margin-bottom: 20px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 30px;
    }

    .rule {
        font-size: 16px;
        margin: 10px 0;
    }

    .rules-container {
        flex-direction: column;
    }

    .rules-container1 {
        flex-direction: column;
    }
}

.img {
    width: 150px;
    margin-top: 150px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.Pravila {
    text-decoration: underline;
    text-decoration-color: rgba(0, 153, 255, 0.9);
    ;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p {
    font-size: medium;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.status-badge {
    display: inline-block;
    border-radius: 10px;
    width: 350px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.Pocetna {
    text-decoration: underline;
    text-decoration-color: rgba(0, 153, 255, 0.9);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#server-status {
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    margin-top: 10px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    #server-status {
        font-size: 18px;
        padding: 8px;
        width: auto;
        margin-top: 8px;
    }
}

.pulse {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: green;
    border-radius: 60%;
    position: relative;
    animation: pulseAnimate 1s infinite;
    margin-right: 6px;
}

@keyframes pulseAnimate {
    0% {
        transform: scale(1);
        opacity: 3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

#timer {
    font-size: 2em;
}

h2 {
    color: white;
    margin-bottom: 20px;
}

#igraclista {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.igrac-kartica {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    padding: 20px;
    width: 100%;
    height: 155px;
    max-width: 220px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.35s ease;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.count {
    position: relative;
}

.igrac-kartica:hover {
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(45deg, rgba(0, 68, 255, 0.233), rgba(2, 223, 13, 0.267), rgba(0, 110, 255, 0.274));
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.igrac-kartica:active {
    transform: scale(0.98);
}

.igrac-kartica h3 {
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.igrac-kartica p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 12px;
}

.fa-star {
    font-size: 18px;
    color: #f1c40f;
    margin: 0 2px;
    transition: transform 0.2s, color 0.2s;
}

.fa-star:hover {
    transform: scale(1.3);
    color: #ffd700;
}

.rating {
    margin-top: 10px;
}

.igrac-kartica {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.igrac-kartica .igrac-id {
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.igrac-kartica .igrac-number {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    border-radius: 50px;
}

::-webkit-scrollbar-track {
    background: rgb(65, 65, 65);
    border-radius: 20px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: #203c7c;
    height: 5px;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a7c;
    border: 50px;
}

/* Svijetlo */
.light-mode .btn4 {
    background-color: rgba(0, 0, 0, 0.541);
    color: black;
}

.light-mode .btn4.active {
    background-color: blue;
    color: white;
}

.light-mode {
    background-color: #f5f5f5;
    color: black;
}

.light-mode nav,
.light-mode nav a,
.light-mode nav .title,
.light-mode section,
.light-mode .setting,
.light-mode .info div,
.light-mode .sidebar,
.light-mode nav h1,
.light-mode .rules-container,
.light-mode .rules-container1 {
    background: #ffffff;
    color: #111111;
}

.light-mode #searchInput {
    color: rgb(68, 68, 68);
}

.light-mode #searchInput:focus {
    color: black;
}

.light-mode .server {
    color: black;
}

.light-mode .pretrazi {
    border: 1px solid black;
}

.light-mode .menutoggle-icon span {
    background: black;
}

.light-mode input {
    border: 1px solid #ccc;
    background: white;
}

.dark-mode {
    background-color: #0f172a;
    color: white;
}

.dark-mode input {
    border: 1px solid #353535;
    background: #0f172a;
    color: white;
}

.dark-mode nav,
.dark-mode .nav .dark-mode nav a,
.dark-mode nav.title,
.dark-mode section,
.dark-mode .setting,
.dark-mode nav h1 {
    background-color: #0f172a;
    color: white;
}

.dark-mode .menutoggle-icon span {
    background: white;
}

.dark-mode .server {
    color: white;
}

.dark-mode .btn4 {
    background-color: rgba(39, 39, 39, 0.753);
    color: white;
}

.dark-mode .btn4.active {
    background-color: blue;
    color: black;
}

.refreshbtn {
    padding: 7px 20px 7px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: rgb(89, 90, 90);
    border: none;
    cursor: pointer;
    color: white;
}

.refreshbtn:hover {
    animation: Sirena 0.15s infinite alternate;
}

.switch {
    place-self: center;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.server {
    color: white;
    margin-top: 200px;
}

#ime {
    color: white;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f50000;
    transition: .4s;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    opacity: 0.9;
    border-radius: 50%;
}

#toggleMonitor:checked+.slider {
    background-color: #4CAF50;
}

#toggleMonitor:checked+.slider::before {
    animation: slideRight 0.7s forwards;
}

#toggleMonitor:not(:checked)+.slider::before {
    animation: slideLeft 0.7s forwards;
}

@keyframes slideRight {
    0% {
        transform: translateX(0) rotate(90deg);
        border-radius: 50%;
    }

    50% {
        transform: translateX(13px) rotate(180deg);
        border-radius: 5px;
    }

    100% {
        transform: translateX(26px) rotate(360deg);
        border-radius: 50%;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(26px) rotate(360deg);
        border-radius: 50%;
    }

    50% {
        transform: translateX(13px) rotate(180deg);
        border-radius: 5px;
    }

    100% {
        transform: translateX(0) rotate(90deg);
        border-radius: 50%;
    }
}

#toggleMonitor:checked+.slider .refreshslider {
    transform: translateX(26px) rotateZ(360deg);
}

.refreshslider {
    position: relative;
    color: black;
    top: 2.6px;
    left: -12.7px;
    z-index: 1000;
    transition: all 0.4s ease;
}

.automatski {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 5px 5px 5px;
    width: 141px;
    display: flex;
    margin-bottom: -15px;
    place-self: center;
    justify-content: center;
    text-align: center;
    justify-self: center;
    align-self: center;
}

.kopirano {
    position: fixed;
    max-width: 450px;
    height: 300px;
    display: flex;
    flex-direction: row;
    top: 40%;
    place-self: center;
    flex-direction: row;
    background: #0f172a;
    border-radius: 20px;
    align-items: center;
    place-content: center;
    text-align: center;
}

.kopirano button {
    padding: 10px 20px 10px;
    margin-bottom: -190px;
    margin-top: 40px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#ime {
    padding: 20px 30px;
}

.cijelo {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(90, 90, 90, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
    overflow-y: hidden;
    overflow-x: hidden;
}

.infotxt {
    align-self: center;
    margin-bottom: 70px;
    margin-top: -70px;
    text-align: center;
    place-self: center;
    font-size: 30px;
    display: flex;
}

.refresh {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    font-family: sans-serif;
    color: #fff;
    background-color: #102741;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s;
}

.refresh:hover {
    background-color: #0056b3;
}

.refresh .icon {
    position: absolute;
    left: -30px;
    transition: all 0.3s ease;
    opacity: 0;
}

.refresh:hover .icon {
    left: 10px;
    transform: rotateZ(560deg);
    opacity: 1;
}

.refresh .icon1 {
    position: absolute;
    left: -30px;
    transition: all 0.3s ease;
    opacity: 0;
}

.refresh:hover .icon1 {
    left: 10px;
    transform: rotateZ(360deg);
    opacity: 1;
}

.refresh span {
    margin-left: 0px;
    transition: margin-left 0.3s ease;
}

.refresh:hover span {
    margin-left: 20px;
}

.close:hover span {
    margin-left: 40px;
}

footer {
    text-align: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid #334155;
    bottom: 0;
    width: 100%;
    margin-top: 150px;
    color: #e2e8f0;
}

footer a {
    color: #0051ff;
    text-decoration: none;
}

footer a:hover {
    color: #1847ac;
}

#ptr-container {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000000000000000000000;
    transition: top 0.2s ease;
}

.ptr-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #444;
    border-top: 3px solid #00ffcc;
    border-radius: 50%;
    animation: ptr-spin 1s linear infinite;
}

@keyframes ptr-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.saveserver {
    position: fixed;
    top: 0;
    height: 100%;
    text-align: center;
    padding: 90px 30px;
    min-width: 100%;
    background: #0f172a;
    place-content: center;
    place-self: center;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    z-index: 60000;
    transition: all 0.3s ease;
}

.saveserver input {
    position: absolute;
    top: 390px;
    width: 280px;
    padding: 8px 12px;
    border-radius: 5px;
    background: none;
    color: rgb(172, 172, 172);
    border: none;
}

.saveserver button {
    cursor: pointer;
}

.logout {
    position: fixed;
    right: 50px;
    padding: 10px 15px;
    border-radius: 10px;
    background: red;
    border: none;
    color: white;
    cursor: pointer;
}

.login {
    position: fixed;
    right: 50px;
    padding: 10px 15px;
    border-radius: 10px;
    background: green;
    border: none;
    color: white;
    cursor: pointer;
}

.saveserver button {
    margin: 20px;
    padding: 10px 20px;
    place-self: center;
    border-radius: 20px;
    border: none;
}

.savebuttons {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 59000;
    place-content: center;
}

.savedservers {
    position: fixed;
    width: 100%;
    padding: 0;
    top: 0;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    z-index: 5000000000;
    transition: all 0.3s ease;
}

.close-btn {
    bottom: 50px;
    position: absolute;
}

.saved-server {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
}

.container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 700000000;
    top: 0;
    left: 0;
    text-align: center;
    padding: 20px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    place-content: center;
    align-items: center;
    justify-content: center;
}

.logincontainer {
    place-self: center;
    align-self: center;
    justify-self: center;
    padding: 30px;
    width: 450px;
    height: 350px;
    background: #102741;
    border-radius: 20px;
}

.logincontainer input {
    display: flex;
    flex-direction: column;
    place-self: center;
    margin: 20px 0 -5px 0;
    padding: 10px 10px;
    left: 0;
    width: 250px;
    color: white;
    border-radius: 10px;
    border: none;
    outline: none;
    background: none;
}

.hr:nth-child(2) {
    margin-bottom: 20px;
}

.logincontainer input:autofill {
    border: none;
    outline: none;
    background: none;
}

.container .hr {
    width: 250px;
    place-self: center;
    transition: all 0.3s ease;
    border: 1px solid white;
    margin-bottom: 20px;
}

#email:focus+.hr {
    border: 1px solid green;
}

#password:focus+.hr {
    border: 1px solid green;
}

.logincontainer button {
    margin: 10px 20px;
    border-radius: 20px;
    width: 100px;
    text-align: center;
    place-self: center;
    border: none;
    cursor: pointer;
}

.app {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    left: 20px;
    font-family: sans-serif;
    color: #fff;
    background-color: #102741;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s;
}

.app:hover {
    background-color: #0056b3;
}

.app .icon {
    position: absolute;
    left: -30px;
    transition: all 0.3s ease;
    opacity: 0;
}

.app:hover .icon {
    left: 10px;
    transform: rotateZ(360deg);
    opacity: 1;
}

.app span {
    margin-left: 0px;
    transition: margin-left 0.3s ease;
}

.app:hover span {
    margin-left: 20px;
}

#saveerror {
    position: absolute;
    top: 300px;
    text-align: center;
    place-self: center;
    align-self: center;
}

#error {
    text-align: center;
    place-self: center;
    align-self: center;
}

#app-version {
    position: absolute;
    right: 40px;
}

.serverInfoPanel {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 0;
    padding: 50px;
    border-radius: 12px;
    background-color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(100%);
    opacity: 0;
    z-index: 10;
}

.serverInfoPanel h4 {
    margin-bottom: 20px;
}

#owneravatar {
    width: 26px;
    height: 26px;
    margin-top: -2px;
    border-radius: 0px;
    transition: all 0.3s ease;
}

.serverInfoPanel.active {
    transform: translateX(0);
    opacity: 1;
}

.serverInfoPanel.slide-out {
    transform: translateX(100%);
    opacity: 0;
}

.activebtn {
    background: #0056b3;
}

.ownerprofile {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    color: white;
    text-decoration: none;
}

.ownerprofile:hover {
    color: #0056b3;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.ownerprofile:hover #owneravatar {
    border-radius: 50%;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .app {
        display: none;
    }
}

.footerhr {
    margin: 20px 0 20px 0;
    border: 0.5px solid rgba(107, 107, 107, 0.253);
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    width: 100px;
    height: 100px;
    padding: 10px 16px;
    margin: 0 0 20px 0;
    color: white;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0f172a;
    left: -150px;
    top: 12px;
    color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #0056b3;
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.show {
    display: block;
}

.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    clip-path: inset(0 3ch 0 0);
    animation: l4 1s steps(4) infinite;
}

@keyframes l4 {
    to {
        clip-path: inset(0 -1ch 0 0)
    }
}

.langs {
    position: absolute;
    place-self: center;
    align-self: center;
    bottom: 5px;
    left: 0;
    border-radius: 0px;
    border: none;
    background: #0f172a;
    color: white;
    width: 100px;
    cursor: pointer;
}

.langs::selection,
.langs:focus,
.langs:active {
    border: none;
}

.langs::-webkit-scrollbar {
    width: 3px;
}

#topbtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #16223f;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

#topbtn:hover {
    background-color: #555;
}

#bottombtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #16223f;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

#bottombtn:hover {
    background-color: #007bff;
    ;
}

#bottombtn:hover .downicon {
    color: #16223f;
}

#topbtn:hover {
    background-color: #007bff;
}

#topbtn:hover .upicon {
    color: #16223f;
}

.downicon,
.upicon {
    color: #007afd;
}

#server-banner {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

@media screen and (max-width: 479px) {
    nav {
        padding: 15px 20px;
    }

    nav .title {
        font-size: 26px;
    }

    #bottombtn,
    #topbtn {
        bottom: 100px;
    }

    .rules-container {
        margin: 180px 15px auto;
        padding: 15px;
    }

    .rules-container1 {
        padding: 30px 15px;
        margin: 20px 15px;
    }

    #searchInput1 {
        max-width: 260px;
        margin: 120px auto -170px auto;
    }

    .pretrazi1 {
        width: 260px;
        margin-bottom: -340px;
    }

    .status-badge {
        width: 100%;
        max-width: 320px;
    }

    .igrac-kartica {
        max-width: 100%;
        height: auto;
        padding: 15px;
    }

    .img {
        width: 130px;
        margin-top: 120px;
    }

    footer {
        padding: 15px 10px;
    }

    .logout,
    .login {
        right: 20px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .serverInfoPanel {
        padding: 30px 15px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    nav {
        padding: 15px 30px;
    }

    .rules-container {
        max-width: 900px;
        margin: 220px auto;
    }

    .rules-container1 {
        max-width: 900px;
    }
}

@media screen and (min-width: 1200px) {

    .rules-container,
    .rules-container1,
    .serverInfoPanel {
        max-width: 1280px;
    }

    nav .title {
        font-size: 40px;
    }

    .igrac-kartica {
        max-width: 230px;
    }
}

@media screen and (min-width: 1600px) {

    .rules-container,
    .rules-container1,
    .serverInfoPanel {
        max-width: 1400px;
    }

    .igrac-kartica {
        max-width: 250px;
    }

    nav .title {
        font-size: 42px;
    }
}

body,
html {
    padding-top: 70px !important;
}

.rules-container {
    margin: 90px auto 30px !important;
}

.rules-container1 {
    margin: 20px auto !important;
    padding: 25px 20px !important;
}

#searchInput1 {
    margin: 90px auto 20px auto !important;
    max-width: 92% !important;
    width: 92% !important;
}

.pretrazi1 {
    width: 92% !important;
    margin-bottom: 0 !important;
    position: static !important;
}

#server-banner {
    height: auto !important;
    max-height: 220px !important;
}

.server {
    margin-top: 30px !important;
}

.img {
    margin-top: 30px !important;
}

.status-badge {
    width: 92% !important;
    max-width: 92% !important;
}

.igrac-kartica {
    max-width: 100% !important;
    height: auto !important;
    padding: 18px !important;
}

@media (max-width: 768px) {
    .rules-container {
        margin: 70px 15px 20px !important;
        padding: 18px !important;
    }

    .rules-container1 {
        padding: 18px 15px !important;
        margin: 15px 15px !important;
    }

    #searchInput1 {
        margin: 70px auto 15px auto !important;
    }

    .pretrazi1 {
        margin-bottom: 0 !important;
    }

    nav {
        padding: 15px 15px !important;
    }

    nav .title {
        font-size: 28px !important;
    }

    .refresh {
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
    }

    .serverInfoPanel {
        padding: 20px 15px !important;
    }
}

@media (max-width: 480px) {
    nav .title {
        font-size: 24px !important;
    }

    #searchInput1 {
        max-width: 100% !important;
    }

    .pretrazi1 {
        width: 100% !important;
    }
}