html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.marquee-container {
    background-color: #d4edda;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
    visibility: hidden;
}

.marquee-item {
    display: inline-block;
    margin-right: 30px;
    color: #155724;
}

@keyframes marquee {
    0% { transform: translateX(100%); visibility: visible; }
    100% { transform: translateX(-100%); }
}

.text-center {
    text-align: center;
}

.result-box {
    background-color: #e8f5e9; /* Light green background for results */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: #2e7d32; /* Dark green text for better visibility */
    padding: 15px; /* Add padding to the result box */
    margin: 20px auto; /* Center the result box */
    max-width: 400px; /* Control the width of the result box */
}

h4.font-weight-bold {
    font-size: 1.5em;
    margin: 10px 0;
}

p.lead {
    font-size: 1.25em;
}

@media (max-width: 576px) {
    .result-box {
        font-size: 1.2em;
    }
}

@media (min-width: 768px) {
    .result-box {
        font-size: 1.4em;
    }
}

.btn-block {
    width: 100%;
}

input[type="range"] {
    width: 100%;
}

.calculator-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center the content within the calculator container */
}

.calculator-display {
    width: 100%;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding: 10px;
    text-align: right;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.btn-custom {
    width: 100%;
    height: 70px;
    font-size: 1.5rem;
    border-radius: 10px;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-operator {
    background-color: #f7d46a; /* Yellow color for operator buttons */
}

.btn-number {
    background-color: #eaeaea;
}

.btn-equal {
    background-color: #4caf50;
    color: white;
}

.btn-clear {
    background-color: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .calculator-container {
        margin: 20px;
    }

    .btn-custom {
        height: 50px;
        font-size: 1.2rem;
    }

    .calculator-display {
        height: 50px;
        font-size: 1.2rem;
    }
}

.history-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.history-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0;
}

.calculator-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.slider {
    width: 100%;
}

.output-box {
    background-color: #e9f7ef;
    border: 1px solid #d4edda;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: #155724;
    margin-top: 10px;
}

.section-title {
    font-size: 1.5em;
    margin-top: 20px;
    color: #4caf50;
}

.calculator-content {
    margin-bottom: 20px;
}

.calculator-content p,
.calculator-content ul,
.calculator-content ol {
    font-size: 1.1rem;
    line-height: 1.5;
}

.calculator-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.calculator-content ol {
    list-style-type: decimal;
    margin-left: 20px;
}
