@font-face {
    font-family: 'DonutHole';
    src: url('fonts/Donut\ Hole.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black;
    font-size: 16px;
}

a {
    text-decoration: underline; /* Add underline to the link */
    color: inherit; /* Inherit text color from the body */
}



/* Invisible element with the id "top" */
#top {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    visibility: hidden;
}


/* Optional black line at the top of the page */
#news-ticker {
    background-color: black;
    color: white;
    padding: 5px; /* Reduced padding to decrease height */
    text-align: center;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 21; 
    border-bottom: none; /* Remove the border */
    font-family: "Avenir Next", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}



/*  Splash screen which transformd into a peach colored line, as defined in script.js */
#canvas {
    background-color: rgb(255,194,186);
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 20; 
    transition: height 0.5s ease, top 0.5s ease, z-index 0s 0.5s; /* duration for the transition that is implemented in javascript*/
}

#canvas-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the logo */
    width: 30%; 
    max-width: 500px;
    transition: top .5s ease, left .5s ease, width .5s ease, transform .5s ease;  /* duration for the transition that was implemented in javascript*/

}



/* language-switcher */
.language-switcher {
    display: flex;          /* Enables flexbox */
    align-items: center;    /* Vertically centers the content */
    justify-content: center;/* Horizontally centers the content */
    position: fixed; /* Keeps the button fixed relative to the viewport */
    top: 20px;       /* Distance from the top of the viewport */
    right: 20px;     /* Distance from the right of the viewport */
    z-index: 19;   /* Ensures the button stays above other content */
}

.language-switcher button {
    background-color: rgb(200, 200, 200); 
    color: black;
    border: none;
    padding: 10px 5px 10px 10px; /* top right bottom left*/
    opacity: 0.75;
    cursor: pointer;
    border-radius: 20px; /* Rounded corners creating a circle */
    outline: none; 

}

.language-switcher button:hover {
    background-color: rgb(255,194,186); /* Peach shade on hover */
}

.language-switcher img {
    margin-right: 5px; /* Space between icon and text */
    vertical-align: middle;
}



/* flyer elements */
.content-section {
    display: flex;
    align-items: stretch;
    background-color: rgb(255, 254, 246);
    border-top: 6px solid rgb(255, 194, 186);
    border-bottom: 6px solid rgb(255, 194, 186);
    box-sizing: border-box;
    margin-top: 150px; /* Move the content-section 150px downward */
    position: relative; 
    height: auto; 
}

.content-section::before {
    content: "";
    position: absolute;
    top: -156px; /* move the background image above the content-section*/
    left: 0;
    width: 100%;
    height: 150px; 
    background-image: url('images/background.jpg'); 
    background-size: cover;
    z-index: 1; 
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.content-section.left-picture {
    flex-direction: row; /* Picture on the left, text on the right */
}

.content-section.right-picture {
    flex-direction: row-reverse; /* Picture on the right, text on the left */
}

.content-section.left-picture .heading {
    font-family: 'DonutHole', opentype;
    font-size: 4.25rem;
    font-weight: bold;
    color: rgb(79, 185, 168);
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: absolute;
    top: -41px;
    left: 20px; /* Left-align the heading */
    text-align: left; /* Left-align the heading text */
    transform: translate(0, -100%);
}

.content-section.right-picture .heading {
    font-family: 'DonutHole', opentype;
    font-size: 4.25rem;
    color: rgb(79, 185, 168);
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: absolute;
    top: -41px;
    right: 20px; /* Right-align the heading */
    text-align: right; /* Right-align the heading text */
    transform: translate(0, -100%);
}

.content-section .image-with-border {
    flex-basis: calc(100vw / (1 + 1.618));
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0; 
}


.content-section.right-picture .image-with-border {
    border-left: none; /* Remove border on the left */
    border-right: 6px solid rgb(79, 185, 168); /* Add a line on the right for left picture */
}

.content-section.left-picture .image-with-border {
    border-right: none; /* Remove border on the right */
    border-left: 6px solid rgb(79, 185, 168); /* Add a line on the left for right picture */
}

.content-section .text-container {
    padding: 2vw 3vw 2vw 4vw; /* Padding: top right bottom left */
    font-family: "Avenir Next";
    color: rgb(130, 130, 130);
    font-size: 1.25rem;
    line-height: 1.8;
    flex-basis: calc(1.618 * 100vw / (1 + 1.618));
}


/* New news */
#text-on-full-width-image {
    display: flex;
    align-items: stretch;
    border-top: 6px solid rgb(255, 194, 186);
    border-bottom: 6px solid rgb(255, 194, 186);
    box-sizing: border-box;
    margin-top: 75px; /* Move the text-on-full-width-image downward */
    position: relative; 
    height: auto; 
}

