* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #fff;
}

.vertical-gallery h3 {
        font-size:40px;
        margin-top: 40px;
    }

html, body {
    height: 100%;
    font-family:"Roboto Slab", sans-serif;
    scroll-behavior: smooth;
}

#portfolio p.swipe {
    text-align: center;
    transition: 1s ease;
    display: none;
}

.carousel-bg {
    font-family:"Roboto Slab", sans-serif;
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.2s linear;
}

h1 {
    font-size:30px;
    color:#fff;
    position: absolute;
}

h1 span {
    color: orange;
}

h2 {
    font-size: 28px;
    margin: 30px 20px 50px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.carousel_shader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: #444;
}

.carousel_content {
    position: absolute;
    width: 100%;
    padding: 20px 5% 20px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    transition: 0.2s linear;
    opacity: 1;
}

.carousel_content h1 {
    display: block;
}

.carousel_content.hidden {
    opacity: 0;
}

.carousel_content.fixed {
    position: fixed !important;
}

.scrolldown {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    border: 5px solid #fff;
    padding: 20px 40px;
    font-weight: 400;
    font-size: 40px;
    background-color: rgba(0, 0, 0, 0.35);
    text-align: center;
}

.content {
    padding: 90px 5% 20px;
    background-color: #f4f4f4;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.down-arrow {
    display:block;
    position: absolute;
    bottom:0%;
    left:50%;
    transition: 1.5s ease-in-out;
    translate: -50%;
}

.down-arrow .arrow {
    position: relative;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 20px solid rgb(255, 255, 255);
    margin: 5px auto; /* Center the arrow */
}


.contact_link.tophome {
    opacity: 0;
}

.carousel_content .menu {
    display: flex;
    flex-direction: row-reverse;
}

.carousel_content .menu a {
    font-size: 20px;
    margin: 5px 10px;
    padding: 5px;
}


#contact a {
    display: block;
    color: #000;
    text-align: center;
    font-size: 20px;
    margin: 20px auto;
}

.bold {
    font-weight: 700;
}

.vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.horizontal-scroll img {
    display: block;
    max-height: 80vh;
    height: auto;
    width: auto;
} 

.content p{
    margin: 20px;
    font-size: 20px;
    text-align: left;
}

#aboutme img {
    max-width: 100%;
    border-radius: 10%;
    max-height: 50vh;
    float:left;
    margin-right:50px;
}

#contact p {
    text-align: center;
}

@media (max-width: 1200px) {
    .horizontal-scroll img {  
        max-height: 60vh;
        scroll-snap-align: start;
    }
    .vertical-gallery h3 {
        font-size:30px;
    }
    #portfolio p.swipe {display: block;}
}

@media (max-width: 740px) {
    h1 {
        font-size: 20px;
    }
    .carousel_content .menu a {
        font-size: 14px;
        padding:5px;
        margin:2px;
    }

    .vertical-gallery h3 {
        font-size:20px;
    }
    .horizontal-scroll img {  
        max-height: 30vh;
        scroll-snap-align: start;
    }
    #aboutme img {
        float:none;
        margin-right:auto;
    }
    .carousel_content {
        padding: 20px 5px;
        display: flex;
    }

    .menu {
        width: 100%;
        justify-content: space-between;
    }

    .carousel_content h1 {
        display: none;
    }

    .contact_link.tophome {
        opacity: 1;
    }
    #portfolio p.swipe {display: block;}
}
