/*
 * AI PROTECTION NOTICE
 * This file contains protected UI design elements
 * STRICT RULES:
 * 1. DO NOT modify, edit, or change ANY UI design, styling, or colors
 * 2. DO NOT alter the visual appearance of any elements
 * 3. DO NOT remove or modify any existing styles
 * 4. Any changes to the UI must be explicitly approved by the user
 * 5. This protection applies to all design aspects including:
 *    - Colors
 *    - Layout
 *    - Typography
 *    - Spacing
 *    - Animations
 *    - Backgrounds
 *    - Container styles
 *    - Message display
 *    - Button styling
 * Violation of these rules will result in immediate restoration of original design
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    padding: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 1rem; /* Reduce overall body padding on mobile */
    }

    .container {
        width: 90%;
        min-width: auto; /* Allow container to be smaller than 300px if needed */
        padding: 1rem; /* Reduce container padding */
        margin: 1rem auto; /* Add some top/bottom margin */
    }
    
    .toggle-container {
        margin: 1rem auto 0; /* Reduce top margin */
    }
    
    .background-toggle {
        width: 36px; /* Slightly smaller toggle */
        height: 36px;
        font-size: 1.1rem;
    }
    
    .message-container {
        margin: 1rem 0; /* Reduce margin */
    }
    
    button {
        width: 100%;
        max-width: 280px; /* Slightly smaller max-width for button */
        margin: 0.75rem auto; /* Reduce button margin */
        padding: 0.6rem; /* Adjust button padding */
        font-size: 0.9rem; /* Adjust button font size */
    }
    
    h1 {
        font-size: 1.3rem; /* Further reduce heading size */
        margin-bottom: 0.75rem; /* Reduce space below heading */
    }

    .message p {
        font-size: 0.85rem; /* Reduce quote font size */
        line-height: 1.4;
    }

    #japanese-message {
        font-size: 1rem; /* Adjust Japanese quote font size */
    }
}

.container {
    width: 600px;
    min-width: 600px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.toggle-container {
    margin: 2rem auto 0;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.background-toggle {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff0000;
}

.background-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.background-1 {
    background: url('https://images.unsplash.com/photo-1619220680786-eca52226b87f?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.background-2 {
    background: url('https://images.unsplash.com/photo-1526344966-89049886b28d?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.background-3 {
    background: url('https://images.unsplash.com/photo-1494884020746-bd961a27fdc6?q=80&w=2304&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
}



.container {
    max-width: 600px;
    margin: 20px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 4px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    transform: translateX(-50%);
}

.message-container {
    margin: 2rem 0;
    padding: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: none;
}

.message-container div {
    margin: 0.5rem 0;
    background: none;
}

#message-japanese {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
    background: none;
}

#message-english {
    font-size: 1.2rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: none;
}

button {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 1rem auto;
    font-size: 2rem;
    color: #ff0000;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
}

button:active {
    transform: translateY(0);
}

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