* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease;
    padding: 20px;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px);
        overflow: hidden;
    }
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 769px) {
    .container {
        padding: 0;
    }
}

h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }
}

.aroma-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .aroma-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }
}

.category {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.oil-name {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .oil-name {
        font-size: 1.8em;
        margin-bottom: 18px;
    }
}

.description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    -webkit-user-select: text;
    user-select: text;
}

@media (max-width: 768px) {
    .description {
        font-size: 1.05em;
        line-height: 1.7;
    }
}

.change-button {
    background: white;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .change-button {
        padding: 18px 50px;
        font-size: 1.1em;
    }
}

@media (hover: hover) {
    .change-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 25px rgba(0, 0, 0, 0.3);
    }
}

.change-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

/* Category background colors */
.relax-bg {
    background: linear-gradient(135deg, #b19cd9 0%, #8b7dc6 100%);
}

.focus-bg {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
}

.antibacterial-bg {
    background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
}

.mood-bg {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.pain-bg {
    background: linear-gradient(135deg, #c94b4b 0%, #8b2c4d 100%);
}

.women-bg {
    background: linear-gradient(135deg, #ffb6c1 0%, #ff91a4 100%);
}

.digestion-bg {
    background: linear-gradient(135deg, #96ceb4 0%, #74b49b 100%);
}

.respiratory-bg {
    background: linear-gradient(135deg, #a8e6cf 0%, #7fcdbb 100%);
}

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

@media (max-width: 430px) {
    h1 {
        font-size: 1.9em;
        margin-bottom: 20px;
    }
    
    .oil-name {
        font-size: 1.6em;
    }
    
    .aroma-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .description {
        font-size: 1em;
    }
    
    .change-button {
        padding: 16px 45px;
        font-size: 1.05em;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.7em;
    }
    
    .oil-name {
        font-size: 1.4em;
    }
    
    .aroma-card {
        padding: 25px 18px;
    }
    
    .description {
        font-size: 0.95em;
    }
}

@media (max-height: 700px) and (orientation: portrait) {
    h1 {
        margin-bottom: 15px;
    }
    
    .aroma-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    body {
        padding: 10px env(safe-area-inset-right, 20px) 10px env(safe-area-inset-left, 20px);
    }
    
    h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .aroma-card {
        padding: 20px 25px;
        margin-bottom: 15px;
    }
    
    .category {
        margin-bottom: 8px;
        font-size: 0.8em;
    }
    
    .oil-name {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .description {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .change-button {
        padding: 12px 35px;
        font-size: 0.95em;
    }
}