@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: "Open Sans", sans-serif;
}



:root {
    --theme-color: #63AD8F;
    --DNA-background-color: #63AD8F;

}

main {
    background-image: url('../images/hand.png');
    background-repeat: no-repeat;
}

header {
    background-image: url('../images/DNA.png');
    background-repeat: no-repeat;
    background-position: right;
}

img {
    width: 80%;
}

label {
    transition: 0.35s;
}

a {
    text-decoration: none
}

p {
    text-align: justify;
}

label>input {
    height: 20px;
    width: 20px
}

hr {
    color: var(--theme-color);
    border-bottom: 2px solid #63AD8F;
}

.container {
    max-width: 1300px;
    margin: 0 auto
}

header {
    padding-top: 10px;
    margin-bottom: 10px
}

header>.container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.header__text {
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    text-align: left
}

.header__text:last-child {
    text-align: right;
}

.header__language {
    background: none;
    border: 1px solid var(--theme-color);
    border-radius: 10px;
    color: black;
    background-color: white;
    cursor: pointer;
    transition: .3s;
    padding: 5px 12px;
    font-size: 14px;
}

.header__language:hover {
    background-color: var(--theme-color);
    color: #fff
}


/* * Description styles * */
section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.section__headline {
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.section__description {
    font-size: 18px;
    font-weight: 400;
}

.section__description:not(:last-child) {
    margin-bottom: 50px;
}

.section__description-span {
    margin-left: 10px;
}

.DNABlock {
    width: 100%;
    height: 145px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 30px;
    padding-right: 20px;
    background-color: var(--DNA-background-color);
}

.DNABlock:not(:last-child) {
    margin-bottom: 50px
}

.DNABlock__headline {
    color: #FFF;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 20px
}

.DNABlock__container {
    display: flex
}

.DNABlock__container-label {
    border: 1px solid #FFF;
    color: #FFF;
    border-radius: 5px;
    font-size: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 17px
}

.DNABlock__container-label>p {
    margin-right: 10px
}

.DNABlock__container-label:not(:last-child) {
    margin-right: 30px
}

.analyzeButton {
    color: #000;
    font-size: 30px;
    font-weight: 700;
    background: none;
    border: 2px solid var(--theme-color);
    border-radius: 10px;
    margin-bottom: 50px;
    cursor: pointer;
    transition: .3s;
    padding: 16px 30px
}

.analyzeButton:hover {
    color: #fff;
    background-color: var(--theme-color)
}


.footer__contact {
    color: #000;
    background: none;
    font-size: 20px;
    border-radius: 15px;
    border: 1px solid var(--theme-color);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: .3s;
    padding: 10px 37px;
    margin-bottom: 40px;
}

.footer__contact:hover {
    color: #fff;
    background-color: var(--theme-color)
}
/* Results */
.result {
    display: none;
    flex-direction: column;
    align-items: center
}

.result__text {
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    border: 3.5px solid var(--theme-color);
    border-radius: 5px;
    margin-bottom: 40px;
    padding: 20px
}

.result__warning {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    margin-bottom: 70px;
}

.result__warning-span {
    color: #005A60;
    font-weight: 800
}


/* ! Ranking of DNA result */
.mediumRisk {
    border-color: orange;
}

.highRisk {
    border-color: red;
}


/* * Footer styles * */
footer {
    margin-top: 10px;
    margin-bottom: 10px;
}

footer>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}



/* ! Loader styles */
.loader {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    display: none;
}













/* * Mobile optimization */



@media (max-width: 1400px) {
    .container {
        width: 1000px
    }
}

@media (max-width: 1100px) {
    .container {
        width: 900px
    }

    .section__headline {
        font-size: 45px
    }

    .footer__contact {
        padding-right: 15px;
        padding-left: 15px
    }
}

@media (max-width: 960px) {
    .container {
        width: 700px
    }

    .header__text  {
        font-size: 12px;
    }

    .footer__contact {
        font-size: 14px
    }

    .DNABlock__headline {
        font-size: 22px
    }

    .analyzeButton {
        font-size: 22px
    }

    .result__headline {
        font-size: 40px
    }

    .result__text,
    .result__warning {
        font-size: 16px
    }
}

@media (max-width: 760px) {

    img {
        width: 60%;
    }

    .header__language {
        font-size: 10px;
    }

    .container {
        width: 600px
    }

    .header__text {
        font-size: 10px
    }

    .section__headline {
        font-size: 40px;
        margin-top: 0
    }

    .DNABlock__headline {
        font-size: 20px
    }
}

@media (max-width: 630px) {
    .container {
        width: 500px
    }

    .header__text {
        display: none
    }

    .section__description:not(:last-child) {
        margin-bottom: 30px
    }

    .section__headline {
        font-size: 34px;
        margin-bottom: 30px
    }

    .section__description {
        font-size: 16px
    }

    .DNABlock__container-label {
        font-size: 20px
    }

    .DNABlock:not(:last-child) {
        margin-bottom: 30px
    }

    .result__headline {
        font-size: 30px
    }

    .result__text,
    .result__warning {
        font-size: 14px
    }

    .result__text {
        padding: 5px 15px
    }

    .result__warning {
        text-align: center
    }
}

@media (max-width: 530px) {
    .container {
        width: 400px
    }

    section {
        margin-top: 20px
    }

    .section__headline {
        font-size: 24px
    }

    .section__description {
        font-size: 14px
    }

    .DNABlock__headline {
        font-size: 18px
    }

    .DNABlock__container-label {
        font-size: 16px
    }

    .analyzeButton {
        font-size: 20px
    }
}

@media (max-width: 420px) {
    .container {
        width: 350px
    }

    .DNABlock__headline {
        font-size: 16px
    }

    .DNABlock {
        padding-left: 10px
    }

    .analyzeButton {
        font-size: 16px
    }

    .result__headline {
        font-size: 22px;
        margin-top: 10px;
        margin-bottom: 25px
    }

    .result__text,
    .result__warning {
        font-size: 12px
    }
}

@media (max-width: 375px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px
    }

    .section__headline {
        font-size: 18px
    }

    .section__description,
    .footer__contact {
        font-size: 12px
    }

    .DNABlock__headline {
        font-size: 14px
    }

    .DNABlock {
        height: 220px
    }

    .DNABlock__container-label:not(:last-child) {
        margin-right: 0;
        margin-bottom: 10px
    }

    .DNABlock__container-label {
        width: fit-content
    }

    .DNABlock__container {
        flex-direction: column
    }

    .analyzeButton {
        font-size: 14px
    }

    .result__headline {
        font-size: 18px;
        margin-bottom: 20px
    }

    .result__text,
    .result__warning {
        font-size: 12px
    }
}