
/******************/
/*First Block*/

.background-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*height: 60vh;  Adjust as needed */
}

.background-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.background-text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 3rem;
    border-radius: 1rem;
    color: #FFF;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    max-width: 80%;
}

.background-text-block h2 {
    color: #FFF;
    font-family: 'Inter', sans-serif;
    /*font-size: 40px;*/
    font-size: clamp(18px, 2vw, 48px) !important;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 25px;
}

.background-text-block p {
    font-size: clamp(14px, 1vw, 20px) !important;
    line-height: 1.55;
    font-family: 'Inter', sans-serif;
}

/* Scroll down link styling */
.scroll-down-link {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down-link:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Media Querys */

@media (max-width: 768px) {
    .background-text-block h2 {
        font-size: 25px;
    }

    .background-text-block {
        padding: 1rem;
        font-size: 19px;
    }

    .background-image {
        background-image: url('/media/images/carlett-badenhorst-9ZOeCP6GHp4-unsplash_1.original.png');
        background-size: cover;
        background-position: center;
        min-height: 50vh;
        position: relative;
    }
    
    .background-image img {
        display: none; /* Hide the img element */
    }
    
    .background-text-block {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .background-text-block p{
        width: 100%;
    }
}


@media (max-width: 425px) {

    .background-text-block {
        padding: 1rem;  
        font-size: 16px; 
        width: 100%;
        max-width: none;
        box-sizing: border-box;

    }

    .background-text-block h2 {
        font-size: 22px; 
        line-height: 1.2;
    }

    .background-image img {
        /*height: calc(100vh - 85px);*/
        height: 55vh;   
        object-fit: cover;
    }

    .background-text-block {
        padding: 1.5rem;
        font-size: 19px;
    }
}
