body {
    font-family: Arial, sans-serif;
    text-align: center;
}

#switch-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    border-radius: 17px;
    overflow: hidden;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 17px;
}

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

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);
}

.sliderText {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 5px 10px;
    transition: border-color 0.3s;
}

.calculator-container {
    display: none;
    position: relative;
    margin-top: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    margin: 20px auto;
}

.calculator-container.active {
    display: block;
}

.calculator-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.calculator-input {
    margin-bottom: 10px;
}

.calculator-button {
    padding: 10px 20px;
    background-color: #2196F3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.calculator-result {
    margin-top: 10px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    #switch-container {
        flex-direction: column;
        align-items: center;
    }

    .switch {
        margin: 10px 0;
    }

    .sliderText {
        margin: 10px 0;
    }

    .calculator-container {
        max-width: 100%;
        padding: 10px;
    }
}
