*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
/* @keyframes fadein {
    0%{background-image: url(images/Chabanne-Architectes-Patinoire-Douai-VUE-PATINOIRE.jpg)};
    33.33%{background-image: url(images/Chabanne-Saint-Etienne-VUE-AER.jpg)};
    66.67%{background-image: url(images/Chabanne-Saint-Etienne-VUE-OUEST.jpg);}
    100%{background-image: url(images/Chabanne-Architectes-Patinoire-Douai-VUE-PATINOIRE.jpg);}
} */

body {
    z-index: -1;
    font-family: Arial, Helvetica, sans-serif;
    /* background: #424141; */
    background: url(images/rugby-scrum.webp) no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    
    /* background: no-repeat center center fixed; */
    /* animation: fadein 15s ease-in-out infinite both; */
}
body::after {
    z-index: 0;
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    pointer-events: none;
}
nav {
    z-index: 3;
    background: #f2f2f2;
    padding: 10px;
    text-align: center;
    position: fixed;
    width: 100%;
}
nav a {
    text-decoration: none;
    font-size: 18px;
    margin: 0 10px;
    padding: 8px;
    color: #333;
}
nav a:hover {
    background-color: #e23c5d;
    border-radius: 5px;
    color: white;
}

.main-content {
    z-index: 1;
    display: flex;
    padding: 60px 20px 0;
}
.items-container {
    z-index: 2;
    flex-shrink: 0;
    padding: 10px;
    width: 300px;
    background: #f1f1f1;
    border-radius: 3px;
    margin: 10px;
    cursor: move;
    align-self: flex-start;
}
.top-container {
    display: flex;
    justify-content: space-between;
}
.top-container h2 {
    width: 90%;
    overflow-wrap: break-word;
}
.top-container button, li button {
    border-radius: 5px;
    width: 20px;
    height: 20px;
    border: none;
    background: #e23c5d;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.item {
    padding: 15px 5px;
    margin: 10px 0;
    background: #f8f8f8;
    box-shadow: 0 4px 1px rgba(0,0,0,0.2);
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    width: 100%;
}
.item p {
    width: 90%;
    height: fit-content;
    overflow-wrap: break-word;
}
.add-item-btn, .add-container-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
}
form {
    display: none;
    padding: 5px;
    position: relative;
}
.top-form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-content form label {
    display: block;
    font-size: 18px;
    margin: 10px 0;
}
.main-content form input {
    display: block;
    width: 100%;
    padding: 5px;
    font-size: 16px;
}
.validation-msg {
    display: block;
    color: crimson;
    font-size: 16px;
    padding: 5px 0;
}
.close-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}
button[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    margin-top: 5px;
    cursor: pointer;
}

/* Add New Container */
.add-new-container {
    z-index: 2;
    flex-shrink: 0;
    padding: 10px;
    width: 300px;
    background: #f1f1f1;
    border-radius: 3px;
    margin: 10px;
    align-self: flex-start;
}
.add-container-btn {
    margin-top: 5px;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    body {
        display: flex;
        justify-content: center;
    }

    .main-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: fit-content;
    }
}