:root {
    /* Colors */
    --primary: #FDBC44;
    --secondary: #141a2c;
    --text-light: #FFFFFF;
    --light-grey: #D5D5D5;
}

/* No margin*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

header {
    display: flex;
    align-items: center;
    height: fit-content;
    justify-content: space-between;
    padding: 3px 120px;

    color: white;
    background: var(--secondary);
}

header .logo a {
    color: var(--primary);
    font-weight: 700;
    font-size: 30px;
    margin-right: 1rem;

    font-family: "Arimo Hebrew Subset Italic", sans-serif;
    font-style: italic;
    line-height: normal;
    text-decoration: none;
}

header .nav-list {
    list-style: none;
    display: flex;
    gap: 77px;
}

header .nav-list li a {
    font-family: Inter, sans-serif;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-size: 20px;
    text-decoration: none;

    color: var(--text-light);
    text-align: center;
}

header .nav-list li.active a {
    border-bottom: 4px solid var(--primary);
}

header .user-avatar {
    width: 40px;
    height: 40px;
    background: #949494;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2rem;
    text-decoration: none;
}

@media (max-width: 1000px) {
    header .nav-list {
        gap: 2rem;
    }
    header .logo {
        font-size: 25px;
    }
}
@media (max-width: 800px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    header .logo {
        font-size: 18px;
    }

    header .nav-list {
        gap: 1rem;
    }

    header .nav-list li a {
        font-size: 15px;
    }

    header .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}


/* HTML, Body */
html {
    background: white;
}

html {
    height: 100%;
    width: 100% !important;
    /*scrollbar-gutter: stable;*/
}
@media (pointer:none), (pointer:coarse) {  /* If 'touchmode' => mobil */
    html {
        scrollbar-gutter: auto;
        scrollbar-width: none;
        overflow-y: scroll;
    }
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    background: white;
}

main {
    flex: 1;
    background: #FFFFFF;
}

/* Footer */
.footer {
    min-height: fit-content;
    height: fit-content;
    max-height: fit-content;
    padding: 25px 0;
    position: relative;
    background: var(--secondary);
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 70px;
}

.footer a {
    color: var(--primary);
    font-size: 20px;
    text-decoration: none;
}

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

@media (max-width: 800px) {
    .footer a {
        font-size: 14px;
    }
}

.button-primary {
    background-color: #141A2C;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    outline: none;
    box-shadow: none;
}

.button-primary:hover {
    background-color: #1f2c59;
}

.button-secondary {
    background-color: #d0d0d0;
    color: #141A2C;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    outline: none;
    box-shadow: none;
}

.button-secondary:hover {
    background-color: #f2b324;
}



/* custom error */
#custom-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);

    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#custom-error-overlay.active {
    display: flex;
}

#custom-error-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--secondary);
    background: #fff;
    border-radius: 8px;
    min-width: fit-content;
    width: 33%;
    max-width: 95%;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

#custom-error-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    font-size: 1.5rem;
    color: var(--secondary);
}

#custom-error-text {
    text-align: center;
}

#custom-error-close {
    align-self: center !important;
    align-content: center;
}


.form-btn {
    color: var(--secondary);
    background: var(--primary);
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border: none;

    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.form-btn:hover {
    background-color: #e0a900;
}

