

body{
    background: #F0F0F0 ;
    color: #333333 ;
}
nav
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4C4CFF ;
}
nav > ul
{
    display: inline-flex;
}
nav ul li
{
    margin-right: 25px;
    list-style: none;
}
nav ul li a
{    
    text-decoration: none;
    color: chartreuse;
}

header{
    display: flex;
    background: #F0F0F0 ;
    padding: 5px;
    color: #333333 ;
    align-items: center;
    border-radius: 5px;
  }

h1, h2{
    text-align: center;
    padding: 20px 20px 0px 20px;
    color: darkgrey;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.75);
}

.grid-container{
    background-color: rgba(245, 245, 245, 0.75);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    border-radius:10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
code{
    font-family: monospace;
    color: darkcyan;
    box-shadow: 2px 2px 4px rgba(127, 128, 128, 0.4);
}

.image{
    min-height: 300px;
    max-height: 500px;
    min-width: 400px;
    max-width: 550px;
}
video{ /* koala eating leaves video */
    min-height: 300px;
    max-height: 500px;
    min-width: 300px;
    max-width: 400px;
    object-fit: cover;
}
iframe, .image, video{
    float: right;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

a:hover {
    color: #FFA500;
    transition: 0.2s;
    text-transform: uppercase;
}

.back-to-top{
    color: yellow;
    font-style: oblique;
    font-family: fantasy;
    text-shadow: 2px 2px 4px rgba(128, 128, 128, 0.75);
    padding: 10px 10px 10px 10px;
    display: inline-block;
}
.back-to-top:hover{
    font-size: 150%;
    transition-duration: 0.2s;
}

/* nav-menu pages styling*/
.notes-container, .footer, .navigation-menu{
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: FFFFE0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

ul, p, pre{
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: medium;
}

.credits{
    padding: 10px;
    text-align: center;
}
.credits > ul
{
    list-style: none;  
}
.credits ul li
{
    padding-bottom: 10px;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .grid-container {
        max-width: auto;
    }
    ul, p, pre, .credits{
        font-size: small;
    }
    h1, h2{
        font-size: larger;
    }
    iframe{
        width: 75%;
    }
  }
