:root {
    --primary: rgb(216, 78, 168);
    --secondary1: rgb(78, 216, 168);
    --secondary2: rgb(168, 216, 78);
    --bg: rgb(240, 240, 240);
    --border: rgb(200, 200, 200);
    --text: white;
    --textBlue: #51DCFF;
    --textBlack: rgb(216, 78, 168);
}

body {
    background-color: var(--primary);
    font-size: 20px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Freeman", sans-serif;
    font-weight: 400;
    font-style: normal;
}

img {
    width: 100%;
}

h3 {
    font-size: 1.8rem;
}

code {
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    white-space: break-spaces;
    border-radius: 6px;
    background-color: rgba(220, 224, 228, 0.1) !important;
}

.required {
    color:red;
}
.main-image {
    width: 550px;
}

@media(max-width:700px) {
    .main-image {
        width: 70vw;
    }
}

.main-image__wrapper {
    display: flex;
    justify-content: center;
}

/* --------------------- COMMON ----------------------- */
.title {
    color: #51DCFF;
    font-size: 4rem;
}

.title--secondary {
    font-size: 2.5rem;
}

@media(max-width:700px) {
    .title {
        font-size: 8vw;
    }
}

.calculator__title {
    font-size: 2rem;
}

.calculator__title--result {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.calculator__title--result:first-child {
    margin-top: 0;
}

/* --------------------- HEADER ----------------------- */
.header {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    padding-inline: 30px;
    position: relative;
}

.main-logo {
    width: 60px;
    position: relative;
}

.container {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 30px;
}

.header__menu {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0 2rem;
    align-items: center;

}

.header__app-state {
    color: #7a6e6e61;
    overflow-x: visible;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@media(max-width:700px) {
    .header__app-state {
        top: 0;
        transform: translateY(0%);
        left: 0;
        padding-left: 10px;
    }
}

/* --------------- INPUTS COMMON --------------------- */
.calculator__label {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.calculator__label--margin {
    margin-top: 2rem;
}

/* ---------------- END INPUTS COMMON ---------------- */
.title {
    margin-bottom: 2rem;
    text-align: center;
}

.title--secondary {
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-align: center;
}

@media(max-width:700px) {
    .title--secondary {
        font-size: 6vw;
    }
}

.calculator__items {
    display: flex;
    flex-direction: column;
    gap: 3rem;

}

.calculator__item {
    background-color: rgb(225, 91, 178);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
}

/* ----------------- RANGE SLIDER ---------------------- */
.range-input__label {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 20px;
    width: fit-content;
    transform: var(--ratio);
    position: absolute;
    display: block;
    font-size: 2rem;
    font-weight: 300;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    min-width: 2rem;
    text-align: center;
    color: #131a20;
    border-radius: 0.5rem;
    border: 0.1rem solid #51dcff;
    background: #51dcff;
    background-color: rgb(81, 220, 255);
    background-image: none;
}

.calculator__range-container {
    padding-top: 4rem;
    display: inline-block;
    position: relative;
    width: 100%;
}

.calculator__range-input {
    width: 100%;
}


/* ------------------- RADIO ---------------------- */

.calculator__radio {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 30px;
    height: 30px;
    z-index: 2;
    cursor: pointer;
}

.calculator__fake-radio::before {
    content: '';
    width: 0px;
    position: absolute;
    height: 0px;
    background-color: black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.calculator__fake-radio {
    cursor: pointer;
    --fake-radio-width: 19px;
    width: var(--fake-radio-width);
    height: var(--fake-radio-width);
    min-width: var(--fake-radio-width);
    border-radius: 50%;
    background-color: rgb(125, 3, 83);
    position: relative;
}

.calculator__radio:checked+.calculator__fake-radio::before {
    transition: .3s all linear;
    width: 10px;
    height: 10px;
}

.calculator__input-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.calculator__input-group:has(.calculator__range) {
    margin-top: 0;
}

.calculator__submit {
    padding: 2rem 3rem;
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 3rem;
    background-color: rgb(254, 154, 224);
    border-radius: 8px;
    font-size: 20px;
}

.calculator__fake-checkbox {
    width: 23px;
    height: 23px;
    border: 1px solid blue;
    display: block;
    position: relative;
}

.calculator__checkbox {
    opacity: 0;
    z-index: 2;
    position: absolute;
    width: 20px;
    height: 20px;
}

.calculator__fake-checkbox::before {
    content: url("/static/img/check.svg");
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-size: contain;
    display: block;
    scale: 0;
    transition: .3s all ease-in;
}

.calculator__checkbox:checked+.calculator__fake-checkbox::before {
    scale: 1;
}

.calculator__fake-container {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.result {
    padding-bottom:10rem;
}
.result__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result__text {
    line-height: 1.7
}

.result__delusion {
    padding: 2rem;
    background: rgb(225, 91, 178);
    border-radius: 16px;
}

.result__delusion img {
    border-radius: 8px;
    width: auto;
    max-height: 520px;
    margin-inline: auto;
    display: block;
    max-width:100%;
}

.result__delusion figcaption {
    text-align: center;
    margin-top: 2rem;
}

.result__feedback {
    text-decoration: underline;
}
.result__new {
    margin-top: 2rem;
    display: block;
    margin-bottom: 2rem;
    text-align: center;
}

.answer {
    color: #51dcff;
}

/* ------------------- ABOUT ---------------------- */
.about__text {
    margin-top: 2rem;
    line-height: 1.7;
}

.about__text:first-child {
    margin-top: 0;
}

.about__eng {
    color: #5000ff;
}

/* ------------------- RESOURCES ---------------------- */
.resources__list {
    color: var(--textBlue)
}

.resources__item {
    margin-top: 1.5rem;
}

.resources__item:first-child {
    margin-top: 0;
}

.resources__remark {
    color: #00000042;
}
.resources__title {
      color: var(--textBlue);
    margin-top: 1.5rem;
}
.resources__title {
    margin-bottom: 1.5rem;
}
.resources__age , .resources__race {
    min-width: 90px;
    max-width: 100px;
    display: inline-block;
}
.resources__race {
    min-width: 380px;
}
.resources__age-list, .resources__race-list {
    display:flex;
    flex-direction:column;
    gap:1rem;
    margin-top: 1.5rem;
}

.resources__sphere-details th {
    width:100%;
    background-color: #0000ff24;
    padding: 15px 0;
    border-radius: 8px;
}

.resources__sphere-salary-item {
    text-align: center;
}
.resources__sphere-age-item {
    text-align: center;
}
.resources__sphere-table tr {
    margin-top: 1rem;
}
.
.resources__sphere-table tr:first-child {
    margin-top: 0;
}
.resources__sphere-table {
    border-spacing: 30px;
}
.resources__sphere-salary--header, .resources__sphere-age--header {
    text-align:left;
}
.resources__sphere-details th:first-letter, .resources__sphere-salary--header:first-letter, .resources__sphere-age--header:first-letter, th:first-letter {
    text-transform: uppercase;
}



/* ------------------- FEEDBACK ---------------------- */
.feedback__form {
    display: none;
    opacity: 0;
    translate: 0 25vh;
    transition-property:  display ;
    transition-duration: 1s;
    transition-behavior: allow-discrete;
}
.feedback__form--active {
    display: block;
    translate: 0 0;
    opacity: 1;
    @starting-style {
        opacity:0;
    }
}
.feedback__container {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    margin-top: 2rem;
    background-color: rgb(225, 91, 178);
    padding: 1.5rem;
    border-radius: 8px;
    gap: 2rem;
}
.feedback__input {
    display: block;
    margin-top: 1rem;
    padding: 0.3rem .5rem;
    border-radius: 4px;
}
.feedback__input--description {
    width: 100%;
}
.feedback__submit {
    max-width: 300px;
    padding: .3rem .5rem;
    border-radius: 4px;
    margin-right: auto;
    background-color: #51dcff;
}
.feedback-result__container {
    padding:1.5rem;
    background-color: rgb(225, 91, 178);
    border-radius: 16px;
}
.feedback__result {
    line-height: 1.8;
}

