/* Styles personnalisés */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #c3e4e0;
}

main {
    flex: 1;
}

/* Styles pour la section admin */
body.admin_page {
    background-color: #ffffff;
}

/* Styles pour les cartes */
.card {
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour les boutons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Styles pour la navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les formulaires */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Styles pour la sidebar */
.sidebar-size {
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Styles pour les overlays */
.highlight {
    cursor: pointer;
}

.admin .highlight:hover {
    border: 1px solid #ffffff;
}
.small-text {
    font-size: 0.7rem;
}

/* CSS added by Paolo */
:root {
    --aqua: #c3e4e0;
    --darkeraqua: #82bbb5;
}

/*** WELCOME *** /

/* FONTS */
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Regular-uzYDFTz.woff2") format("woff2"),
    url("../fonts/Satoshi-Regular-ghn2KOo.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Italic-mENiGmi.woff2") format("woff2"),
    url("../fonts/Satoshi-Italic-X8l0FYU.woff") format("woff");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Medium-5gnWmWW.woff2") format("woff2"),
    url("../fonts/Satoshi-Medium-d40Dlrm.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-MediumItalic-TajHYIy.woff2") format("woff2"),
    url("../fonts/Satoshi-MediumItalic-0QgagaQ.woff") format("woff");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.welcome {
    font-family: "Satoshi", sans-serif;
    font-weight: 400;
    color: #000;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url("../images/welcome_page_bg-lTC6bhI.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.riga {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.welcome h1,
.welcome h2 {
    font-size: clamp(3.5em, 7vw, 10em);
    font-weight: 500;
    text-align: center;
    line-height: 1.05;
}
.welcome h2 {
    font-size: clamp(1.2em, 4vw, 3em);
    margin-top: 0.5em;
}
.welcome a.button {
    padding: 0.5em 1em;
    font-size: clamp(1em, 2vw, 1.5em);
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border-radius: 0.3em;
    transition: all 0.3s ease;
}
.welcome a.button:hover {
    background-color: #fff;
    color: #000;
}

/* HEADER  */
.welcome .header.riga {
    align-items: flex-start;
    padding: 1.5em 5% 0 5%;
}
.welcome .header .logo {
    flex: 0 100%;
}
.welcome .header .logo:first-child img {
    max-width: 120px;
    margin-bottom: 1em
}
.welcome .header .logo:last-child {
    display:flex;
    justify-content: flex-start;
}
.welcome .header .logo:last-child img {
    min-width: 300px;
    max-width: 550px;
}

/* CONTENT */
.welcome .languages.riga {
    margin-top: 2em;
    justify-content: center;
    gap: 1.5em;
    transition: all 0.3s ease;
}
.welcome .languages.riga a {
    flex: 0 35%;
    text-align: center;
}

/* FOOTER  */
.welcome .footer.riga {
    padding: 0 5% 1.5em 5%;
    justify-content:center;
    gap: 1.5em;
}
.welcome .footer.riga a {
    color:#000;
    border: 2px solid #000;
    background-color: transparent;
    padding: 0.25em .75em;
    font-size: clamp(1em, 3vw, 1.2em);
    font-weight: 500;
}

.welcome .footer.riga a:hover {
    color:#fff;
    background-color: #000;
}

/* Desktop version */
@media (min-width: 960px) {
    /* HEADER  */
    .welcome .header.riga {
        padding-top: 3em;;
    }
    .welcome .header .logo {
        flex: 0 40%;
    }
    .welcome .header .logo:first-child img {
        max-width: 250px;
        margin-bottom: 0;
    }
    .welcome .header .logo:last-child {
        justify-content: flex-end;
    }

    /* CONTENT */
    .welcome .languages.riga {
        margin-top: 3em;
        gap: 2em;
    }
    .welcome .languages.riga a {
        flex: 0 180px;
    }

    /* FOOTER  */
    .welcome .footer.riga {
        padding-bottom: 3em;
        justify-content: flex-end;
        gap: 2em;
    }
}



/*** HOME ***/

/* Highlight  (let's see if this animated version likes it better...) */
@keyframes linearGradientMove {
    100% {
        background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px;
    }
}

.highlight:hover {
    background: linear-gradient(90deg, #fff 50%, transparent 0) repeat-x,
    linear-gradient(90deg, #fff 50%, transparent 0) repeat-x,
    linear-gradient(0deg, #fff 50%, transparent 0) repeat-y,
    linear-gradient(0deg, #fff 50%, transparent 0) repeat-y;
    background-size: 10px 2px, 10px 2px, 2px 10px, 2px 10px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    cursor: pointer;
    animation: linearGradientMove 0.3s infinite linear;
}

/* Sidebar */
.position-absolute.top-0.end-0.h-100.bg-white.shadow-lg.sidebar-size {
    overflow-y: hidden;
    /* transform: translate(0, 50%); conflict */
    height: 85vh !important;
    width: min(420px, 95vw) !important; /* removable if the unique width of the window is set from the admin panel */
    border-radius: 0 0 0 0.75em;
}

.sidebar-text {
    overflow-y: auto;
    height: calc(85vh - 100px);
    padding-right: 20px;
}

.sidebar-text a {
    border: 2px solid var(--darkeraqua);
    border-radius: 0.5em;
    padding: 0.5em;
    text-align: center;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.sidebar-text a:hover {
    background-color: var(--aqua);
}

.sidebar-text a .img-fluid {
    width: 100%;
    max-width: 150px !important;
    max-height: 150px !important;
    width:auto;
    height:auto;
}

.overflow-y-auto {
    height: calc(100vh - 60px);
    padding-right: 0 !important;
}

/* Sidebar header */
.p-2.border-bottom.d-flex {
    background-color: var(--darkeraqua);
}

.p-2.border-bottom.d-flex > button {
    height: 28px;
}

.p-2.border-bottom.d-flex > button > svg {
    font-size: 1rem;
}

.language-buttons {
    width: 160px;
    display: flex;
    justify-content: space-between;
}
.btn-secondary {
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-bg: #000;
}
.btn-outline-danger,
.btn-outline-secondary {
    --bs-btn-color: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: rgba(0, 0, 0, 0.2);
}
.thumb { position: relative; display: inline-block; }
.thumb__img { display: block; width: 400px; height: auto; }
.thumb__overlay {
    position: absolute;
    left: var(--left);
    top: var(--top);
    width: var(--w);
    height: var(--h);
    border: 2px solid #e22;
    box-shadow: 0 0 0 200vmax rgba(226,34,34,.15) inset;
    pointer-events: none;
}

/**************************impressum-project*/
.impressum-project {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: none;
}
.impressum-project .page_row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.impressum-project h1,
.impressum-project h2 {
    font-size: clamp(3.5em, 7vw, 10em);
    font-weight: 500;
    text-align: center;
    line-height: 1.05;
}
.impressum-project h2 {
    font-size: clamp(1.2em, 4vw, 3em);
    margin-top: 0.5em;
}
.impressum-project .nobg h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    margin: 2em 5% 0 5%;
}

.impressum-project a.button {
    padding: 0.5em 1em;
    font-size: clamp(1em, 2vw, 1.5em);
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border-radius: 0.3em;
    transition: all 0.3s ease;
}
.impressum-project a.button:hover {
    background-color: #fff;
    color: #000;
}

/* HEADER  */
.impressum-project .header.page_row {
    align-items: flex-start;
    padding: 1.5em 5% 0 5%;
}
.impressum-project .header .logo {
    flex: 0 100%;
}
.impressum-project .header .logo:first-child img {
    max-width: 120px;
    margin-bottom: 1em
}
.impressum-project .header .logo:last-child {
    display:flex;
    justify-content: flex-start;
}
.impressum-project .header .logo:last-child img {
    min-width: 300px;
    max-width: 550px;
}



/* FOOTER  */
.footer.footer_row {
    padding: 0 5% 1.5em 5%;
    justify-content:center;
    gap: 1.5em;
}
.footer.footer_row a {
    color:#000;
    border: 2px solid #000;
    background-color: transparent;
    padding: 0.25em .75em;
    font-size: clamp(1em, 3vw, 1.2em);
    font-weight: 500;
}

.footer.footer_row a:hover {
    color:#fff;
    background-color: #000;
}

/* IMPRESSUM / PROJECT */
.impressum, .project {
    padding: 2em 5%;
    font-size: clamp(1em, 4vw, 1em);
    line-height: 1.5;
}
.project {
    column-count: 1;
}
.project p {
    margin-bottom: 1em;
}
.project p.note {
    font-size: .75em;
    margin-top: 3em;
}

.project p a {
    color: #000;
    font-weight: bold;
    text-underline-offset: .3em;
    transition: all 0.3s ease;
}

.project p a:hover {
    text-decoration: none;;
}



/* Desktop version */
@media (min-width: 960px) {
    /* HEADER  */
    .impressum-project .header.page_row {
        padding-top: 3em;;
    }
    .impressum-project .header .logo {
        flex: 0 40%;
    }
    .impressum-project .header .logo:first-child img {
        max-width: 150px;
        margin-bottom: 0;
    }
    .impressum-project .header .logo:last-child {
        justify-content: flex-end;
    }


    .highlight:hover {
        background-size: 10px 4px, 10px 4px, 4px 10px, 4px 10px;
    }
    /* Sidebar */
    .position-absolute.top-0.end-0.h-100.bg-white.shadow-lg.sidebar-size {
        height: 60vh !important;
    }
    .sidebar-text {
        height: calc(60vh - 100px);
    }

    /* IMPRESSUM / PROJECT */
    .impressum, .project {
        margin: 0 auto;
        max-width: 960px;
    }
    .project {
        max-width: 1400px;
        column-count: 2;
        column-gap: 2em;
    }


    /* FOOTER  */
    .impressum-project .footer.footer_row {
        padding-bottom: 3em;
        justify-content: flex-end;
        gap: 2em;
    }
}
