/* TYPOGRAPHY ================= TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:ital,wght@0,300;1,300&family=Murecho:wght@300;700;900&display=swap');

/* LANDING PAGE */
#p5_animation {
    position: relative;
    top: 0;
    width: 100vw;
    height: 100vh;
}
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50, -50);
}

/* MAIN PAGE   MAIN COLOR: F3EEE1 fffcef*/ 
body {
    background-color: #f4efe1;
    font-size: 16px;
    font-family: 'AveriaSerifLibre', sans-serif;
    font-weight: light; 
    overflow-x: hidden;
    color: #202020;
    margin-top: 0;}

h1 {
    font-family:'Murecho', sans-serif;
    font-size: 37px;
    font-weight: 900; 
    text-transform: uppercase;
    text-decoration: none;
    color: #202020;
    line-height: 100%;
    margin: 0;
    padding-bottom: 10px;
    word-wrap: break-word;
    hyphens: auto;
}
h2 {
    font-family: 'Murecho', sans-serif;
    font-size: 25px;
    font-weight: 700; 
    color: #202020;
    line-height: 100%;
    margin: 0;
    padding-bottom: 5px;
    line-height: 1.4cap;
}
h3 {
    font-family: 'Murecho', sans-serif;
    font-size: 18px;
    font-weight: 300; 
    text-decoration: none;
    color: #202020;
    line-height: 120%;
    margin: 0;
    padding-bottom: 5px;
    
}
.p-font-1 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 16px;
    font-weight: 300; 
    text-decoration: none;
    color: #202020;
    line-height: 130%;
    margin: 0;
    padding-bottom: 5px;
}
.p-font-2 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 16px;
    font-weight: 300; 
    font-style: italic;
    text-decoration: none;
    color: #202020;
    line-height: 120%;
    margin: 0;
    padding-bottom: 10px;
    padding-top: 5px;
}
/* SIDEBAR ================= SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(1/5 * 80vw);
    height: 100vh;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
    padding-left: calc(1/50 * 100vw);
    padding-right: calc(1/50 * 100vw);
    padding-top: calc(1/50 * 100vw);
    display: flex;
    flex-direction: column;
}
.sidebar-spacer {
    flex-grow: 1;
}
.social-icons {
    margin-bottom: 40px; /* Adjust as needed */
}

/* SECTIONS ========MAIN========= SECTIONS */
.section-container {
    margin-left: calc((1/5 * 100vw));
    overflow-y: auto;
    min-height: 100vh;
}

.section {
    display: flex;
    flex-direction: row;
    margin-top: calc(1/50 * 100vw);
    margin-bottom: calc(1/50 * 100vw);
    margin-right: calc(1/50 *100vw)
}

.columns-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-left: calc(1/50 * 100vw);
}

.column {
    display: flex;
    flex-direction: column;
}

.text-frame, .picture-frame {
    flex-grow: 1;
}

.text-frame {
    flex-grow: 1;
    padding-right: calc(1/50 * 100vw);
    padding-left: calc(1/50 * 100vw);
}

.twotext-frame {
    flex-grow: 2;
}

.picture-frame {
    flex-grow:3;
    height: calc(7 * (1/10 * 100vh));
    border-radius: 15px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* CLASS STYLES  */
.class-01_SECTION .content-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none; /* Remove underline from the link itself */
    margin: 0;
    padding: 0;
}
.class-01_SECTION .text-frame {
    flex-grow: 0;
    width: calc(1/5 * 100vw - (2/50 * 100vw));
}
.class-01_SECTION .picture-frame {
    flex-grow: 0;
    width: calc(3 * (1/5 * 100vw) - (1/50 * 100vw));
}
.class-01_SECTION a:hover .section-image {
    transform: scale(1.02); /* Adjust scale value as needed */
}
.class-01_SECTION a:hover h1{
    text-decoration: underline;
}
h1, h2, h3 {
    transition: text-decoration 0.3s ease;
}

.right .text-frame {
    text-align: right; 
    margin-left: auto; 
    margin-right: 0; 
    margin-bottom: 15px;
}

.right {
    display: flex;
    justify-content: flex-end;
}

.class-02_ABOUT .text-frame {
    flex-grow: 0;
    width: calc(3*(1/5 * 100vw));
    padding-right: calc((1/50 * 100vw));
    margin-left: calc(5/50 * 100vw);
    padding-top: calc(1/50 * 100vw);
}
.class-02_ABOUT .picture-frame{
    flex-grow: 0;
    width: calc(1.4/3 * 100vw);
    margin-right: calc(5/50 * 100vw);
    height:calc(5.5 * (1/10 * 100vh));
}

.section.class-03_STATS {
    display: flex;
    justify-content: space-between;
    margin-left: calc(5 / 50 * 100vw);
    margin-right: calc(5 / 50 * 100vw);
}

.section.class-03_STATS .text-frame {
    flex-grow: 1;
    margin: 0 10px; /* Add a small margin between the text frames */
    padding-top: calc(1 / 50 * 100vw);
    /* Optional: Set a maximum width to prevent the text frames from becoming too wide */
    max-width: calc(50% - 20px); /* Adjust accordingly */
}

.class-04_TRIPPLE .text-frame {
    flex-grow: 0;
    width: calc((1/3 * 5) * 100vw);
}
.class-04_TRIPPLE .twotext-frame {
    flex-grow: 0;
    width: calc((2/3 * 5) * 100vw);
    padding-right: calc(5*(1/50 * 100vw));
    padding-left: calc(2*(1/50 * 100vw));
}

