/* Search filters styling */
.filters {
    border-radius: 0 0 .7rem .7rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #60606050;
    /* Dark gray background, resembling metal */
    padding: 5px;
    border: 1px solid #404040;
    /* Slightly darker border for a rugged look */
    color: #f0f0f0;
    /* Light text for contrast */
    font-family: 'Courier New', Courier, monospace;
    /* Rustic font */

}

.filters div {
    padding: 0 3px;
    display: flex;
    align-items: center;
}

.filters label {
    margin-left: 10px;
    font-size: 1.3em;
    /* Increased font size for better readability */
}

.filters input[type="number"],
.filters input[type="checkbox"] {
    margin: 0 5px;
    border: 1px solid #404040;
    /* Dark border for inputs */
    background-color: #808080;
    /* Lighter gray for input fields */
    color: #f0f0f0;
    /* Light text color */
}

.filters input::placeholder {
    color: #ffffff;
    /* Replace with your desired color */
}

/* Adjust the maximum width for number input */
.filters input[type="number"] {
    padding: 3px;
    max-width: 30px;
    /* Adjusted for bigger size */
    font-size: 16px;
    -moz-appearance: textfield;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Customizing the checkbox to fit the Rust style */
.filters input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    /* Increased size by 40% */
    height: 26px;
    /* Increased size by 40% */
    border-radius: 3px;
    /* Adjusted rounding of corners */
    cursor: pointer;
}

.filters input[type="checkbox"]:checked {
    background-color: #a0522d;
    /* Earth tone color when checked */
}

/* Adding a hover effect for interactive elements */
.filters label:hover,
.filters input[type="number"]:hover,
.filters input[type="checkbox"]:hover {
    opacity: 0.8;
}

.filters button {
    width: 10%;
    background-color: gold;
    color: white;
    border: none;
    height: 100%;
    font-size: 20px;
}

#servers {
    height: 830px;
    overflow-y: scroll;
}

.showAll{
    margin: auto !important;
    width: 40% !important;
    height: 100% !important;
    background-color: #a0522d !important;
    font-size: 20px;
}

/* A server card */
.serverDiv {
    margin: auto;
    cursor: pointer;
    position: relative;
    transition: height 0.6s, padding 0.6s, opacity 0.5s;
    height: 110px;
    width: 95%;
    min-height: 110px;
    background-color: rgb(41, 41, 41);
    margin-top: 10px;
    padding: 10px;
    overflow: hidden;
}

.serverDiv p {
    font-size: 20px;
    color: rgba(160, 58, 58, 0.647);
}

.serverDiv h2 {
    font-size: 20px;
    width: calc(100% - 10px);
}

.serverDiv h2 span {
    display: inline-block;
    width: 80%;
    height: 28px;
    overflow: hidden;
}

.logo {
    width: 70px;
    height: 70px;
}

.serverDiv p span {
    color: rgba(255, 255, 255, 0.75);
}

.info-div {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.logo-div {
    width: fit-content;
}

.sort-right {
    display: flex;
    flex-direction: row;
}

.fadeAway {
    opacity: 0;
}

/* buttons */
.server-button {
    cursor: pointer;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 30px;
    line-height: 0px;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-decoration: none;
    z-index: 1000;
}

.fav {
    background-color: rgba(255, 217, 0, 0.351) !important;
    transition: background-color 0.2s !important;
}

.faved {
    background-color: gold !important;
}

.fav:hover {
    background-color: rgba(255, 217, 0, 0.792);
}

.copyconnect {
    background-color: rgb(255, 72, 0) !important;
}







/* For "You need to be logged in for this feature" */
.optionsH2 {
    text-align: center;
    padding-top: 5px;
    max-height: 60px;
}

.serverDiv .optionsH2 {
    height: 50%;
}

.choiseDiv {
    height: 40%;
}

.choise {
    text-decoration: none;
    color: white;
    font-size: 25px;
    width: 20%;
    height: 40px;
    line-height: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: red;
    font-family: "Bebas_Neue";
    min-width: max-content;
    cursor: pointer;
}

.choise:first-of-type {
    background-color: green;
}

.serverDiv .choiseDiv {
    display: flex;
    justify-content: space-evenly;
}

.normalInfo {
    z-index: 3;
}

.normalInfo,
.extraInfo {
    position: absolute;
    width: 98%;
}








/* Server opened styles */
.extraInfo {
    position: absolute;
    opacity: 0;
}

.extraInfo .top,
.extraInfo .bottom {
    display: flex;
    justify-content: space-between;
}

.extraInfo .top,
.extraInfo .items {
    border-bottom: 2px rgba(255, 255, 255, 0.478) solid;
}

.extraInfo h1 {
    border-bottom: 2px white solid;
}

.extraInfo .bottom {
    flex-direction: column;
}

.extraInfo .left,
.extraInfo .right,
.extraInfo .items {
    padding: 10px;
    flex-direction: column;
}

.extraInfo .left {
    width: 40%;
}

.extraInfo .right {
    width: 60%;
}

.extraInfo .left img {
    max-width: 100%;
    height: 140px;
}

.descriptionTitle {
    padding: 10px;
}

.extraInfo p {
    font-size: 20px;
}

.extraInfo h2 {
    font-size: 25px;
}

.extraInfo a {
    color: #0066cc;
    text-decoration: none;
}

.extraInfo .bottom>p {
    padding: 10px;
    font-style: italic;
    white-space: pre-line;
    height: 230px !important;
    overflow-y: scroll;
    color: rgba(255, 255, 255, 0.651);
}

.extraInfo button {
    color: white;
    cursor: pointer;
    font-family: "Bebas_Neue";
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 95%;
    background-color: rgb(255, 0, 0);
    transition: background-color 0.4s;
    border: none;
    bottom: 0;
    margin-top: 10px;
    margin: auto;
}

.serverDiv * {
    transition: opacity 0.5s ease;
}

.opacity0 {
    opacity: 0;
}

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

    50% {
        opacity: 0.6;
        transform: scale(0.6);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate {
    animation: myAnim 0.6s forwards;
}