/* Global Styles */
body {
    margin: 0;
    height: 100vh;
    background-color: #ffffff; /* White */
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark gray */
}

/* Index Page Styles */
#index-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#message {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1em;
    color: #666666; /* Medium gray */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    white-space: nowrap;
    width: fit-content;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border-radius: 8px;
}

#rabbit {
    width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#rabbit:hover {
    transform: scale(1.05);
}

/* Analysis Page Styles */
#analysis-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.button-group button {
    flex: 1 1 auto;
    min-width: 120px;
}

textarea {
    width: 100%;
    height: 200px;
    margin: 20px 0;
    padding: 15px;
    background-color: #eceff1; /* Match page background */
    border: 1px solid rgba(69, 90, 100, 0.1); /* Subtle shaded border */
    border-radius: 8px;
    font-family: inherit;
    box-shadow: 3px 3px 6px rgba(69, 90, 100, 0.1);
    font-size: 0.9em;
    color: #455a64; /* Dark blue-gray */
    line-height: 1.5;
    resize: none;
}

button {
    background-color: #cfd8dc; /* Light blue-gray */
    color: #455a64; /* Dark blue-gray */
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    box-shadow: 3px 3px 6px rgba(69, 90, 100, 0.1);
}

button:hover {
    background-color: #b0bec5; /* Lighter blue-gray */
}

#analysis-output {
    width: 100%;
    height: 200px;
    margin: 20px 0;
    padding: 15px;
    background-color: #eceff1; /* Match page background */
    border: 1px solid rgba(69, 90, 100, 0.1); /* Subtle shaded border */
    border-radius: 8px;
    box-shadow: 3px 3px 6px rgba(69, 90, 100, 0.1);
    display: none;
    font-size: 0.9em;
    color: #455a64; /* Dark blue-gray */
    line-height: 1.5;
    overflow-y: auto;
}

#save-btn {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 600px) {
    #index-container {
        padding: 20px;
    }
    
    #rabbit {
        width: 80px;
    }
    
    #message {
        top: 10px;
        left: 10px;
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    #analysis-container {
        padding: 10px;
    }
    
    textarea {
        height: 150px;
        margin: 10px 0;
        padding: 10px;
    }
    
    #analysis-output {
        height: 150px;
        margin: 10px 0;
        padding: 10px;
    }
    
    .button-group button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* Prevent zoom on input focus */
input, textarea, select {
    font-size: 16px;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}