.class-05_SPIEPLATZ {
    flex-direction: column;
    width: calc(1/3 * 100vw); 
    height:calc(4 * (1/10 * 100vh));
    margin-top:0;
    padding-bottom: 0;
}
.class-05_SPIEPLATZ .text-frame {
    margin: 0;
    padding: 0;
}

section.class-spacer{
    display: flex;
}

.class-15_ENDCARD{
    padding-right: calc(5*(1/50 * 100vw));
    padding-left: calc(5*(1/50 * 100vw));
}

/* OTHER ================= OTHER */
.box {
    width: calc(1/5 * 82vw);
    height: 5px;
    position: relative;
    margin-top: 5px;
    margin-bottom: 10px;
}

.box::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 2px solid #202020;
}

.spacer {
    height: calc(1/6 * 100vh);
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid #202020;
    transform: transalteY(-50%);
    margin-right: calc((1/50 * 100vw));
    margin-left: calc((2/50 * 100vw));
}

a {
    color: inherit; /* Use the parent element's text color */
    text-decoration: none; /* Remove the underline */
}


.collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.arrow {
    margin-left: 5px;
    transition: transform 0.3s;
}

.collapsible + .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible.active + .content {
    max-height: 200px; 
}

.collapsible.active + .content::-webkit-scrollbar {
    display: none;
}

.collapsible.active + .content {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.custom-button:hover {
    background-color: #f4efe1;
    text-decoration: none; 
}

/* Define custom color variables */
:root {
    --blue: #3a65de;
    --yellow: #f7c24f;
    --red: #ff5858;
    --black: #202020;
    --gray: #636363;
}

/* Create custom classes for each color */
.custom-blue-text {
    color: var(--blue);
}
.custom-yellow-text {
    color: var(--yellow);
}
.custom-red-text {
    color: var(--red);
}
.custom-black-text {
    color: var(--black);
}
.custom-gray-text {
    color: var(--gray);
}

/*INTERACTION ========= INTERACTION*/
html {
    scroll-behavior: smooth;
}

a:hover {
    text-decoration: underline;
    color: #ff5858; /* Changes text color to red on hover */
}

.blinking-cursor:after {
    content: '|';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* MOBILE */
.hamburger-icon {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    cursor: pointer;
    font-size: 30px;
    user-select: none;
    z-index: 102;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 30px;
        margin: 0;
        padding-bottom: 2px;
    }
    h2 {
        font-size: 18px;
        margin: 0;
        padding-bottom: 2px;
        line-height: 1.5cap;
    }    

    h3 {
        font-size:18px;
        padding-bottom:8px;
        padding-top:0px;
    }

    .sidebar {
        position: fixed;
        width: 100vw;
        height: 100vh;
        left: -120vw; /* Hide off-screen */
        padding: 20px;
        padding-top: 80px;
        background-color: #ffbb11; 
        z-index: 101;
    }

    .sidebar-spacer {
        flex-grow: 1;
    }

    .social-icons {
        margin-bottom: 200px;
    }

    .hamburger-icon {
        display: block;
        font-size: 30px;
        z-index: 102;
    }

    .sidebar.open {
        left: 0;
    }

    .section-container {
        margin-left: 0; 
        width: 100%;
        overflow-x: hidden; 
    }

    .section {
        display: flex;
        flex-direction: column; /* Change to column for mobile view */
        align-items: center; /* Ensure children take full width */
        justify-content: flex-start; /* Align items to the start */
        margin: 0; /* Remove margins */
        padding-top: 40px; /* Remove padding */
        width: 100%; 
    }

    .text-frame, .picture-frame {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .picture-frame {
        height: auto; /* Ensure the height adjusts to content */
        aspect-ratio: 16 / 9; 
    }

    .section-image {
        width: 100%;
        height: 100%; /* Ensure the height fills the frame */
        object-fit: cover; /* Adjust height to keep aspect ratio */
    }

    /* Ensure flex direction is column for .class-01_SECTION */
    .class-01_SECTION .content-link {
        flex-direction: column; /* Stack items vertically */
    }

    .class-01_SECTION .text-frame,
    .class-01_SECTION .picture-frame {
        width: calc(9/10 *100vw); /* Full width for mobile view */
    }

    .class-02_ABOUT .text-frame {
        flex-grow: 0;
        width: calc(9/10 * 100vw);
        padding-right: 0;
        margin-left: 0;
        padding-top: 0;
    }
    .class-02_ABOUT .picture-frame{
        margin-top: 30px;
        width: calc(6/10 * 100vw);
        height: 100%;
        margin-right: 0;
    }

    .class-02_ABOUT .picture-frame {
        aspect-ratio: 4 / 5;
    }
	
	   .section.class-03_STATS {
        display: flex;
        justify-content: space-between;
        margin-left: calc(1 / 50 * 100vw);
        margin-right: calc(1 / 50 * 100vw);
    }
    
    .section.class-03_STATS .text-frame {
        flex-grow: 1;
        margin: 0 10px;
        padding-top: calc(1 / 50 * 100vw);
        max-width: 100%;
        width: calc(9/10 * 100vw);
    }

    .box {
        width: calc(9/10 * 100vw);
        height: 5px;
        position: relative;
        margin-top: 3px;
        margin-bottom: 3px;
    }
    .spacer {
        height: 10px;
        position: relative;
    }

	#typing-text {
    margin-right: 10px;  /* Adds padding around the text */
    word-wrap: break-word;  /* Ensures text wraps and does not overflow */
}
}
