header {
    background-color: brown;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

header h1 {
    color: white;
    padding: 1.25rem;
    font-family: 'Lora', serif;
    font-size: 3.125rem;
    margin-left: 1.25rem;
}

header p {
    color: white;
    font-family: 'Lora', serif;
    font-size: 1.5625rem;
    margin-left: 12.5rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: gray;
    padding: 10px 0;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: lightgray;
}

.footer {
    background-color: brown;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.25rem;
}

.logo {
    width: 21.875rem;
    height: auto;
    padding: 1.25rem;
    margin-left: 3.125rem;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.homeimg {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
    filter: brightness(50%);
}

.d-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.d-grid .btn {
    font-size: 3.125rem;
    margin-bottom: 1.875rem;
}

.about-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 75rem;
    margin: 3.125rem auto;
}

.about-text {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: black;
    margin-right: 1.25rem;
}

.about-main img {
    width: 18.75rem;
    height: 18.75rem;
    object-fit: cover;
    display: block;
    margin-bottom: 1.25rem;
}

.about-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-left: 15.625rem;
}


/* Media query for tablets and smaller devices */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    header h1 {
        font-size: 2.5rem;
        margin-left: 0.625rem;
    }

    header p {
        font-size: 1.25rem;
        margin-left: 6.25rem;
    }

    .about-main {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
        margin: 1.875rem auto;
    }

    .about-text {
        margin-right: 0;
        text-align: center;
    }

    .about-images {
        margin-left: 0;
    }

    .navbar .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Media query for mobile devices */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }

    header h1 {
        font-size: 2rem;
        margin-left: 0;
        text-align: center;
    }

    header p {
        font-size: 1rem;
        margin-left: 0;
        text-align: center;
    }

    .logo {
        width: 12.5rem;
        margin-left: 0;
    }

    .about-main {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
        margin: 1.25rem auto;
    }

    .about-text {
        font-size: 1rem;
        margin-right: 0;
        text-align: center;
    }

    .about-main img {
        width: 12.5rem;
        height: 12.5rem;
    }

    .about-images {
        margin-left: 0;
    }

    .navbar .navbar-brand {
        font-size: 1rem;
    }

    .d-grid .btn {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
}
