/* Форматування за замовчуванням */
* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1;
    font-size: 14px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: 400;
    font-family: 'Sofia Sans Semi', sans-serif;
}

/* Форматування за замовчуванням */
/* Базові функції */

@keyframes glowing {
    0% {
      box-shadow: 0 0 5px #00ff00;
    }
    50% {
      box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00;
    }
    100% {
      box-shadow: 0 0 5px #00ff00;
    }
  }
@keyframes glowing-wrong {
    0% {
      box-shadow: 0 0 5px #ff0000;
    }
    50% {
      box-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
    100% {
      box-shadow: 0 0 5px #ff0000;
    }
}
  
.div-glow-true {
    animation: glowing 1s ease-in-out;
}

.div-glow-wrong {
    animation: glowing-wrong 1s ease-in-out;
}

:root {
    --bgc_opac: rgba(228, 255, 242, 0);
    --bgc: rgba(228, 255, 242, 100);
    --bgc_card: #fff;
    --shadow: 2px 2px 10px #191D40;
    --flag_ua_top: #03b2d1;
    --flag_ua_bottom: #e8eb37;
    --white_text: #fff;
    --gradient_one: linear-gradient(to right, #A2A9BB, #EFF1FF);
    --green-bgc: #191D40;
}

:root.dark-theme {
    --primary-color: #f3dbc0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');



/* Базові функції */

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    user-select: none;
    background: linear-gradient(to right, #A2A9BB, #EFF1FF);
}

.wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* HEADER */

.header {
    padding: 10px 5px 10px 5px;
    width: 100%;
    position: relative;
    z-index: 100;
    font-weight: 600;
    color: var(--white_text);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 20px;
    font-weight: 600;
    width: 20%;
    text-align: center;

}

.header__logo span:first-child {
    color: var(--flag_ua_top);
}

.header__logo span:last-child {
    color: var(--flag_ua_bottom);
}

.nav {
    width: 60%;
    text-align: center;
}

.nav .nav__span,
.header__setting {
    color: var(--btn-color-hover);
    display: inline-block;
    vertical-align: center;
    margin: 5px 20px;
    text-decoration: none;
    position: relative;
    transition: color .2s linear;
    cursor: pointer;
}

.header__setting {
    width: 20%;
    text-align: right;
}
.header__setting span {
    position: relative;
    width: auto;
}

.nav__span:after,
.header__setting span:after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    opacity: 0;
    background-color: var(--flag_ua_bottom);
    position: absolute;
    top: 110%;
    left: 0;
    z-index: 1;
    transition: opacity .2s linear;
}

.nav__span:hover,
.header__setting span:hover,
.nav__span.active,
.header__setting span.active {
    color: var(--flag_ua_bottom);
}

.nav__span:hover:after,
.header__setting span:hover:after,
.nav__span.active:after,
.header__setting span.active:after {
    opacity: 1;
}

/* HEADER */

/* BODY */

.content {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.img__bg {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 40%;
    background-color: var(--green-bgc);
    border-radius: 0 0 0 100px;
}


.inteactive_module {
    position: relative;
    top: 40%;
    width: 100%;
    height: 60%;
    background-color: var(--green-bgc);
}

.inteactive_module::before {
    content: '';
    position: absolute;
    background: linear-gradient(to right, #A2A9BB, #EFF1FF);
    width: 100%;
    height: 100%;
    border-radius: 0 100px 0 0;
}

.cards {
    position: absolute;
    width: 70%;
    max-width: 400px;
    height: 180px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.main-word {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.front,
.back {
    background-color: var(--bgc_card);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    backface-visibility: hidden;
    transition: 0.3s linear;
    z-index: 2;
    box-shadow: var(--shadow);
}

.front img,
.back img {
    position: relative;
    width: 120px;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
}

.front::before,
.front::after,
.back::before,
.back::after {
    z-index: 1;
    content: '';
    display: block;
    position: absolute;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(50% - 5px);
}

.front::before,
.back::before {
    top: 5px;
    border-top: 3px solid var(--flag_ua_top);
    border-left: 3px solid var(--flag_ua_top);
    border-right: 3px solid var(--flag_ua_top);
    border-radius: 10px 10px 0 0;
}

.front:after,
.back:after {
    bottom: 5%;
    border-bottom: 3px solid var(--flag_ua_bottom);
    border-left: 3px solid var(--flag_ua_bottom);
    border-right: 3px solid var(--flag_ua_bottom);
    border-radius: 0 0 10px 10px;
}

.front {
    transform: perspective(700px) rotateY(0deg);
}

.back {
    transform: perspective(700px) rotateY(180deg);
}

.word,
.word-translate {
    position: relative;
    width: 100%;
    padding: 10px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2em;
}
.word{
    height: 70%;
}
.word-translate {
    height: 100%;
}

.transcription {
    position: relative;
    width: 100%;
    height: 30%;
    padding: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5em;
}

.btn_next {
    position: absolute;
    width: 80%;
    max-width: 400px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    background-color: var(--green-bgc);
    border-radius: 40px;
    font-weight: 400;
    font-size: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center; 
    font-size: 20px;
    transition: background-color .3s linear;
    color: #EFF1FF;
}

.canvas_test {
    position: absolute;
    width: 90%;
    max-width: 450px;
    height: calc(100% - 80px);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    /*background-color: var(--bgc_card);*/
    border-radius: 10px;
    font-weight: 400;
    font-size: 12px;
    /*box-shadow: var(--shadow); */
}
.variants {
    position: relative;
    width: 100%;
    height: 60%;
    display: grid;
    grid: repeat(2, 50%) / auto-flow 50%;
    text-align: center;
    align-items: center;
    margin-bottom: 3%;
}

.variants div {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bgc_card);
    box-shadow: var(--shadow);
    font-size: 20px;
}
.apply_variants {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: 50%;
    background-color: var(--green-bgc);
    color: var(--white_text);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    box-shadow: var(--shadow);
    font-size: 20px;
}

.canvas_test_couple {
    position: absolute;
    width: 100%;
    max-width: 450px;
    height: 90vh;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(-44%);
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.find_couple_original,
.find_couple_translate{
    position: relative;
    width: 100%;
    margin-top: 10px;
    height: auto;

}

.find_couple_original div,
.find_couple_translate div{
    position: relative;
    width: 95%;
    height: 90px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bgc_card);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.canvas_test_input{
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--bgc_card);
}
.setting_menu{
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #0f0;
}

.hidden {
    display: none;
}
/* BODY */
/* FOOTER */

footer{
    position: absolute;
    width: 100%;
    height: 60px;
    bottom: 0;
    display: flex;
    justify-content: center;
}

.navigation {
    position: relative;
    width: 390px;
    height: 60px;
    background-color: #fff;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.navigation ul {
    display: flex;
    width: 350px;
}
.navigation ul li {
    position: relative;
    width: 70px;
    height: 60px;
    z-index: 2;
}

.navigation ul li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.navigation ul li .icon{
    position: relative;
    display: block;
    width: 55px;
    height: 55px;
    text-align: center;
    line-height: 65px;
    border-radius: 50%;
    color: var(--green-bgc);
    font-size: 1.5em;
    transition: 0.5s;
    transition-delay: 0s;
}

.navigation ul li.active .icon{
    background-color: var(--clr);
    color: var(--bgc_card);
    transform: translateY(-27px);
    transition-delay: 0.25s;
}

.navigation ul li .icon::before{
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    transition: 0.5s;
    transition-delay: 0s;
}
.navigation ul li.active a .icon::before{
    opacity: 0.5;
    transition-delay: 0.5s;
}

.indicator {
    position: absolute;
    top: -35px;
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 1;
    transition: 0.5s;
}

.indicator::before{
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    left: -28px;
    top: 5px;
    border-radius: 50%;
    box-shadow: 15px 18px #fff;
}

.indicator::after{
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    right: -28px;
    top: 5px;
    border-radius: 50%;
    box-shadow: -15px 18px #fff;
}
.navigation ul li:nth-child(1).active ~ .indicator {
    transform: translateX(calc(70px * 0));
}
.navigation ul li:nth-child(2).active ~ .indicator {
    transform: translateX(calc(70px * 1));
}
.navigation ul li:nth-child(3).active ~ .indicator {
    transform: translateX(calc(70px * 2));
}
.navigation ul li:nth-child(4).active ~ .indicator {
    transform: translateX(calc(70px * 3));
}
.navigation ul li:nth-child(5).active ~ .indicator {
    transform: translateX(calc(70px * 4));
}
/* FOOTER */

@media (max-width: 600px) {
    .img__bg {
        border-radius: 0 0 0 50px;
    }

    .inteactive_module::before {
        border-radius: 0 50px 0 0;
    }
    .variants div {
        height: 90px;
        border-radius: 20px;
        font-size: 20px;
        top: 10px;
    }
    .apply_variants {
        height: 80px;
        width: 90%;
        border-radius: 10px;
        font-size: 20px;
        top:25px;
    }
    .btn_next {
        position: absolute;
        width: 90%;
        height: 130px;
        top: 40%;
        border-radius: 40px;
        font-size: 20px;
    }
}
/* Медиа запрос для айфона по меньше*/
@media (max-width: 414px) {
    .img__bg {
        border-radius: 0 0 0 50px;
    }

    .inteactive_module::before {
        border-radius: 0 50px 0 0;
    }
    .variants div {
        height: 80px;
        border-radius: 20px;
        font-size: 20px;
        top: 10px;
    }
    .apply_variants {
        height: 70px;
        width: 90%;
        border-radius: 10px;
        font-size: 20px;
        top:25px;
    }
    .btn_next {
        position: absolute;
        width: 90%;
        height: 130px;
        top: 40%;
        border-radius: 40px;
        font-size: 20px;
    }
}
