/* Crée par Diego Fernandez 15 janvier 2025 */
@import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "ADLaM Display", serif;
}

header {
    display: flex;
    background-color: #002154;
    flex-direction: row;
    height: 6em;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    bottom: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.7);
    overflow-x: hidden;
    transition: 0.5s;
    background-color: #002154;
}

.overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overlay .closebtn {
    position: absolute;
    color: white;
    top: 0px;
    right: 0px;
    font-size: 4em;
}

.menu_button {
    color: white;
    text-align: right;
    border-color: #002154;
    border-width: 0px;
    border-style: solid;
    border-radius: 12px 12px 12px 12px;
    transition: 0.2s;
}

.menu_button i {
    font-size: 2.5em;
    width: 100%;
}

.menu_button:hover {
    background-color: #0074da;
    color: white;
}

.titre {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.titre a {
    display: flex;
    align-items: center;
    color: #0074da;
    font-weight: bold;
    font-size: 2em;
    width: 100%;
}

.logo {
    height: 3em;
    width: 3em;
}

#content {
    width: 100%;
    display: flex;
}

#nav_bar {
    display: flex;
    flex-direction: column;
    width: 30%;
    text-align: center;
    background-color: #002154;
}

#nav_bar div {
    margin-bottom: 2em;
}

.nav_titre {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: white;
    text-decoration: underline;
}

.nav_titre_clickable {
    font-size: 1.5em;
    color: white;
    
}

.nav_titre_clickable h2 {
    transition: 0.3s;
    margin-bottom: 0.5em;
}

.nav_titre_clickable h2:hover {
    background-color: #0074da;
    border-radius: 1em;
    font-size: 1.6em;
}

.selected {
    color: cyan;
}

.nav_link li {
    font-size: 1.7em;
    padding-block: 4px;
    color: white;
    transition: 0.3s;
}

.nav_link li a {
    display: block;
    color: white;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav_link li:hover {
    background-color: #0074da;
    border-radius: 1em 1em 1em 1em;
    font-size: 1.9em;
}

.nav_link li .selected {
    color: cyan;
}

.loaded_page {
    width: 100%;
    text-align: center;
    background-color: slategrey;
}

.page_title {
    font-size: 4em;
    color: white;
    margin-bottom: 1em;
}

.item_box {
    text-align: left;
    margin-bottom: 3em;
}

.item_box h1 {
    font-size: 3em;
    color: white;
    margin-left: 1em;
}

.item_box h2 {
    font-size: 2em;
    color: white;
    margin-top: 1em;
    margin-left: 1.5em;
}

.item_box p {
    font-size: 1.5em;
    color: white;
    margin-left: 2em;
}

.item_box a {
    color: #0074da;
}

.item_box a:hover {
    color: cyan;
}

.table {
    overflow: hidden;
    display: flex;
    width: 100%;
}

.table table {
    border: 1px solid white;
    height: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
}

.table caption {
    caption-side: top;
    text-align: left;
}

.table th {
    border: 1px solid white;
    background-color: #002154;
    color: #0074da;
    padding: 5px;
    font-size: 2em;
}

.table td {
    border: 1px solid white;
    background-color: #002154;
    color: #0074da;
    padding: 1em;
    font-size: 2.5em;
}

.sprite {
    width: 8em;
    margin-left: 3em;
}

.craft {
    width: 100%;
}

@media only screen and (max-width: 1000px) {
    #nav_bar {
        display: none;
    }

    .item_box h1 {
        margin-left: 0.5em;
        font-size: 2em;
    }
    
    .item_box h2 {
        margin-left: 0.7em;
        font-size: 1.5em;
    }

    .item_box p {
        margin-left: 1em;
        font-size: 1.2em;
    }

    .sprite {
        margin-left: 1em;
    }
}

@media only screen and (max-width: 500px) {
    .titre h1 {
        font-size: 1.2em;
    }

    .menu_button i {
        font-size: 1.5em;
    }

    .table td {
        border: 1px solid white;
        background-color: #002154;
        color: #0074da;
        padding: 1em;
        font-size: 1.5em;
    }

    .table td img {
        margin-right: 1em;
    }

    .page_title {
        font-size: 3em;
    }
}