.button-wrapper {
    position: relative;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.round-button,
.round-button-mic {
    color: white;
    text-align: center;
    background-color: #333;
    border-radius: 20%;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-text,
.icon-text-mic {
    font-size: 24px;
}

.accuracy-text {
    color: black;
    text-align: center;
}

.expanded {
    margin: auto;
    align-content: center;
}


.horizontal-flexbox {
    height: 100%;
    width: 100%;
    display: flex;
}


/* ############## Next button ##### */
.button-next {
    border-radius: 4px;
    display: block;
    border: none;
    color: #FFFFFF;
    text-align: left;
    font-size: 3em;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0%;
    right: 2%;
    bottom: 2%;
    background-color: #36bf76;
    width: 5em;
    transition: all 0.5s;
    cursor: pointer;
}

.button-next:hover {
    background-color: #6383a1 !important;
}

.button-next span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}


.button-next:hover span {
    padding-right: 25px;
}

.button-next:hover span:after {
    opacity: 1;
    right: 0;
}


/* ############# Texts ##############  */

.main-text {
    font-size: 2.5em;
    max-width: 80%;
}

.ipa-text {
    /* font-size: 1.8em; */
    max-width: 80%;
}

/* .ipa-text-small {
    font-size: 1.5em;
} */

.accuracy-text {
    /*font-family: "Dank Mono", ui-monospace, monospace;*/
    background: linear-gradient(to right,
            rgb(54, 56, 80),
            rgb(21, 60, 87));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    /* font-size: 2em; */
    margin-left: 2%;
    left: 0%;
}

.main-text-div {
    overflow-y: auto;
    position: relative;
    left: 10%;
    right: 10%;
    top: 2%;
    bottom: 2%;
}

/* ############# Card containerspeech ##############  */
.containerspeech {
    position: relative;
    left: 2%;
    top: 18%;
    transform: translate(-0%, -0%);
    height: 59%;
    width: 96%;
    max-width: 96%;
    background: #ffff;
    overflow: hidden;
    border-radius: 20px;
}

.containerspeech-small {
    position: relative;
    left: 68%;
    top: 79%;
    transform: translate(-0%, -0%);
    height: 7%;
    width: 30%;
    background: #ffff;
    overflow: hidden;
    border-radius: 20px;
}

/* ############# Icon Button ##############  */

.round-button {
    box-sizing: border-box;
    display: block;
    width: 3em;
    /* 80px */
    height: 3em;
    left: 0%;
    padding-top: 14px;
    padding-left: 0px;
    line-height: 0px;
    border: 6px solid #fff;
    border-radius: 50%;
    color: #f5f5f5;
    text-align: center;
    text-decoration: none;
    background-color: #467387;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.round-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 0px 10px #61a4d4;
    text-shadow: 0px 0px 10px #61a4d4;
}

.icon-text {
    font-size: 1em !important;
    text-align: center;
}

.round-button-mic {
    box-sizing: border-box;
    display: block;
    width: 4.5em;
    /* 80px */
    height: 4.5em;
    padding-top: 14px;
    padding-left: -2.25em;
    line-height: 0px;
    border: 6px solid #fff;
    border-radius: 50%;
    color: #f5f5f5;
    text-align: center;
    text-decoration: none;
    background-color: #49d67d;
    /*#467387;*/
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.round-button-mic:hover {
    background-color: #477c5b;
    /*rgba(0,0,0,0.8);*/
    box-shadow: 0px 0px 10px #61a4d4;
    text-shadow: 0px 0px 10px #61a4d4;
}

.icon-text-mic {
    font-size: 2.5em !important;
}

.icon-text-home {
    font-size: 3.5em !important;
}


.play-sound-button-div {
    position: fixed;
    left: 45%;
    top: 80%
}


.mic-button-div {
    position: fixed;
    left: 50%;
    top: 80%
}


.play-record-sound-button-div {
    position: fixed;
    left: 55%;
    top: 80%
}


/*############### Drop-down ############# */
.dropbtn {
    background-color: #ffffff;
    color: rgb(50, 71, 165);
    padding: 0px;
    font-size: 16px;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: relative;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

/* ############# Arrow ############## position: relative;  position: absolute;*/
.load-more {
    position: fixed;
    cursor: pointer;
    width: 100px;
    height: 100px;
    margin: -0px 0 0 -0px;
    min-width: 10px;
    min-height: 10px;

    left: 90%;
    top: 45%;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-bottom-color: #000;
    border-right-color: #000;
    border-radius: 0 0 5px 0;

    transform: translate(-0%, -0%) rotate(-45deg);
}

/* ######## Radio Buttons ############## */

/* ############## FIXED RADIO BUTTONS ############## */

/* 1. RESET: Forcefully delete the "ghost" elements from the external CSS file */
.radio input::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
}

/* 2. CONTAINER: Clean row layout */
.radio {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important; /* Forces separation between buttons */
    
    background: #f6f7fd;
    padding: 8px 12px;
    border-radius: 50px;
    width: fit-content;
    margin: 20px auto; /* Center the whole bar */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* 3. BUTTON STYLE */
.radio input {
    /* Hide the native radio circle */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Box Styling */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 20px !important;
    margin: 0 !important;
    border-radius: 30px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* Text Styling (UNSELECTED = BLACK) */
    color: #000000 !important; /* Explicitly Black */
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    background: transparent;
}

/* 4. INSERT TEXT FROM LABEL */
.radio input::after {
    content: attr(label);
    white-space: nowrap;
    display: block;
}

/* 5. HOVER STATE */
.radio input:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* 6. SELECTED STATE (Green Background, White Text) */
.radio input:checked {
    background-color: #36bf76 !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(54, 191, 118, 0.3);
}

.link-icon-div {
    position: fixed;
    left: 90.0%;
    top: 0.0%;
    vertical-align: middle;
    align-content: flex-start;
}

.credits-icon-div {
    position: fixed;
    left: 90.5%;
    top: 95%;
    font-size: x-small;
}

.svg-icon {
    padding-top: 1em;
    width: 50px;
    height: 50px;

}


/* ######## Switch ############## */
@media only screen and (max-width: 1200px) {
    .round-button {
        box-sizing: border-box;
        display: block;
        width: 2em;
        /* 80px */
        height: 2em;
        left: -2.5%;
        padding-top: 0.3em;
        padding-left: 0px;
        line-height: 0px;
        border: 6px solid #fff;
        border-radius: 50%;
        color: #f5f5f5;
        text-align: center;
        text-decoration: none;
        background-color: #467387;
        font-size: 1em;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .containerspeech {

        position: relative;
        left: 2%;
        top: 22%;
        transform: translate(-0%, -0%);
        height: 55%;
        width: 96%;
        max-width: 96%;
        background: #ffff;
        overflow: hidden;
        border-radius: 20px;

    }

    .icon-text {
        font-size: 0.8em !important;
        text-align: center;
    }

    .ipa-text-small {
        font-size: small;
    }

    .round-button-mic {
        box-sizing: border-box;
        width: 3.5em;
        /* 80px */
        height: 3.5em;
        padding-top: 0.4em;
        left: 40%;
        line-height: 0px;
        border: 6px solid #fff;
        border-radius: 50%;
        color: #f5f5f5;
        text-align: center;
        text-decoration: none;
        background-color: #49d67d;
        font-size: 20px;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .mic-button-div {
        position: relative;
        left: 40%;
        top: 80%
    }

    .link-icon-div {
        position: relative;
        left: 89.0%;
        top: 0.0%;
        vertical-align: middle;
    }

    .credits-icon-div {
        position: relative;
        left: 78.5%;
        top: 95%;
        font-size: x-small;
    }

    .svg-icon {
        padding-top: 1em;
        width: 40px;
        height: 40px;
    }


    .icon-text-home {
        font-size: 2.5em !important;
    }

    .accuracy-text {
        font-family: "Dank Mono", ui-monospace, monospace;
        background: linear-gradient(to right,
                rgb(54, 56, 80),
                rgb(21, 60, 87));
        left: -5.0%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: center;
        font-size: 0.8em;
    }

}