@import url("//cdn.web-fonts.ge/fonts/archyedt-bold/css/archyedt-bold.min.css");
@import url('https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap');

body {
    font-family: "ArchyEDT-Bold", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #290505, #000000);
    background-size: 400% 400%;
}

.container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    display: none; /* Initially hidden */
}

h1 {
    text-shadow: 0 2px 2px #2b2b2b, -1px 1px 0px #020202;
    color: red;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.typing-text {
    width: auto;
    padding: 5px;
    text-align: center;
    text-shadow: 0 2px 2px #2b2b2b, -1px 1px 0px #020202;
    color: rgb(255, 255, 255);
    background: linear-gradient(120deg, rgb(255, 32, 78), rgb(160, 21, 62));
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.typing-text:hover {
    transform: scale(1.05);
}

.search-container {
    margin: 20px 0;
}

#searchInput {
    outline: none;
    width: 80%;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    border: 10px white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    background: linear-gradient(120deg, #FF204E, #A0153E);
}

.something {
    justify-content: space-between;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    gap: 10px;
    margin-top: auto;
}

#sortSelect {
    width: 80%;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    border: 1px solid rgb(160, 21, 62);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    background: linear-gradient(120deg, rgb(255, 32, 78), rgb(160, 21, 62));
    color: #000000;
    outline: none;
}

#sortSelect:focus {
    transition: linear-gradient(120deg, rgb(160, 21, 62), rgb(255, 32, 78)) 0.3s ease-in-out;
}

.loading-spinner {
    display: none;
    border: 4px solid rgb(255, 32, 78);
    border-top: 4px solid rgb(160, 21, 62);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto; /* Center it horizontally */
}

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

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    gap: 10px;
    margin-top: 20px;
}

.result-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(120deg, rgb(255, 32, 78), rgb(160, 21, 62));
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.result-item:hover {
    transform: scale(1.01);
    transition: transform 0.1s ease-in-out;
}

.result-item p {
    margin: 5px 0;
    font-family: "ArchyEDT-Bold", sans-serif;
    letter-spacing: 0.04rem;
}

.pagination {
    justify-content: space-evenly;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    gap: 10px;
    color: white;
    margin-top: 40px;
}

.pagination button {
    text-align: center;
    padding: 10px;
    font-size: 16px;
    border: 1px solid rgb(160, 21, 62);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    background: linear-gradient(120deg, rgb(255, 32, 78), rgb(160, 21, 62));
    color: #000000;
    outline: none;
}

.pagination button:hover:not(:disabled) {
    transform: scale(1.02);
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #eaeaea;
    cursor: not-allowed;
}

.pagination button:nth-child(2):hover {
    transform: none;
}

.pagination span {
    font-size: 16px;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #290505, #000000);
    padding: 40px 20px;
    gap: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    padding: 20px;
}

.login-input {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    background: linear-gradient(120deg, #FF204E, #A0153E);
    color: white;
    font-family: "ArchyEDT-Bold", sans-serif;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-button {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    font-size: 18px;
    border: 1px solid rgb(160, 21, 62);
    border-radius: 10px;
    background: linear-gradient(120deg, rgb(255, 32, 78), rgb(160, 21, 62));
    color: white;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    transition: transform 0.2s ease;
    font-family: "ArchyEDT-Bold", sans-serif;
}

.login-button:hover {
    transform: scale(1.02);
}

.login-status {
    color: white;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 2px 2px #2b2b2b, -1px 1px 0px #020202;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}