* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.top-bar a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.top-bar img {
    max-height: 50px;
}

.image-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.image-section img {
    border-radius: 10px;
    width: 70vw;
    object-fit: cover;
    margin-top: -5vw;
    max-height: 70vh;
}

.image-section h1 {
    font-size: 2.5vw;
    margin-top: 3vw;
    letter-spacing: 2px;
    font-weight: bold;
}

.section {
    position: relative; /* Add this line */
    height: 100vh;
    background-color: #fff;
}

.section:nth-child(even) {
    background-color: #fff;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    mix-blend-mode: difference;
    padding: 10px;
    font-size: 5em;
    font-weight: bold;
    text-align: center;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;

}

.card-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-image: url('images/cover3.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 39vh;
}

.card {
    position: relative; /* Add this line */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 20vh; /* Add this line */
    background-color: #f0f0f0;
    border: 5px solid rgb(40, 153, 40);
    margin: 0 10px;
    padding: 20px;
    text-align: center;
    width: 30vw;
    border-radius: 10px;
}

.card h2 {
    position: absolute;
    top: 25px;
    width: 100%;
    text-align: center;
}

.card p{
    position: relative;
    top: 10px;
    font-weight: bold;
    font-size: 3vw;
    font-family: 'Brush Script MT', cursive;

}

.red{
    color: red;
}

.green{
    color: green;
}

@media (max-width: 768px) {
    .section {
        height: 50vh;
    }
    .overlay-text {
        font-size: 2em;
    }
    .card-section {
        flex-direction: column;
        background-image: url('images/cards.jpg');
        padding-top: 3vh;

    }
    .card {
        position: relative; /* Add this line */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 20vh; /* Add this line */
        background-color: #f0f0f0;
        border: 5px solid rgb(40, 153, 40);
        margin: 5vw;
        padding: 20px;
        text-align: center;
        width: 80vw;
    }
    .card p{
        position: relative;
        top: 10px;
        font-weight: bold;
        font-size: 7vw;
        font-family: 'Brush Script MT', cursive;
        letter-spacing: 1px;
    }
    .top-bar img {
        max-height: 30px;
    }
}