/* Custom colors */
:root{
    --appleBlue: #007aff;
    --appleGray: #8E8E93;
    --graphite: #2e313b;
    --titleTextSpacing: 1rem;
    --customGray: #bbbbbc;
}

/* Remove flash of un-translated content */
html[data-loading="true"] body {
  visibility: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
    background-color: whitesmoke;
    overflow-x: hidden;
}

/* Vertical spacing between sections */
section {
  margin-bottom: 3rem;
}

.landing-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 15vh;
  background-color: var(--graphite);
}

/* Properties of text that is aligned to the left */
.left_align {
    margin: 0 auto;
    text-align: left;   
    width: 80% !important;    
}

.right_align {
    margin: 0 auto;
    text-align: right;   
    width: 90% !important;
}

/* Properties for the landing page */ 
.landingPage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.landingPage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05); /* adjust darkness */
    pointer-events: none;
}

/* Properties for titles on a web page */ 
.landingTitle {
    color: var(--graphite);
    font-size: clamp(3rem, 20vw, 7rem);
    font-weight: 400;
    text-align: center;
    top: 0rem;
    z-index: 1;
    margin-bottom: 1rem;
}

.landingTitle span { 
    font-weight: 100;
}

/* Properties for language selector on landing page */
.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.language-selector button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--graphite);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
}

.language-dropdown button {
    padding: 0.5rem 1rem;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.language-dropdown button:hover {
    background: #f0f0f0;
}

.language-selector.open .language-dropdown {
    display: flex;
}



/* Properties for the big title of sections */ 
.big_section_title {
    margin-bottom: 0.5rem;
    font-weight: 300;
    font-size: clamp(2.5rem, 20vw, 10rem);
    width: 100%;
    color: var(--graphite);
}

/* Properties for the small title in the section (helping big) */
.small_section_title {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-weight: 200;
}

/* Properties for a big title that is smaller relative to main title */
.mini_big_title {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: clamp(2rem, 13vw, 4rem);
    color: var(--graphite);
}

/* Properties for the regular titles in a section */
.regular_section_title{
    margin-top: var(--titleTextSpacing);
    margin-bottom: 0.25rem;
    text-decoration: underline;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--graphite);
}

/* Properties for paragraphs of sections */
.section_paragraph {
    margin-top: 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--graphite);
    line-height: 1.8;
}

/* Properties for images inside of sections (in-text) */
#section_images{
    margin-top: var(--titleTextSpacing);
}

.hidden { 
    display: none; /* Initially don't show the in-text images */
}


/* Properties for buttons that collapse (show) images */
.collapse_image_button{
    border: none;
    font-size: 17px;
    background-color: whitesmoke;
    text-decoration: underline;
    color: var(--appleBlue);
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.collapse_image_button:active {
    color: var(--appleGray);
}

.collapse_image_button:hover{
    background-color: rgb(232, 232, 232);
    border-radius: 3px;
}

/* ================================== */
/* ======== web page grids ========== */
/* ================================== */
.page_grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 90%;
    justify-content: center;
    margin: 0 auto;
}

.webPage {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4); /* slight dark overlay */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 1rem;
    width: 30rem;
    border: 5px solid white;
    
}

.webPage h2 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
    color: white;
    font-size: 2rem;
    z-index: 2;
}

.webPage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.webPage:hover img { transform: scale(1.25); opacity: 1; }



/* ========================================= */
/* ========= Image next to text ============ */
/* ========================================= */
.image_text_container {
    display: flex;
    flex-direction: row;
    margin: 0rem auto;
    margin-top: 3rem;
    align-items: stretch;
    width: 90%;
    gap: 5rem;
}

.left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.left .upperImage,
.left .lowerImage {
    width: 50%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.left .lowerImage {
    margin-top: 3rem;
}

.left img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.left, .right { width: 50%; }

.right {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}