/* Grid styles */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-flow: row;
    width: 100%;
    grid-template-areas:
        "header header header"
        "title title title"
        "nav post1 post1"
        "music-player post2 post2"
        ". post3 post3"
        "footer footer footer";
    flex: 1;
}

/* Body styles */
body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header styles */
.header {
    grid-area: header;
    background-color: #F6F1F1;
    padding: 20px;
    font-size: xx-large;
    text-align: center;
}

/* Title styles */
.title {
    grid-area: title;
    background-color: yellow;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* Navigation styles */
.nav {
    grid-area: nav;
    background-color: lightblue;
    padding: 20px;
    font-size: x-large;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.nav li {
    flex: 1;
    text-align: center;
}

.nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    height: 100%;
}

.nav li a:hover {
    background-color: #ddd;
    color: #000;
}

.nav li a.active {
    font-weight: bold;
    background-color: lightyellow;
}



/* Container styles for the images */
.image-container {
    display: inline-block;
    width: 30%;
    /* Adjust this to the width you want for each image */
    margin: 10px;
    box-sizing: border-box;
}

/* Image styles */
.post1img,
.post2img,
.post3img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* Post 1 styles */
.post1 {
    grid-area: post1;
    background-color: #19A7CE;
    padding: 20px;
}

.post1img {
    margin-right: 20px;
}

/* Post 1 text styles */
.post1-text {
    text-align: left;
    line-height: 1.5;
    display: block;
}

/* Music player styles */
.music-player {
    grid-area: music-player;
    background-color: #B0DAFF;
    padding: 20px;
    display: inline-block;
    justify-content: center;
    align-items: center;
}




/* Post 2 styles */
.post2 {
    grid-area: post2;
    background-color: #B0DAFF;
    padding: 20px;
}

.post2img {
    margin-right: 20px;
}

/* Post 2 text styles */
.post2-text {
    text-align: left;
    line-height: 1.5;
    display: block;
}

/* Post 3 styles */
.post3 {
    grid-area: post3;
    background-color: #146C94;
    padding: 20px;
}

.post3img {
    margin-right: 20px;
}

/* Post 3 text styles */
.post3-text {
    text-align: left;
    line-height: 1.5;
    display: block;
    color: black;
}

footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: lightyellow;
    color: #000;
    padding: 20px;
    margin-top: auto;
}

.contact-me {
    display: flex;
    align-items: center;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


@media (max-width: 720px) {

    /* Grid styles for small screens */
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "title"
            "nav"
            "music-player"
            "post1"
            "post2"
            "post3"
            "footer";
    }

    /* Image container styles for small screens */
    .image-container {
        width: 100%;
        margin: 10px 0;
    }

    /* Post styles for small screens */
    .post1,
    .post2,
    .post3 {
        padding: 10px;
    }

    /* Post image styles for small screens */
    .post1img,
    .post2img,
    .post3img {
        margin-right: 10px;
    }

    /* Footer styles for small screens */
    footer {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .contact-me {
        margin-top: 10px;
    }
}

