:root {
    --grey-color: rgb(228, 228, 228);
    --darker-grey-color: rgb(189, 189, 189);
    --text-color: rgb(60, 60, 60);
    --border-radius: 15px;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    font-family: "Fredoka";
    color: var(--text-color);
    /* background-color: rgb(250, 250, 250); */

    background: black;
}

.wrapper {
    height: 60vh;
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 5em; */
    /* overflow-y: scroll; */

    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    width: 100%;
    font-weight: 600;
    text-align: left;
}

.top__container {
    margin-top: 25px;
    width: 100%;
    /* height: 250px; */
}

.image_text__container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

img {
    width: 150px;
    display: block;
}

#original__text {
    border: 2px solid var(--grey-color);
    padding: 1em;
    width: auto;
    border-radius: var(--border-radius);
    margin-left: 20px;
    font-size: 1.2em;
}

span {
    display: inline-block;
    border-bottom: 2px dashed var(--darker-grey-color);
    margin-right: 5px;
}

#destination__container {
    padding: 0.5em 0;
    height: 60px;
    width: 100%;
    border-top: 2px solid var(--grey-color);
    border-bottom: 2px solid var(--grey-color);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#origin__container {
    padding: 3em 0;
    width: 100%;
    /* border-top: 2px solid var(--grey-color);
    border-bottom: 2px solid var(--grey-color); */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.word {
    position: relative;
    border: 1px solid var(--grey-color);
    background-color: white;
    margin: 0 0.2em;
    padding: 0.5em 1em;
    border-radius: var(--border-radius);
    box-shadow: 0px 3px 0px 0px var(--grey-color);
    transition: 0.2s transform ease-in-out;
    cursor: pointer;
    z-index: 1;
    font-size: 1.2em;
    font-weight: 400;
}

.word__container {
    margin: 0 0.2em;
    padding: 0.5em 1em;
    border-radius: var(--border-radius);
}

.word__container:empty {
    background: var(--grey-color);
}

.word:active {
    transform: translateY(2px);
    box-shadow: none;
}

header {
    position: absolute;
    top: 0;
    width: 100vw;
    left: 0;
    display: flex;
    justify-content: space-between;
}

header .left,
header .right {
    padding: 20px;
    display: flex;
    align-items: center
}

header .left p {
    font-size: large;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 0;
    color: #fff;
}

header .right p {
    font-size: larger;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 0;
    color: #fff;
}

header .right select:focus-visible {
    outline: none;
}

header .right select {
    appearance: none;
    border: none;
    background: none;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.profile-pic {
    width: 50px;
    border-radius: 100px;
}

.translate-pic {
    width: 40px;
    border-radius: 100px;
}

footer {
    position: fixed;
    bottom: 0;
    border-top: 2px solid var(--grey-color);
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2em 5em;
    left: 0;
}

.skip_button,
.check_button {
    font-size: 1em;
    font-weight: 600;
    padding: 0.8em 2.5em;
    border-radius: var(--border-radius);
    transition: 0s all ease-in-out;
    cursor: pointer;
}

.skip_button {
    color: var(--darker-grey-color);
    border: 1px solid var(--grey-color);
    background-color: white;
    box-shadow: 0px 3px 0px 0px var(--grey-color);
}

.skip_button:hover {
    background-color: rgba(143, 157, 173, 0.2);
}

.check_button {
    color: white;
    border: 1px solid crimson;
    background-color: crimson;
    box-shadow: 0px 3px 0px 0px crimson;
}

.check_button:hover {
    background-color: crimson;
}

.skip_button:active,
.check_button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.stepper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.stepper-indicator {
    background: lightgray;
    flex-grow: 1;
    width: 50px;
    height: 10px;
    border-radius: 10px;
    margin: 5px;
}

.stepper-indicator.correct {
    background: greenyellow;
}

.stepper-indicator.wrong {
    background: red;
}

.image-container {
    background: white;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    justify-content: end;
}

.question-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.speech-img {
    width: 30px;
    position: absolute;
    margin-top: -10px;
    margin-right: -10px;
    cursor: pointer;
}

.stepper-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.mark-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.mark-container p {
    margin-bottom: 0;
}

.trophy-img {
    width: 30px;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 5;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.modal img {
    max-width: 100%;
    height: auto;
}

select option {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    color: #333;
}

select option:hover {
    background-color: crimson;
}

@media only screen and (max-width: 600px) {
    .wrapper {
        overflow: hidden;
        width: 100vw;
    }

    #origin__container {
        flex-wrap: wrap;
    }

    .stepper-indicator {
        width: 40px;
    }
}