@import './rules.css';

:root {
    --green: #3A5D4D;
    --orange: #D17A2A;
    --border-radius: 24px;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    font-family: 'adelphi-pe-variable', sans-serif;
}

body {
    margin: 0;
    color: #212121;
    height: 100%;
}

nav {
    height: 90px;
    background-color: var(--green);
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 100;
}

.nav-container {
    width: 88.5%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img.logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s;
}

nav ul li a:hover {
    opacity: 0.8;
}

.search-icon svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

h1 {
    font-size: 58px;
    margin: 16px 0px;
}

h2 {
    font-size: 28px;
    margin: 8px 0px;
}

h1, h2 {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
}

.header {
    height: 50%;
    background-image: url('/public/header.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    color: white;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.info-register {
    width: 350px;
    padding: 32px;
    background-color: var(--orange);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: var(--border-radius);
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(80%);
    z-index: 10;
}

.info-register button {
    margin-top: 8px;
}

p,
a,
span,
button,
label {
    font-size: 16px;
    line-height: 24px;
    font-family: "area-normal", sans-serif;
}

.orange {
    color: var(--orange);
}

.section {
    width: 88.5%;
    max-width: 1440px;
    display: flex;
    height: fit-content;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    position: relative;
}

.fixed-height {
    height: 350px;
}

.row {
    margin-bottom: 120px;
}

.picture {
    height: 100%;
    position: relative;
}

.picture img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.picture .chip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
}

.picture .chip svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.picture .chip text {
    fill: var(--orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

button, input[type="submit"] {
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid var(--orange);
    background-color: white;
    color: var(--orange);
    cursor: pointer;
}

button.inverted, input[type="submit"] {
    background-color: var(--orange);
    color: white;
}

.buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 120px;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    display: none;
}

.popup .close-popup {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    border: 1px solid var(--orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    color: var(--orange);
    font-size: 12px;
}

.popup .form {
    border: 1px solid var(--orange);
    border-radius: var(--border-radius);
    width: 60%;
    max-width: 800px;
    padding: 40px;
    background-color: white;
    position: relative;
}

.popup .form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup .form h2 {
    color: var(--orange);
    margin-bottom: 32px;
}

.popup .form .form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popup .form label {
    font-size: 14px;
}

.popup .form input:not([type="checkbox"]) {
    width: 100%;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.4);
    padding: 0 12px;
}

.popup .form input[type="checkbox"] {
    accent-color: var(--orange);
}
.popup .form input[type="submit"] {
    border: 1px solid var(--orange);
    margin-top: 18px;
}
.popup .form input:focus-visible {
    border: 1px solid rgba(0, 0, 0, 0.7);
    outline: unset;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2E4A3E;
    width: 100%;
    height: 90px; 
    margin-top: 120px;
}

.footer-content {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    width: 100%;
}