/* Rename the CSS file */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap');

.my-servers {
    display: flex;
    justify-content: center;
}

.my-card-list
{
    display: flex;
    padding: 3rem;
    /*flex-wrap: wrap; /* Add this line  This line wraps the servers when more are added*/
    justify-content: flex-start; /* Add this line */
}

.my-card-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.my-card-list::-webkit-scrollbar-thumb {
    background: #aacee0;
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px hsla(0,0%,100%,.25), inset -2px -2px 2px rgba(0,0,0,.25);
}

.my-card-list::-webkit-scrollbar-track {
    background: linear-gradient(90deg,#201c29,#201c29 1px,#17141d 0,#17141d);
}

.my-card {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 350px;
    width: 250px;
    min-width: 250px;
    background-size: cover !important;
    border-radius: 15px;
    background: #aacee0;
    box-shadow: -1rem 0 3rem #000;
    transition: .2s;
    justify-content: space-between; /* Add this line */
}

.my-card-title {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: white;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.my-card-buttons {
    margin-top: auto;
    display: flex; /* Added: Enable flexbox layout */
    justify-content: center; /* Updated: Center buttons horizontally */
    gap: 0.5rem; /* Added: Add spacing between buttons */
    left: 50%;
}

.my-card-button.copy::after {
    content: 'Copied';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(237, 28, 36, 0.2);
    color: white;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.my-card-button.copy.show-message::after {
    opacity: 1;
}

.my-card-button {
    padding: 0.5rem 1rem;
    background-color: transparent; /* Update background color */
    color: white;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.my-card-button::before {
    content: '\f0c5';
    font-family: 'FontAwesome';
    font-size: 0.8rem;
}

.my-card-button.copy::before {
    content: '\f0c5';
}

.my-card-button.join::before {
    content: '\f0c0';
}

.my-card-button:hover {
    background-color: rgba(237, 28, 36, 0.2); /* Update hover background color */
}

.my-card-content {
    flex-grow: 1; /* Add this line */
}
.my-card-author {
    position: relative;
    display: grid;
    grid-template-columns: 75px 1fr;
    align-items: center;
    margin: 3rem 0 0;
}
.my-card-header
{
    font-size: 30px;
    font-weight: 700;
    position: relative;
    align-items: center;
    color: white;
    text-transform: uppercase;
    font-family: 'DM Mono', monospace;
    text-shadow: 4px 4px 8px black;
    margin: 20rem 0rem 0;
    text-align: center;
}

.my-card:hover {
    transform: translateY(-1.5rem);
}

.my-card:hover~.my-card {
    /*transform: translateX(130px);*/
}


.my-card:not(:first-child) {
    /*margin-left: -35px;*/
}

.my-tags {
    text-align: center;
}

.my-tags a {
    font-style: normal;
    font-weight: 700;
    font-size: .5rem;
    color: white;
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    font-size: .66rem;
    text-shadow: 4px 4px 8px black;
    border: 3px solid #000;
    border-radius: 2rem;
    padding: .2rem .85rem .25rem;
    position: relative;
}

.my-tags a:hover {
    background: linear-gradient(90deg,#a4d0df,#2dc1e7);
    text-shadow: none;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-box-decoration-break: clone;
    background-clip: text;
    border-color: white;
}

.large-text {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 4px 4px 8px black;
    color: whitesmoke;
    text-align: center;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .my-servers {
        overflow-x: scroll;
    }
}
@media (max-width: 768px) {
    .my-card-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .my-card {
        margin: 0;
    }
    .my-card:not(:first-child) {
        margin-left: 0;
    }
    .my-card:hover~.my-card {
        transform: translateX(0);
    }
    .my-card-buttons {
        margin-top: 0;
    }
    .my-card-content {
        padding: 1rem;
    }
    .my-card-author {
        margin: 0;
    }
    .my-card-title {
        font-size: 1rem;
    }
    .my-card-button {
        font-size: 1rem;
    }
    .my-card-button::before {
        font-size: 1.2rem;
    }
    .my-card-button.copy::after {
        font-size: 1rem;
    }
    .my-card-button.join::before {
        font-size: 1.2rem;
    }
    .my-tags a {
        font-size: .75rem;
    }
    .large-text {
        font-size: 6em;
    }
}


