body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #52489c;
}

@keyframes glow {
    20% {
        background-color: rgb(241, 231, 64);
    }
    80% {
        background-color: rgb(241, 231, 64);
    }
    99% {
        background-color: none;
    }
}

@keyframes load {
    from {
        margin-top: 150%;
    }
    to {
        margin-bottom: 0%;
    }
}

.load-box {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(82, 72, 156);
    width: 100%;
    height: 100vh;
}

.profile-box {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    width: 15%;
    color: #f8f1ff;
}

.profile-box .profile-pic {
    width: 35%;
    height: auto;
}

.profile-box .name-text {
    font-size: 30px;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 10%;
}

.header .logo {
    width: 10%;
    height: auto;
    animation-name: load;
    animation-duration: 1s;
}

.signup {
    position: fixed;
    left: calc((100% - 20%) / 2);
    top: 50px;
    display: flex;
    text-align: center;
    justify-content: center;
    width: 20%;
    min-height: 20%;
    padding: 10px;
    border-radius: 10px;
    flex-direction: column;
    background-color: rgb(71, 50, 138);
    box-shadow: 3px solid black;
    color: #f8f1ff;
    animation-name: load;
    animation-duration: 1.2s;
}

.signup .item {
    width: 90%;
    padding: 5px;
    border-radius: 4px;
    border: 3px solid transparent;
    margin: 1%;
    background-color: #1b998b;
    color: #f8f1ff;
}

.signup #submit {
    background-color: #1b6f99;
    margin-top: 4%;
    width: 100%;
}

.header #origin {
    color: rgb(0, 155, 88);
    font-size: 30px;
}

a {
    color: rgb(0, 156, 89);
}

footer a{
    color: rgb(0, 64, 36);
}

footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    font-size: 10px;
    background-color: #786cd5;
    color: #c7c0ff;
    animation-name: load;
    animation-duration: 1s;
}

#servers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-height: 400px
}

#server {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 23%;
    margin: 1%;
    padding: 20px;
    border-radius: 10px;
    background-color: #1b998b;
    color: #f8f1ff;
    margin-left: 2.8%;
    margin-right: 2.8%;
}

#server #join {
    width: 20%;
    background-color: #07884c;
    padding: 15px;
    border-radius: 10px;
    color: #f8f1ff;
    border: 0;
}

#items-choice {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    width: 18%;
    margin-left: calc((100% - 18%) / 2);
    margin-bottom: 2%;
}

#items-choice .dot {
    color: #beaeff8b;
}

#items-choice .item {
    align-items: center;
    background: #ffffff50;
    border: 0;
    border-radius: 8px;
    box-shadow: -10px -10px 30px 0 #d5a4ff7a, 10px 10px 30px 0 #c078ff79;
    color: #655f82;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    justify-content: center;
    padding: 1px;
    position: relative;
    text-align: left;
    transition: .2s;
    user-select: none;
    -webkit-user-select: none;
    height: 5px;
}

#items-choice .item:hover, #filters #input:hover{
    background: #f8f8ff;
    box-shadow: -15px -15px 30px 0 #52489c, 15px 15px 30px 0 #52489c;
}

#items-choice #selected {
    background: #f8f8ff;
    box-shadow: -15px -15px 30px 0 #52489c, 15px 15px 30px 0 #52489c;
}

@media (min-width: 768px) {
    #items-choice .item {
        padding: 20px;
    }
}

/* Media Queries for responsiveness */

/* For small screens such as phones */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Adjust font size for better readability on smaller screens */
    }

    .profile-box {
        width: 90%; /* Occupy more width on smaller screens */
        position: static; /* Remove fixed positioning for better flow */
        margin: 10px auto; /* Center the profile box */
    }

    .header .logo {
        display: none; /* Hide the logo on small screens */
    }

    .signup {
        width: 90%; /* Occupy more width on smaller screens */
        left: 5%; /* Adjust the left margin */
    }

    #items-choice {
        width: 90%; /* Occupy more width on smaller screens */
        margin: 10px auto; /* Center the items choice */
    }

    #items-choice .item {
        font-size: 0.8rem; /* Reduce font size for better fit on smaller screens */
        padding: 10px; /* Adjust padding for better spacing */
    }
}

/* For even smaller screens such as older phones */
@media (max-width: 480px) {
    .profile-box {
        width: 95%; /* Occupy even more width on smaller screens */
    }

    .signup {
        width: 95%; /* Occupy even more width on smaller screens */
        left: 2.5%; /* Further adjust the left margin */
    }

    #items-choice {
        width: 95%; /* Occupy even more width on smaller screens */
        margin: 5px auto; /* Center the items choice */
    }

    #items-choice .item {
        font-size: 0.7rem; /* Further reduce font size for better fit on smaller screens */
        padding: 8px; /* Adjust padding for better spacing */
    }
}

#message-modify{
    position: fixed;
    top: 0;

    display: flex;
    align-items: center;
    
    background-color: #786cd5;
    width: 99%;
    padding: 1vh;
    height: 10vh;
    visibility: hidden;
}

#message-modify #input{
    width: 90%;
    padding: 5px;
    border-radius: 4px;
    border: 3px solid transparent;
    margin: 1%;
    background-color: #1b998b;
    color: #f8f1ff;
}

@keyframes messageShow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#message {
    animation: messageShow 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

#filters{
    display: flex;
    justify-content: center;
}

#filters #input{
    align-items: center;
    background: #ffffff50;
    border: 0;
    border-radius: 8px;
    background: #f8f8ff;
    box-shadow: -15px -15px 30px 0 #776dc0, 15px 15px 30px 0 #52489c;    color: #655f82;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    justify-content: center;
    padding: 1px;
    position: relative;
    text-align: left;
    transition: .2s;
    user-select: none;
    -webkit-user-select: none;
    height: 50px;
    min-width: 30%;
    margin-right: 1%;

}

#filters #lang{
    align-items: center;
    background: #ffffff50;
    border: 0;
    border-radius: 8px;
    background: #f8f8ff;
    box-shadow: -15px -15px 30px 0 #776dc0, 15px 15px 30px 0 #52489c;    color: #655f82;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    justify-content: center;
    padding: 1px;
    position: relative;
    text-align: left;
    transition: .2s;
    user-select: none;
    -webkit-user-select: none;
    height: 50px;
    min-width: 10%;
    margin-left: 1%;
}