@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    background-color: #00b4d8;
}

h1 {
    font-family: "Rowdies", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #caf0f8;
}

body::-webkit-scrollbar {
    display: none;
}

.main {
    align-items: center;
    margin-top: 8%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

#userlistcontainer {
    transform: scale(0.9);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1330px;
    border: 1px solid black;
    padding: 30px;
    background-color: #a2d2ff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.user-card {
    background-color: #219ebc;
    border: 1px solid black;
    /* Even darker for individual cards */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    /* Ensure consistent card height */
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px #578cd2;
}

.user-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #a2d2ff;
}

.user-card .username {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    /* Lighter purple for username */
    word-break: break-all;
    /* Break long usernames */
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loginwall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.wall-btn {
    display: flex;
    justify-content: center;
    gap: 0.5%;
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.wall-btn a {
    background: #4285F4;
    color: white;
    padding: 43px 20px;
    border-radius: 5px;
    text-decoration: none;
    position: relative;

}

.wall-btn h2 {
    color: #4285F4;
}
.back-button-container a{
    text-decoration: none;
    color: #caf0f8;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid black;
    background-color: #236ce1;
    cursor: pointer;
    transition: all ease 0.2s;
}
a:hover{

    box-shadow:0 3px 1px black;
}
a:active{
    transform: scaleX(0.97);
    box-shadow: none;
}