/* General body styling */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.title {
    margin-bottom: 20px;
}

/* Centering the calculator container */
.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Display styling */
.display {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: right;
    font-size: 2em;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Number and function buttons styling */
.calculatorNumbers button,
.functionButtons button {
    width: 60px;
    height: 60px;
    margin: 5px;
    font-size: 1.5em;
    border: none;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Number and function buttons hover effect */
.calculatorNumbers button:hover,
.functionButtons button:hover {
    background-color: #ccc;
}

/* Function buttons container */
.functionButtons {
    flex-wrap: wrap;
    justify-content: center;
}

/* Output display */
.output {
    font-size: large;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {

    /* Adjust the display font size for smaller screens */
    .display {
        font-size: 1.5em;
        padding: 10px;
    }

    /* Adjust button sizes for smaller screens */
    .calculatorNumbers button,
    .functionButtons button {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        margin: 3px;
    }

    /* Adjust padding of the calculator container */
    .calculator {
        padding: 10px;
    }

    /* Adjust title font size */
    .title h1 {
        font-size: 1.5em;
    }
}