body {
    background-color: rgb(250, 250, 250);
    color: darkslategrey;
    font-family: 'Questrial', sans-serif;
}

.menu-bar {
    color: rgb(240, 240, 245);
    background-color: rgb(42, 48, 54);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
}

.navbar-brand {
    font-size: 1.37rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.milky-way {
    /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/milky-way.jpg");
}

.moon-day {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/moon-day.jpg");
}

.internet {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/internet.jpg");
}

.bicopter {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/bicopter.jpg");
}

.plants {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/plants.jpg");
}

.plane {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/zuri.jpg");
}

.nature {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/_MG_9021-Pano.jpg");
}

.antenna {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/antenna.jpg");
}

.orbit {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/orbit.png");
}

.stardust {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/stardust-02.jpg");
}

.satellites {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/06-Praha_-_2022-10-10_vc_000455_0_4_full_8bit_denoised_highpass_modified.jpg");
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #25282A 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, #25282A 100%);
    pointer-events: none; /* Ensures overlay does not block interactions */
    transition: background 1s ease-in-out;
    z-index: -1;
}

/* Media query to hide overlay on narrow screens */
@media (max-width: 1000px) {
    .overlay {
        display: none;
    }
}

/* The hero image */
.hero-image, .hero-image-small {
    position: relative;
    width: 100%;
    min-height: 250px; /* Changed from fixed height to min-height */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 2rem 0; /* Add padding top and bottom */
}

.hero-image-small {
    min-height: 150px;
}

/* Place text in the middle of the image */
.hero-text {
    color: white;
    z-index: 2; /* Ensure text is above the overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-top {
    border-bottom: 1px solid white;
    border-top: 1px solid rgb(52, 58, 64);
    box-shadow: 
    0px -4px 10px rgba(0, 0, 0, 0.9); /* Add this line */
}
.hero-bottom {
    border-top: 1px solid white;
    border-bottom: 1px solid rgb(52, 58, 64);
    box-shadow: 
    0px 4px 10px rgba(0, 0, 0, 0.9); /* Add this line */
}

.hero-bg {
    background-color: #25282A;
}

.bigger {
    font-size: 1.3rem;
    text-align: center;
}

a.link {
    font-size: 1.37rem;
}

p {
    font-size: 1.17rem;
    text-align: justify;
    text-justify: inter-word;
}

a.fa {
    text-decoration: none;
    color: white;
}

.fa {
    padding: 20px;
    font-size: 30px;

    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.maxw {
    max-width: 1000px;
}

.maxw-hero {
    max-width: 1400px;
}

.article {
    max-width: 800px;
    word-break: break-all;
}

.fig-desc {
    font-size: 0.9rem;
    font-style: italic;
    color: white;
    text-align: center;
}