﻿body {
    font-family: 'Dancing Script', cursive;
    background-color: #ffe4e1;
    margin: 0;
    padding: 20px;
}

.header {
    background-color: #f08080;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

    .header h1 {
        margin: 0;
        font-size: 2.5rem;
    }

/* Back Button Styling */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: white; /* White text */
    background-color: #f08080; /* Same header color */
    padding: 15px 25px; /* Larger padding for a bigger button */
    border-radius: 8px; /* Rounded corners */
    font-size: 1.5rem; /* Larger font size */
    font-weight: bold;
}

    .back-button:hover {
        background-color: #d46d7f; /* Slightly darker on hover */
    }

.main-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.calculator-section {
    width: 40%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #f08080;
    border-radius: 5px;
    font-size: 1.1rem;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 20px;
    background-color: #f08080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

    button:hover {
        background-color: #d46d7f;
    }

.results {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff5f4;
    border-radius: 5px;
}

    .results p {
        font-size: 1.3rem;
    }

.visual-section {
    width: 55%;
    background-color: #fff5f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Andika', sans-serif;
}

    .visual-section h2 {
        font-size: 1.8rem;
        color: #f08080;
    }

.mean-visual, .median-visual, .mode-visual {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border: 1px solid #f08080;
    border-radius: 10px;
}

    .mean-visual h3, .median-visual h3, .mode-visual h3 {
        font-size: 1.4rem;
        color: #f08080;
    }

    .mean-visual p, .median-visual p, .mode-visual p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

.median-highlight {
    display: inline-block;
    padding: 5px;
    border: 3px solid hotpink;
    border-radius: 50%;
    font-weight: bold;
    background-color: #ffe4e1;
}

.final-answer {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: hotpink;
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
}
