/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    margin: 0;
    min-height: 100vh;
}

/* Home Button */
.home-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1em;
    text-decoration: none;
    color: black;
}

/* Page Title Heading */
.page-title {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    width: 100%;
}

/* Container for Sliders and Text (Flexbox for Left-Right Layout) */
.container {
    display: flex;
    flex-direction: row; /* Align text and slider sections side by side */
    width: 100%;
    max-width: 900px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

/* Text Section */
.text-section {
    flex: 1; /* Take up remaining space on the left */
    font-size: 1em;
    line-height: 1.5;
    margin-right: 20px; /* Spacing between text and sliders */
    white-space: pre-line;
    text-align: left; /* Left-align the text */
    transition: opacity 0.3s ease;
}

/* Slider Section */
.slider-section {
    flex: 0.4; /* Fixed width on the right */
    display: flex;
    flex-direction: column;
}

.slider-section label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

.slider-section input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

/* Slider Labels */
span[id$="-label"] {
    margin-left: 10px;
    font-weight: bold;
}

/* Share Button and Copyright */
.share-button {
    width: auto; /* Only as wide as content */
    background-color: #333;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-size: 1em;
}

/* Copyright Watermark */
.watermark {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 10px;
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
    .container {
        flex-direction: column; /* Stack sections on mobile */
        padding: 15px;
    }

    .text-section {
        margin-right: 0; /* Remove margin on mobile */
        font-size: 0.9em;
        line-height: 1.4;
    }

    .page-title {
        font-size: 1.8em;
        margin-top: 10px;
    }
}
