@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

html {
    background-color: #000;
    z-index: -2;
    font-size: 1vw;
}

body {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.3rem;
    background-image: url(../Assets/Sprites/back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    text-decoration-line: none;
    border-radius: 18px;
    height: 2.5rem;
}

.main_container {
    width: 80vw;
    max-width: 80rem;
    margin: 2.8rem 10rem 0rem 10rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.content {
    flex: 1;
    margin-bottom: 5.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    font-size: 1.2rem;
    display: flex;
    position: sticky;
    top: 1.7rem;
    z-index: 1;
    transition: backdrop-filter 0.5s ease, background-color 0.5s ease; 
    background-color: transparent;
    border-radius: 50px;
    margin-bottom: 2.2rem;
}

header.blur {
    backdrop-filter: blur(7px);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(70, 122, 127, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    border-radius: 50px;
}

header.blur::before {
    opacity: 1;
}

.nav-icon {
    display: none;
}

.nav-text.header {
    text-shadow: none;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0px 8.5rem 0px 0px;
    align-content: center;
    align-items: center;
}

nav ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    text-shadow:
        -0.5px -0.5px 0 #000,
        0.5px -0.5px 0 #000,
        -0.5px 0.5px 0 #000,
        0.5px 0.5px 0 #000;
    padding-bottom: 0.222rem;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0.111rem;
    background-color: #42c1c7;
    transition: width 0.4s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul a.text-button-color::after, nav ul a.logo-ref::after {
    display: none;
}

.logo-header {
    width: 6.3rem;
    margin-left: 2.5rem;
    height: 2.45rem;
}

.header-button a, .form-group button {
    background: linear-gradient(90deg, #42c1c7, #7be8ee);
    border: none;
    padding: 0.56rem 1.39rem;
    cursor: pointer;
    border-radius: 18px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: 1.22rem;
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.3s ease;
    align-content: center;
    align-items: center;
    display: flex;
    height: min-content;
}

.header-button a:hover, .form-group button:hover {
    background: linear-gradient(90deg, #7be8ee, #42c1c7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 173, 255, 0.4);
    transform: scale(1.02);
}

.form-group.story {
    height: 11rem;
    width: 34rem;
}

.form-group button {
    margin-top: 2.22rem;
}

.header-button {
    margin-right: 0px;
}

.text-button-color {
    color: #0f1f23;
}

.button-img {
    margin-right: 0.56rem;
}

h1 {
    color: #42c1c7;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 2.22rem;
}

.application-form {
    position: relative;
    text-align: left;
}

.form-group input, .form-group textarea {
    padding: 0.56rem;
    border: 2px solid #42c1c7;
    border-radius: 45px;
    background-color: white;
    color: #000;
    font-size: 0.89rem;
    font-family: 'Gilroy', sans-serif;
    padding-left: 1.11rem;
}

.inp {
    margin-bottom: 1.11rem;
    width: 40%;
}

.inp.story {
    height: 8rem;
    width: 34rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.8rem;
    line-height: 1.67rem;
    border-radius: 18px;
    resize: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.form-group input::placeholder {
    color: gray;
    opacity: 0.5;
    vertical-align: top;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.83rem;
}

.checkbox {
    display: flex;
    align-items: center;
    width: 300px;
}

.form-group p {
    margin: 0px 0 0.83rem 0px;
    color: #42c1c7;
    font-weight: 700;
    width: 22.22rem;
}

.form-group label {
    display: block;
    color: #ffffff;
    align-items: center;
}

.form-group label p {
    color: #fff;
    font-weight: 400;
}

.form-group a {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-img {
    margin-right: 0.28rem;
    vertical-align: middle;
}

footer {
    text-align: center;
    margin-bottom: 1.67rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.foot1, .foot2, .foot3, .foot4 {
    text-align: left;
    width: 19.44rem;
    white-space: pre-line;
}

.foot1 {
    width: 25rem;
}

.logo-footer {
    width: 6.3rem;
    height: 2.45rem;
}

.logo-foot {
    width: min-content;
    align-content: center;
    margin-top: -1rem;
}

.logo-foot, .foot1 p, .foot2 p, .foot3 p, .foot4 p {
    line-height: 1.67rem;
}

footer p, footer a {
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    margin-top: 0px;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1740px) {
    html {
        font-size: 0.9rem;
    }

    nav ul li {
        margin: 0px 8.5rem 0px 0px;
    }
}

@media (max-width: 1440px) {
    html {
        font-size: 0.8rem;
    }

    nav ul li {
        margin: 0px 7.5rem 0px 0px;
    }
}

@media (max-width: 1200px) {

    html {
        font-size: 0.7rem;
    }

    nav ul li {
        margin: 0px 8rem 0px 0px;
    }

    .button-img {
        margin-right: 0;
        width: 1.67rem;
    }
}

@media (max-width: 1030px) {

    html {
        font-size: 0.6rem;
    }

    nav ul li {
        margin: 0px 7rem 0px 0px;
    }

}

@media (max-width: 900px) {
    html {
        font-size: 10px;
    }

    nav ul li {
        margin: 0px 5rem 0px 0px;
    }
}