/* CSS document */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
}
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    color: #f5f5f3;
    background-color: #1c1c1c;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
#app {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    min-height: 100vh;
}
.screen {
    display: none;
}
.screen.active {
    display: block;
}
.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    gap: 1rem;
}
h1 {
    font-size: 22px;
    font-weight: 500;
    color: #f1efe8;
}
.logo {
    text-align: center;
}
#screen-prompt {
    display: block !important;
}
.sub {
    font-size: 14px;
    color: #888780;
    line-height: 1.6;
    white-space: pre-line;
    max-width: 300px;
}
.selectors-row {
    width: 300px;
    display: block;
    margin: 0 auto;
}
.selectors-row div {
    display: inline-block;
}
.selectors-row #lang-selector-mount {
    width: 190px;
}
.selectors-row #unit-selector-mount {
    width: 100px;
}
.selectors-row select {
    width: 100%;
    padding: 5px;
    border: 1px solid #444441;
    border-radius: 8px;
    background: #2c2c2a;
    color: #f1efe8;
    font-size: 14px;
}
.search-format {
    text-align: left;
}
.result-item {
    padding: 10px;
    color: #6d8dbc;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}
.location-row {
    width: 300px;
    gap: 8px;
    margin-top: 0.5rem;
}
.location-row input {
    width: 300px;
    padding: 0 12px;
    margin: 0 0 5px 0;
    height: 36px;
    border: 1px solid #444441;
    border-radius: 8px;
    background: #2c2c2a;
    color: #f1efe8;
    font-size: 14px;
}
.location-row input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #b4b2a9;
}
.btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #444441;
    border-radius: 8px;
    background: transparent;
    color: #f1efe8;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn:hover {
    background: #2c2c2a;
}
.err-msg {
    font-size: 13px;
    color: #a32d2d;
    display: none;
    margin-top: 0.25rem;
}
.city {
    font-size: 13px;
    color: #888780;
    margin-bottom: 1.5rem;
}
.temp-conditions-block {
    width: 100px;
    float: left;
}
.temp-main {
    font-size: 56px;
    font-weight: 500;
    color: #f1efe8;
    line-height: 1;
}
.temp-unit {
    font-size: 22px;
    color: #888780;
}
.condition {
    font-size: 16px;
    color: #888780;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}
.condition-icon {
    margin: 2px 0 0 70px;
    float: left;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 2rem;
    width: 100%;
}
.card {
    background: #2c2c2a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.card-label {
    font-size: 12px;
    color: #888780;
    margin-bottom: 4px;
}
.card-val {
    font-size: 18px;
    font-weight: 500;
    color: #f1efe8;
}
.forecast {
    border-top: 1px solid #444441;
    padding-top: 1rem;
}
.fc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444441;
    font-size: 14px;
}
.fc-row:last-child {
    border-bottom: none;
}
.fc-day {
    color: #888780;
    width: 80px;
}
.fc-cond {
    color: #888780;
    flex: 1;
    text-align: center;
}
.fc-temps {
    color: #f1efe8;
    text-align: right;
}
.fc-lo {
    color: #888780;
    font-size: 13px;
    margin-left: 6px;
}
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #444441;
    border-top-color: #888780;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}