/* Basic styles for the website template */

@font-face {
    font-family: 'Bimbo Pro';
    src: url('/fonts/bimbo/Bimbo%20Trial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    background-color: #f4f4f4;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    margin: 0;
    height: 90px;
}

nav {
    /* margin-top: 1rem; removed for flex layout */
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: orange;
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
    transform: translateX(5px) translateY(-2px);
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
}

.image-stack {
    position: relative;
    /* float: right; removed */
    margin-left: 20px;
}

.image-stack img {
    height: 350px;
}

.offset {
    position: absolute;
    top: 70px;
    left: 140px;
    z-index: 2;
    transform: rotate(5deg);
}

.section-box {
    border: 2px solid orange;
    padding: 0 1rem 1rem 1rem;
    margin-top: 0;
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.section-box h3 {
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

h3 {
    font-family: 'Bimbo Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #0056b3;
    font-size: 1.5em;
}

.nav-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: orange;
    border-radius: 20px;
    padding: 5px 10px;
}

.nav-link:hover {
    background-color: orange;
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
}

.exercice .nav-link {
    margin-bottom: 0.5rem;
}

article {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #f4f4f4;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer img {
    height: 50px;
    margin-right: 10px;
}

footer p {
    color: #0056b3;
}

.exercice {
    border: 2px solid orange;
    padding: 0.5rem;
    text-align: center;
    margin: 1rem auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.exercice h3 {
    width: 100%;
    margin: 0 0 0.5rem 0;
}

.exercice .nav-link {
    margin-bottom: 0;
}