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

:root {
  --border-color: #71a8ac;
  --second-color: #ee865d;
}

html,
body {
  font-family: "Handlee", cursive;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--dark-bg);
}

body {
    background: url('bg.avif') top center/cover no-repeat;
}

.title {
    text-align: center;
    margin-top: 80px;
    padding: 15px 0;
    background: rgba(81, 139, 135, 0.5);
    color: #354849;
    font-size: 2.3rem;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

.container__input input {
    width: 600px;
    padding: 20px 25px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: #334443;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.9);
}

.container__input input:focus {
    outline: none;
    border-color: #4a8c8b;
    color: #334443;
    background: rgba(255, 255, 255, 1);
}

.container__results {
    display: block;
    width: 100%;
    display: flex;
    justify-content: center;
}

.container__results-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 650px;
}

.container__results p {
    background: rgba(248, 209, 199, 0.4);
    color: #314142;
    padding: 15px 20px;
    width: 550px;
    text-align: left;
    font-size: 1.2rem;
    border-bottom: 2px solid #7e9091;
    transition: all 0.2s ease;
}

.container__results p:first-child {
    border-radius: 10px 10px 0 0;
}

.container__results p:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

/* Hover effect for suggestions */
.container__results p:hover {
    background: rgba(113, 168, 172, 0.85);
    color: white;
    cursor: pointer;
    transform: translateX(5px);
}

.suggestion-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(81, 139, 135, 0.6) !important;
    color: white !important;
    transform: translateX(5px);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #314142;
    font-size: 1.1rem;
}

.settings-panel {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    width: 600px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #314142;
}

.setting-item label {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="range"] {
    width: 200px;
    cursor: pointer;
}

.setting-value {
    background: rgba(81, 139, 135, 0.6);
    padding: 5px 10px;
    border-radius: 10px;
    min-width: 45px;
    text-align: center;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.error-message {
    text-align: center;
    padding: 20px;
    color: #d9534f;
}

.no-suggestions {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}
/* Responsive */
@media (max-width: 700px) {
    .container__input input {
        width: 90vw;
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .container__results p {
        width: 85vw;
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-top: 50px;
    }
    .container__input input {
        width: 90vw;
    }
    .container__results p {
        width: 80vw;
    }
    .settings-panel {
        width: 90vw;
    }
}