* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: #d67999;
    color: #ffffff;
    position: relative;
    height: 100%;
    padding-top: 5em;
    padding-bottom: 5em;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 400px;
    position: relative;
    z-index: 10; /* To ensure the container is above the backdrop */
}
h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}
.logo {
    width: 320px;
    height: 320px;
    background-image: url('../assets/find_floyd.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
}
input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: solid 1px rgba(255, 255, 255, 0.651);
    /* border: none; */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0.5em;
    font-size: 1rem;
    background: #e08baf;
    color: white;
}
input::placeholder {
    color: rgba(255, 255, 255, 0.651);
}
.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    row-gap: 1em;
    column-gap: 0.5em;
}
.platform-btn {
    width: 5em;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #c46788; */
    background-color: transparent;
    /* border: 2px solid transparent; */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.651);
    border-radius: 15%;
    cursor: pointer;
    transition: filter 0.3s ease-in-out, background 0.3s, border 0.3s;
    transform: scale(1);
    transition: transform 0.1s ease-in-out;
}
.platform-btn:hover {
    transform: scale(1.1);
}
.platform-btn img {
    width: 4em;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}
.platform-btn.selected {
    /* border: 2px solid #a04f6b; */
    /* background-color: #c46788; */
    border: 2px solid #fccadf;
    background-color: #e08baf;
    transform: scale(1.1);
}
.platform-btn.selected img {
    filter: grayscale(0%);
}
.buttons-container {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    justify-content: center;
    align-items: center;
}
.track-btn {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px 20px;
    width: 7em;
    background: transparent;
    /* border: none; */
    border: 1px solid rgba(255, 255, 255, 0.651);
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    transform: scale(0.95);
    transition: transform 0.1s ease-in-out;
}
.track-btn:hover, .track-btn:active {
    background: #e08baf;
    transform: scale(1);
}
.platform-description {
    text-align: center;
    align-content: center;
    /* margin-top: 15px; */
    margin-bottom: 0.2em;
    font-size: 0.9rem;
    color: #ffffff;
    min-height: 40px;
}
.selected-platform {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}
.error-message {
    text-align: center;
    font-size: 0.9rem;
    color: #ffcccb;
    margin-top: 10px;
}
.loading-overlay {
    display: none;
    position: fixed; /* Changed to fixed so it covers the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 5; /* Ensure it sits behind the content */
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.maintainer {
    margin-top: 0.5em;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}
.maintainer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
.maintainer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

a.kofi-button {
    margin-top: 1em;
}

/* Search area */
.search-login-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
}

.search-login-row input {
    flex: 3;
}

.search-login-row button.login-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.651);
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    transition: background 0.3s, transform 0.1s ease-in-out, border 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);

    padding: 0;
    margin: 0;
    margin-bottom: 15px;
}

.search-login-row button.login-btn:hover,
.search-login-row button.login-btn:active {
    background: #e08baf;
    transform: scale(1);
    border-color: #ffb6c1;
}