:root {


    --primary-color: #356aff;
    --bg-color: #f5f5f5;
    /* --light-bg-color: #fff; */
    --text-color: #111116;
    --light-text-color: #cdccd1;
    --primary-text-color: #fff;
}

.accordion {
    --bs-accordion-active-bg: var(--section-bg);
    --bs-accordion-bg: var(--section-bg);
    background-color: var(--section-bg);
    border: var(--border);
    --bs-accordion-color: var(--text);
    margin: auto;
}

.accordion-button {
    color: var(--text);
}

.accordion-button::after {
    display: none;
    /* background-image: var(--bs-accordion-btn-active-icon);
    color: var(--text); */
}

.accordion-button:not(.collapsed) {
    color: var(--text);
}

/* Style the label as the accordion header */
/* .accordion label {
    display: block;
    padding: 15px;
    cursor: pointer;
    color: #333;

} */

/* Style the content area */
.accordion .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

/* Show the content when the checkbox is checked */
.accordion input:checked~.content {
    max-height: 100px;
    padding: 15px;
}

/* Rotate the icon by 40 degrees when the accordion button is expanded */
.accordion-button:not(.collapsed) .ph {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.accordion-button.collapsed .ph {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.form-check-input {
    width: 1.45em;
    height: 1.45em;
    margin-top: 0.25em;
}

.form-check-label {
    vertical-align: middle;
}

kbd {
    padding: .19rem .375rem;
    font-size: .9em;
    background: var(--shade-100);
    color: var(--text);
}

.box {
    position: relative;
    width: 100%;
    display: flex;
    gap: 10px;
}

.box .lang-card {
    flex: 1;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--section-bg);
}

.box .lang-card .from,
.box .lang-card .to {
    display: flex;
    align-items: center;
    gap: 20px;
}

.box .lang-card .from {
    margin-right: 20px;
}

.box .lang-card .to {
    margin-left: 20px;
}

.box .lang-card .heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.dropdown-box {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

.dropdown-box .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 30px;
    background-color: var(--shade-100);
    cursor: pointer;
    transition: all 0.3s;
}


.dropdown-box .dropdown-toggle::after {
    display: none;
}

.dropdown-box .dropdown-toggle span {
    flex: 1;
    margin-left: 10px;
}

.dropdown-box .dropdown-toggle ion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.dropdown-box.active .dropdown-toggle {
    border-radius: 20px 20px 0 0;
}

.dropdown-box.active .dropdown-toggle ion-icon:last-child {
    transform: rotate(180deg);
}

.dropdown-box .dropdown-menu-lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: auto;
    display: none;
    padding: 20px;
    z-index: 1;
    list-style: none;
    flex-direction: column;
    background-color: var(--shade-100);
    transition: all 1s;
    border-radius: 0 0 20px 20px;
}

.dropdown-box .dropdown-menu-lang-list::-webkit-scrollbar {
    display: none;
}

.dropdown-box.active .dropdown-menu-lang-list {
    display: flex;
}

.dropdown-box .dropdown-menu-lang-list li {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--light-bg-color);
    transition: all 0.3s ease;
}

.dropdown-box .dropdown-menu-lang-list li:hover {
    background-color: var(--light-bg-color);
}

.dropdown-box .dropdown-menu-lang-list li.active {
    color: var(--primary-text-color);
    background-color: var(--primary-color);
}

.box .text-area {
    position: relative;
}

.box textarea {
    width: 100%;
    padding: 20px;
    margin: 10px 0;
    background-color: transparent;
    resize: none;
    outline: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    letter-spacing: 1px;
}

.box .text-area .chars {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--light-text-color);
}

.box .text-area .chars i:hover {
    transform: scale(1.2) !important;
    cursor: pointer;
}

.box .center {
    position: relative;
}

.swap-position {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 5px solid var(--bg-color);
    transition: all 0.3s ease;
    color: var(--primary-text-color);
    background-color: var(--primary-color);
}

.swap-position ion-icon {
    font-size: 25px;
}

.swap-position:hover {
    transform: translateX(-50%) scale(1.1);
}

.card-bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid var(--bg-color);
}

.card-bottom p {
    margin-bottom: 20px;
}

.card-bottom label {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 30px;
    background-color: var(--bg-color);
}

.card-bottom label:hover {
    color: var(--primary-text-color);
    background-color: var(--primary-color);
}

.card-bottom span {
    font-size: 12px;
    pointer-events: none;
}

.card-bottom ion-icon {
    font-size: 20px;
}

.card-bottom button {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--bg-color);
}

.card-bottom button:hover {
    color: var(--primary-text-color);
    background-color: var(--primary-color);
}


/* media quiries */
@media (max-width: 1000px) {
    .box {
        width: 100%;
        margin-top: 20px;
        flex-direction: column;
    }

    .box .lang-card {
        width: 100%;
    }

    .box .lang-card .from {
        margin-right: 0;
    }

    .box .lang-card .to {
        margin-left: 0;
    }

    .box .lang-card .from,
    .box .lang-card .to {
        flex-direction: column;
    }

    .swap-position {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .swap-position:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .swap-position ion-icon {
        transform: rotate(90deg);
    }
}


.button-container button {
    background-color: var(--section-bg);
    color: var(--text);
    border-radius: 30px;
    padding: 1.3rem 2rem 0.5rem;
    height: 60px;
    font-weight: 600;
}

.button-container button:hover {
    background: var(--shade-600);
    color: var(--section-bg);
}

.button-container button i {
    position: relative;
    top: 2px;
}


/* Fullscreen overlay styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay textarea {
    color: var(--text);
    background-color: var(--section-bg);
    border-radius: 20px;
    width: 90%;
    height: 80%;
    padding: 20px;
    font-size: 1.2rem;
    resize: none;
    outline: none;
}