:root {
    --primary-color-1: rgb(166,99,41);
    --primary-color-2: rgb(140,57,8);
    --secondary-color: rgb(140,111,35);
    --tertiary: rgb(191,105,137);
    --background-color: rgb(233,239,242);
    --darkening: linear-gradient(rgb(0,0,0,0.35),rgb(0,0,0,0.35));
}

/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-optical-sizing: auto;
    font-display: swap;
    src: url('fonts/Inter.ttf');
}

/* ===== ANIMATIONS ===== */
@keyframes fade_in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade_out {
    from {opacity: 1; }
    to { opacity: 0; }
}

/* ===== GENERAL ===== */
html { scroll-behavior: smooth; }
body {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Inter';
    background-color: var(--background-color);
    overflow-x: hidden; /* hide horizontal scrollbar */
}
button {
    color: white;
    padding: 10px 7px; /* top bottom | left right */
    border: 1px solid white;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
}
#login:hover {
    color: black;
    background-color: white;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}
#signup:hover {
    background-color: var(--primary-color-1);
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}
#home { 
    border: 0;
    transition: transform 0.25s ease, background-color 0.25s ease; 
}
#home:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}
.page {
    margin: 1rem;
    padding: 0 1rem;
}
.page ul {
    padding: 0 1rem;
}
.page .group {
    display: flex;
    position: relative;
    gap: 10px;
}
.page .group .element {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.page .group .element .img {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page .group .element .img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}
.page .group .element p {
    flex: 0 0 auto;
    text-align: center;
}
.page .dual-group {
    display: flex;
    gap: 10px;
}
.page .dual-group .left h3:first-child {
    margin-top: 0; /* i guess shit works */
}
.page .dual-group .right {
    max-width: 50%;
}
.page .dual-group .right img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* ===== CUSTOM ELEMENTS ===== */
/* intro / fullscreen banner */
.intro {
    height: 100vh;
    width: 100%;
    background-image: var(--darkening), url("images/intro.webp");
    background-size: cover;
    position: relative;
}
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}
.top-bar {
    position: absolute;
    margin-top: 5px;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
}
.top-bar .left {
    flex: 1;
    display: flex;
    text-align: left;
    justify-content: flex-start;
}
.top-bar .right {
    flex: 1;
    display: flex;
    text-align: right;
    justify-content: flex-end;
}
.top-bar * {
    margin: 0px 5px;
    color: white;
}
.top-bar a { margin: 0; } /* byproduct of literally applying margins everywhere */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
}
.bottom-bar .element {
    flex-grow: 1;
    transition: flex-grow 0.25s ease-in-out;
    color: white;
    text-align: center;
    text-decoration: none;
    border-left: 1px solid lightgrey;
    border-right: 1px solid lightgrey;
}
.bottom-bar .element:hover {
    flex-grow: 3;
}

/* banner / halfscreen banner */
.banner {
    height: 50vh;
    width: 100%;
    background-size: cover;
    position: relative;
}
.banner#cuisine { background-image: var(--darkening), url("images/cuisine/banner.jpg"); }
.banner#cul-arc { 
    background-image: var(--darkening), url("images/cul-arc/banner.jpg");
    background-position: 50% 70%; 
}
.banner#geo-his { 
    background-image: var(--darkening), url("images/geo-his/banner.jpg"); 
    background-position: 50% 35%;
}
.banner#experience { 
    background-image: var(--darkening), url("images/experience/banner.jpg"); 
    background-position: 50% 60%;
}
.banner#credits { background-image: var(--darkening), url("images/credits/banner.jpg"); }
.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}
/* carousel */
.carousel-items {
    display: flex;
    height: 50vh;
    width: 100%;
}
.carousel-items .element {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.3s ease-in-out;
}
.carousel-items .element .img {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.carousel-items .element .img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}
.carousel-items .element p {
    flex: 0 0 auto;
    text-align: center;
}
.carousel-items .element:hover {
    transform: scale(1.1);
}
.carousel-explainers {
    position: relative;
}
.carousel-explainers .element {
    display: none;
    margin: 10px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    opacity: 0.0;
    transition: opacity 0.3s ease;
    background-color: whitesmoke;
}
.carousel-explainers .element.active {
    display: block;
    opacity: 1.0;
}
.carousel-explainers .element .page {
    padding: 0px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.carousel-explainers .element .page img {
    max-width: 25%;
    margin-right: 10px;
    height: auto;
    border-radius: 5px;
}
.carousel-explainers .element .page p {
    flex-grow: 1;
    margin: 0;
}
/* carousel 2 */
.carousel2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.carousel2 .viewport {
    display: flex;
    overflow: visible;
    width: 100%;
    transition: transform 0.3s ease;
}
.carousel2 .viewport .item {
    flex: 0 0 100%; /* always use 100% of container space */
    opacity: 0.0; /* temporary, will change to 1.0 */
    display: flex;
    flex-direction: row;
    align-items: center;
}
.carousel2 .viewport .item.active {
    opacity: 1.0;
}
.carousel2 .viewport .item img {
    max-width: 30%;
}
.carousel2 .viewport .item p {
    flex-grow: 1;
}
.carousel2 .navigation {
    color: black;
    border: var(--background-color);
    background-color: var(--background-color);
    z-index: 2;
    transition: scale 0.3s ease;
}
.carousel2 .navigation:hover {
    scale: 1.3;
}
/* vertical timeline */
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: green;
}
.timeline .container {
    margin-left: 1rem;
}
.timeline .container .event {
    width: fit-content;
}
.timeline .container .event .preview {
    display: inline-flex;
    align-items: center;
}
.timeline .container .event .preview .trigger {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    translate: -1.25rem 0;
    background-color: black;
    transition: scale 0.3s ease;
}
.timeline .container .event .preview .trigger:hover {
    scale: 1.3;
}
.timeline .container .event .preview h3 {
    margin: 0 0.5rem;
    translate: -1.25rem 0;
}
.timeline .container .event .card {
    height: 0;
    opacity: 0.0;
    transition: height 0.3s ease, opacity 0.3s ease;
}
.timeline .container .event .card.active {
    height: fit-content;
    opacity: 1.0;
}
