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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
}


.loading, .error {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.error {
    background: #ffebee;
    color: #c62828;
}

.hidden {
    display: none !important;
}

.weather-info {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-info .weather-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.weather-info .weather-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.temp-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.temperature {
    font-size: 4em;
    font-weight: bold;
    color: #5c9ead;
}

.weather-icon {
    font-size: 4em;
}

.description {
    font-size: 1.5em;
    color: #666;
    text-transform: capitalize;
}

.rain-info {
    font-size: 1.2em;
    color: #2196F3;
}

.outfit-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.outfit-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 2em;
}

.outfit-sentences {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.outfit-sentence {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.sentence-flow {
    flex: 0 0 50%;
    font-size: 1.3em;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
}

.sentence-line {
    margin-bottom: 8px;
}

.sentence-line:last-child {
    margin-bottom: 0;
}

.sentence-flow .weather-card {
    display: inline-block;
    background: #5c9ead;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid #4a8a99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    margin: 0 3px;
}

.outfit-sentence .options {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-left: 30px;
    border-left: 3px solid #ddd;
}

.outfit-sentence .options .conclusion {
    font-size: 1.3em;
    color: #333;
    font-weight: 500;
}

.option-box {
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.option-box.yes {
    background: #e8f5e9;
    border-color: #81c784;
}

.option-box.no {
    background: #fff3e0;
    border-color: #ffb74d;
    opacity: 0.7;
}

.option-box .icon {
    width: 80px;
    height: 80px;
    display: block;
    object-fit: contain;
}

.option-box .option-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.option-box .option-status {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 5px;
    padding: 5px 15px;
    border-radius: 8px;
}

.option-box.yes .option-status {
    background: #81c784;
    color: white;
}

.option-box.no .option-status {
    background: #ffb74d;
    color: white;
}

.outfit-sentence .or {
    font-size: 1.3em;
    font-weight: bold;
    color: #666;
}

.rules-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.rules-button {
    padding: 12px 24px;
    font-size: 1em;
    background: #5c9ead;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.rules-button:hover {
    background: #4a8a99;
}

.rules-display {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.rules-display h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.rules-display ul {
    list-style: none;
    padding: 0;
}

.rules-display li {
    padding: 10px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
}

.rules-display li strong {
    color: #5c9ead;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }
    
    .temperature {
        font-size: 3em;
    }
    
    .weather-icon {
        font-size: 3em;
    }
    
    .outfit-sentence {
        flex-direction: column;
        align-items: stretch;
    }
    
    .outfit-sentence .options {
        border-left: none;
        border-top: 3px solid #ddd;
        padding-left: 0;
        padding-top: 20px;
    }
}