#text-on-full-width-image::before {
    content: "";
    position: absolute;
    top: -81px; 
    left: 0;
    width: 100%;
    height: 75px; 
    background-image: url('images/background.jpg'); 
    background-size: cover;
    z-index: 1; 
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#text-on-full-width-image #full-width-image {
    width: 100vw;
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0; 
    padding: 0; 
}

#text-on-full-width-image #text-container {
    position: absolute;
    width: 100vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DonutHole', opentype;
    font-size: 80px;
    text-shadow: 3px 7px 0px rgb(79, 185, 168);   
    color: white;
    line-height: 1.8;
    z-index: 3; 
    text-align: center;
}



/* Footer */
#footer {
    /*alignment*/
    border-top: 4vw solid black;
    border-bottom: 4vw solid black;
    border-right: 11vw solid black;
    display: flex; 
    justify-content: space-between;
    align-items: center;

    /*text*/
    color: rgb(255, 254, 246);
    font-family: "Avenir Next", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
}

#image {
    flex-shrink: 0;
    width: 100%; 
    height: auto;
    object-fit: contain;
    
}

#footer-logo {
    max-width: 300px; 
    min-width: 80px;
    width:12%;
    margin-left: 4vw;
}

#small-logo {
    flex-shrink: 0; /* Prevent image from growing */
    width: 3vw; 
    max-width: 200px;
    min-width: 30px;
    margin-left: .5vw;
    margin-right: .5vw;
}



/* Copyright line */
#copyrightline {
    text-align: right;

    background-color: black;
    color: white;
    padding: 20px;
    font-family: "Avenir Next", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}

#tel {
    width:180px
}







/* Tablet view: reduce text size so that images are not cropped too much*/
@media(max-width: 950px){
    html {
    font-size: 14px;
    }
    #tel {
        width:158px
    }
}
@media(max-width: 850px){
    html {
    font-size: 12px;
    }
    #tel {
        width:135px
    }
}



/* Smartphone view*/
@media(max-width: 720px){

    #footer {
        border-right: 4vw solid black;
    }
    
    .content-section.left-picture .heading {
        font-size: 3.5rem;
        top: -25px;
    }
    .content-section.right-picture .heading {
        font-size: 3.5rem;
        top: -25px;
    }
    
    #text-on-full-width-image #text-container {
        font-size: 60px;
    }
    #text-on-full-width-image #text-container-shadow {
        font-size: 60px;
    }

    /* Change the content-section so that the iamges appear above the text */
    .content-section.left-picture {
        flex-direction: column; /* Picture above text */
    }
        
    .content-section.right-picture {
        flex-direction: column; /* Picture above text */
    }
    
    .content-section.right-picture .image-with-border {
        border-right: none; /* Remove border on the right */
        border-top: 6px solid rgb(79, 185, 168); /* Add a line on the top */
    }
        
    .content-section.left-picture .image-with-border {
        border-left: none; /* Remove border on the left */
        border-top: 6px solid rgb(79, 185, 168); /* Add a line on the top */
    }
    
    .content-section .image-with-border {
        flex-basis: 100vw;
    }

    .content-section .text-container {
        flex-basis: auto;
    }
}


@media(max-width: 350px){  
    #text-on-full-width-image #text-container {
        font-size: 50px;
    }

    #text-on-full-width-image #text-container-shadow {
        font-size: 50px;
    }
}