header {
    top: 0;
    position: sticky;
    height: 7em;
    background-color: #db261d;
    padding: 0.5em 2em;
    box-shadow: 0 1em 2em rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

footer {
    background-color: #838383;
    padding-bottom: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    overscroll-behavior: none;
}

h1 {
    text-align: center;
    color: black;
    font: normal;

}

hr {
    width: 60%;
    justify-self: center;
    margin: auto;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    border: 1px solid rgb(186, 186, 186);
}

table {
    width: fit-content;
    border-collapse: collapse;
    text-align: left;
}

th {
    height: 5em;
}

tr {
    transition: background-color 0.7s ease-in-out;
    transform-origin: center left;
    font-size: medium;
    word-break: break-all;
}

tr:hover td {
    background-color: hsla(0, 0%, 100%, 0.414);
}

t

p {
    font-size: larger;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}


.button {
    border: 1px solid black;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 4em;
    min-width: 16em;
    padding-left: 2em;
    padding-right: 2em;
    color: black;
    background-color: transparent;
    border-radius: 1em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
}

.button-disabled {
    border: 1px solid black;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 4em;
    min-width: 16em;
    padding-left: 2em;
    padding-right: 2em;
    color: black;
    background-color: rgba(128, 128, 128, 0.659);
    border-radius: 1em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    cursor: default;
    user-select: none;
    -moz-user-select: none;
}

.button:hover {
    background-color: black;
    color: white;
}

.button:active {
    background-color: rgb(0, 161, 24);
    color: white;
}

.top_nav {
    float: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 65%;
    justify-content: space-between;
    width: fit-content;
}

.top_nav div a img {
    width: 100%;
    height: 100%;
    transition: transform 0.15s ease-in-out;
}

.top_nav div a:hover img {
    transform: scale(1.05);
}

.searchbar {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    padding: 0.5em;
    padding-left: 1em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 1em;
    text-align: left;
}

.nav_container {
    height: 100%;
    display: flex;
    align-items: center;
}

.n_c_1 {
    flex: 1;
    justify-content: left;
}

.n_c_2 {
    height: 50%;
    flex: 2;
    justify-content: center;
    align-items: center;
    display: flex;
}

.n_c_3 {
    display: flex;
    flex: 1;
    justify-content: center;  
    align-items: center;
}


#login {
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}

#login:hover {
    color: #fff903;
    transition: 0.3s ease-out;
}

.footer {
    width: 100%;
    background-color: #838383;
    color: #fff;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 auto;
    flex-direction: row;
}

.footer-heading {
    display: flex;
    flex-direction: column;
    margin-right: 4rem;
}

.footer-heading h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-heading a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5;
}

.footer-heading a:hover {
    color: #db261d;
    transition: 0.3s ease-out;
}

.footer-email-form h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#footer-email {
    width: 250px;
    height: 40px;
    border-radius: 4px;
    outline: none;
    border: none;
    padding: 0.5em;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#footer-email::placeholder {
    color: #b1b1b1;
}

#footer-email-btn {
    width: 150px;
    height: 40px;
    border-radius: 4px;
    background-color: #db261d;
    outline: none;
    border: none;
    color: white;
    font-size: 1rem;
}

#footer-email-btn:hover {
    cursor: pointer;
    background-color: #fff903;
    color: #838383;
    transition: all 0.3s ease-out;
}

.content_container {
    min-height: 100vh;
}

.vl {
    border-left: 2px solid black;
    height: 2em;
    margin-left: 1em;
    margin-right: 1em;
}

.filter-and-sort {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 1em 2em;
    height: auto;
    background-color: #00000010;
    flex-wrap: wrap;
    width: 100%;
}

.filtering {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.sorting {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.sorting select {
    height: 2rem;
    font-size: 1em;
}

.sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    height: 2em;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}

.sort-btn:hover {
    transform: scale(1.1);
}

.sort-btn img {
    width: 90%;
    height: auto;
    object-fit: contain;
}

.filtering select,input {
    height: 2rem;
    border: 1px solid black;
    padding: 0.2em;
    border-radius: 0.5em;
}

.fewo_list a {
    text-decoration: none;
}

.fewo_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1em;
    padding: 2em;
    min-height: fit-content;
    align-self: center;
}

.fewo_item:hover {
    background-color: #00000022;
    border-radius: 1em;
}

.fewo_item:active {
    background-color: #00000022;
}

.fewo_item {
    display: flex;
    flex-direction: column;
}

.fewo_item a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.fewo_item:hover .zoom_image {
    transform: scale(1.1);
}

.fewo_item:hover .zoom_container {
    border-radius: 1em;
}

.fewo_text_container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fewo_item_title {
    font-weight: bold;
    font-size: 1em;
    color: black;
    height: fit-content;
    width: fit-content;
    display: flex;
    padding: 0.5em;
}

.fewo_item_infos {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    font-weight: normal;
    font-size: 1em;
    color: black;
    padding: 0.5em;
    width: 100%;
    box-sizing: border-box;
    row-gap: 0.5em;
    height: 100%;
}

