@font-face {
    font-family: 'Rockstone';
    src: url('/integfev/assets/fonts/rockstone.woff2') format('woff2');
}
@font-face {
    font-family: 'Horizon';
    src: url('/integfev/assets/fonts/horizon.woff2') format('woff2');
}

:root {
    --color-bordeaux: #671106;
    --color-red: #a7431d;
    --color-blue: #5AB0BB;
    --color-green-blue: #46838A;
    --color-yellow: #C6A726;
    --color-light-beige: #f1d6a8;
    --color-beige: #ecc279;
    --color-light-brown: #c39753;
    --color-brown: #5b3500;
    --color-dark-brown: #322111;
    --color-orange: #ff9f00;
    --color-black: #121212;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


body {
    display: flex;
    flex-direction: column;
    background-color: var(--color-black);
    color: #ffffff;
    margin: 0;
    height: 100dvh;
    scroll-behavior: smooth;
}

body, button {
    font-family: "Rockstone", "Inter", system-ui;
}

main {
    flex-grow: 1;
    overflow-y: scroll;
    overflow-x: hidden;
}

header {
    display: flex;
    position: sticky;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--color-black);
    height: 5rem;
    padding-right: 1rem;
}

header h1 {
    font-size: 1.2rem;
    text-align: right;
}

header > img {
    margin-left: 1rem;
    width: 3rem;
}

header > .navbar {
    display: none;
    margin-left: 3rem;
    flex : 1;
}

header > .navbar ul {
    width: 20rem;
}

a {
    text-decoration: none;
    color: var(--color-beige);
}

input, select {
    border: solid 4px var(--color-light-brown);
    border-radius: 15px;
    background: #fff;
    font-family: Rockstone, sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
}

input:focus {
    outline: none;
}

.navbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    overflow: hidden;
    width: 100%;
    background: var(--color-black);
}

.navbar > ul {
    list-style-type: none;
    display: flex;
    width: 100%;
    padding: 0;
    font-size: 0.7rem;
}

.navbar > ul > li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar > ul a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #909090;
    text-decoration: none;
    text-align: center;
}

.navbar > ul > a span {
    color: white;
}

.navbar > ul a.selected,
.navbar > ul a:hover {
    color: #ededed;
}

.navbar > ul a.selected {
    /* text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px; */
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: "Horizon", system-ui;
}

h2 {
    font-size: 2rem;
    margin: 0;
}

strong {
    font-family: "Horizon", system-ui;
    font-style: normal;
}

a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 7px;
}

a > svg {
    height: 1rem;
    width: 1rem;
    margin-bottom: 2px;
}

dialog {
    background-color: var(--color-black);
    border-radius: 1rem;
    border: none;
}
.material-symbols-rounded {
    user-select: none;
    font-variation-settings:
            'FILL' 0,
            'wght' 400,
            'GRAD' 0,
            'opsz' 24
}

.modal::backdrop {
    backdrop-filter: blur(5px) brightness(0.7);
}

.modal__close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    cursor: pointer;
    background: white;
    color: var(--color-black);
    border-radius: 100%;
}

.modal__planning {
    width: 90dvw;
    height: 90dvh;
}

.btn {
    padding: 16px 30px;
    border: 5px solid #303030;
    border-radius: 70px;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    overflow-wrap: break-word;
    font-size: 1rem;
    color: var(--color-black);
    background-color: var(--color-beige);
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
    max-width: fit-content;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


.button-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.button-list li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: var(--color-beige);
    padding: 1rem;
    border-radius: 15px;
}

.button-list li a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--color-black);
}

.button-list .defi-name {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.button-list .defi-name:last-child {
    width: 4rem;
}



.button-list li .edit {
    color: #fff;
    background-color: var(--color-brown);
    padding: 0.5rem;
    border-radius: 15px;
}

.background-brown {
    background-color: var(--color-light-brown);
}

.background-beige {
    background-color: var(--color-light-beige);
}

.cancel {
    background-color: var(--color-red);
}

.confirm {
    background-color: var(--color-blue);
}

.shotgun::before, .hds::before, .defi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: no-repeat center/cover fixed;
    filter: blur(10px) brightness(0.5);
    z-index: -1;
}


.defi::before, .hds::before {
    background-image: url("/integfev/assets/background_defis.jpg")
}


@media screen and (min-width: 900px) {
    body .navbar {
        display: none;
    }

    header .navbar {
        display: flex;
    }

}

/*
@media screen and (max-width: 1240px) {
    .navbar {
        position: unset;
    }

    .navbar img {
        position: absolute;
        top: 30px;
        left: 2.5rem;
        height: 48px;
        width: 48px;
    }

    .navbar .btn {
        position: absolute;
        top: 30px;
        right: 2.5rem;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: min(10dvw, 50px);
        padding: 0;
    }
}
*/
