/* Fonts */
@font-face {
    font-family: 'Roboto-Regular';
    src: url('/fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Light';
    src: url('/fonts/Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Thin';
    src: url('/fonts/Roboto-Thin.ttf') format('truetype');
}

.regular {
    font-family: 'roboto-regular';
}

.thin {
    font-family: 'roboto-thin';
}

.light {
    font-family: 'roboto-light';
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    background-color: #faf9f7;
    color: #161615;
    height: 100vh;
    text-decoration: none;
}

/* Common tags style */
a {
    color: #161615;
    text-decoration: none;
}

/* Underline animation on hover */
.underline-animation {
    display: inline-block;
    position: relative;
    color: #161615;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #161615;
    transform-origin: bottom right;
    transition: transform .25s ease-out;
}

.underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Header style */
header {
    position: fixed;
    width: 20%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
    padding: 30px 30px;
    font-size: clamp(100%, 1rem + 2vw, 30px);
}

.header-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nav-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-container {
    padding-bottom: 40px;
}

nav>* {
    padding-top: 10px;
}

/* Main content style */
main {
    margin-left: 20%;
    height: 100%;
}

/* Home page style */
.home {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 100%;
    box-sizing: border-box;
    padding: 30px;
}

.image-container {
    height: 100%;
    max-width: 100%;
}

.image-container>img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

/* Gallery style */
.gallery {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
    padding: 30px 30px;
}

.gallery::after {
    content: "";
    flex-grow: 999;
}

.gallery-item {
    display: block;
    flex-grow: 1;
    height: 35vh;
    position: relative;
}


.gallery-item>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    transition: .5s;
}

.gallery-item>.caption {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    font-size: clamp(100%, 1rem + 2vw, 24px);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: .5s;
}

.gallery-item img:hover+.caption {
    opacity: 1;
}

.gallery-item-fullscreen {
    display: none;
}

.gallery-item-fullscreen:target {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    align-content: center;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 1;
}

.gallery-item-fullscreen>img {
    position: absolute;
    max-width: 95%;
    max-height: 90%;
}

/* A propos */
.apropos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.apropos-container {
    width: 60%;
    font-size: clamp(100%, 1rem + 2vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contact page style */
.contact {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact form {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.contact textarea {
    resize: none;
}

.contact input,
.contact textarea,
.contact button {
    font-size: clamp(100%, 1rem + 2vw, 24px);
}

.contact button {
    background-color: transparent;
    border: none;
}

.contact input,
.contact textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #161615;
    padding-bottom: 10px;
    margin-bottom: 20px;
    outline: none;
}