.fewo_item_infos p {
    margin: 0;
}

.fewo_item_infos p:last-of-type {
    font-weight: bold;
    margin-left: auto;
    margin-top: auto;
    align-self: flex-end;
}

.zoom_image {
    width: 100%;
    height: 100%;
    align-content: center;
    object-fit: cover;
    transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.zoom_container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 15em;
    border-radius: 5%; 
    transition: all 200ms cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.zoom_container:hover .zoom_image {
    transform: scale(1.1);
}

.parallax_container {
    position: relative;
    height: 35em;
    width: 100%;
    overflow: hidden;
}

.parallax_image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

select {
    border: 1px solid black;
    padding: 0.2em;
    border-radius: 0.5em;
    background-color: transparent;
}

.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1em;
}

.pagination div {
    color: black;
    float: left;
    padding: 1em 2em;
    text-decoration: none;
    user-select: none;
    -moz-user-select: none;
}

.pagination .selected {
    background-color: #db261d;
    border-radius: 1em;
    color: white;
}
  
.pagination div:hover:not(.selected) {
    cursor: pointer;
    background-color: #ddd;
    border-radius: 1em;
}

.pagination .selected:hover {
    cursor: pointer;
    background-color: #db261db5;
    border-radius: 1em;
}

.dropdown button {
    background-color: #fff903;
    color: black;
    padding: 1em 2em 1em 2em;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
    width: 10em;
    height: fit-content;
    flex-direction: column;
    right: 0;
}

.dropdown-content a {
    color: black;
    background-color: white;
    padding: 1em 1em;
    width: 100%;
    text-decoration: none;
    display: block;
    cursor: pointer;
    user-select: none;
}

.dropdown-content a:hover {
    background-color: #ededed;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover button {
    background-color: #ffee03;
}

.info_card {
    width: 100%;
    height: fit-content;
    justify-items: center;
    margin-top: 1em;
    padding: 1.5em;
    border: 1px black solid;
    border-radius: 1em;
}

.info_card table {
    width: 100%;
}

.warning-box {
    display: flex;
    flex-direction: column;
    padding: 1em;
    position: fixed;
    top: 2em;
    width: 20vw;
    right: 40vw;
    background-color: #ff9892;
    border: 2px solid #db261d;
    padding: 1em;
    z-index: 1000;
    border-radius: 1em;
    overflow: hidden;
}

.warning-box h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.warning-box .close-btn {
    position: absolute;
    top: 0.5em;
    right: 1em;
    cursor: pointer;
}

.warning-box .progress-bar {
    height: 5px;
    background-color: #ffee03;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: shrink 10s linear forwards;
}

@keyframes shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

.success-box {
    display: flex;
    flex-direction: column;
    padding: 1em;
    position: fixed;
    top: 2em;
    width: 20vw;
    right: 40vw;
    background-color: white;
    border: 2px solid #008026;
    padding: 1em;
    z-index: 1000;
    border-radius: 1em;
    overflow: hidden;
}

.success-box h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.success-box .close-btn {
    position: absolute;
    top: 0.5em;
    right: 1em;
    cursor: pointer;
}

.success-box .progress-bar {
    height: 5px;
    background-color: #417a51;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: shrink 10s linear forwards;
}

@media screen and (max-width: 1100px) {
    .success-box {
        top: 2em;
        width: 80vw;
        right: 10vw;
    }

    .warning-box {
        top: 2em;
        width: 80vw;
        right: 10vw;
    }

    .top_nav {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        width: 100%;
        align-items: center;
    }
    
    .nav_container {
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        padding: 0.5em;
    }
    
    .n_c_1 {
        order: 1;
        width: 50%;
    }
    
    .n_c_3 {
        order: 3;
        width: 50%;
    }
    
    .n_c_2 {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .searchbar {
        width: 80%;
        max-width: 400px;
        padding: 0.5em 1em;
        border-radius: 1em;
        border: 1px solid #ccc;
    }

    .filter-and-sort {
        display: flex;
        align-items: center;
        justify-content: left;
        flex-direction: column;
        gap: 0.5em;

        input {
            width: 100%;
        }
    }

    .vl {
        display: none;
    }

    .filtering {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        align-items: start;
        width: 100%;

        select {
            width: 100%;
        }
    }

    .sorting {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        width: 100%;

        select {
            width: 100%;
        }
    }

    .footer {
        height: fit-content;
        padding-top: 2rem;
    }

    .foooter-email-form {
        margin-top: 4rem;
    }
}

@media screen and (max-width: 768px) {
    .foooter-email-form {
        margin-top: 2rem;
    }

    header {
        padding: 0;
    }

    .fewo_item {
        flex-direction: column;
    }

    .fewo_item_title {
        margin-left: 0em;
        margin-top: 0.5em;
    }

    .fewo_item_infos {
        margin-left: 0em;
        margin-top: 0.2em;
    }
}
