.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 10px, 20px;
    
}
.profile h1 {
    text-align: center;
    color: #eee;
    margin-left: 15px;
}

.profile img {
    width: 80px;
    border-radius: 10px;
    margin-left: 10px;
}


.flexbox-container {
    display: flex;
    flex-flow: row wrap;
    text-align: center;
}

.flexbox-container > * {
    padding-bottom: 10px;
    margin: 10px;
    flex: 1 100%;
    border-radius: 10px;
}

.flexbox-item {
    width: 200px;
    margin: 10px;
    border: 3px solid #333;
    background-color: #eee;
}

.flexbox-item h1 {
    background-color: rgb(86, 19, 148);
    color: #eee;
    font-weight: 300;
}

.flexbox-container ul {
    text-align: left;
    margin: 10px;
    padding: 20px;
}

.figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.figure img {
    max-width: 100%;
    margin-bottom: 8px;
}

figcaption {
    color: #155724;
}

.flexbox-item-1 {
    min-height: 100px;
}

.flexbox-item-2 {
    min-height: 100px;
}

.flexbox-item-3 {
    min-height: 100px;
}

#certificate{
    border: 3px solid #eee;
    border-radius: 10px;
    margin: 10px;
}

#certificate h2 {
    background-color: rgb(86, 19, 148);
    text-align: center;
    color: #eee;
    padding: 10px;
    border-radius: 10px;
}

#certificate .total {
    text-align: center;
    color: #155724;
    font-weight: 1000;
}

.courses {
    display: flex;
    justify-content: center;
    width: 100%;
}

button {
    border: 3px solid #333;
    background-color: #000;
    padding: 10px;
    margin: 10px;
    min-height: 40px;
    border-radius: 10px;
    width: 150px;
}

button p {
    color: #eee;
}

.main {
    margin-bottom: 100px;
    width: 100%;
}

footer {
    background-color: #1b1ead;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
  }

  footer img {
    width: 30px;
  }

  #lastModified {
    color: yellowgreen;
  }
  
  #course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 10px;
    border: 2px;
}

.completed {
    min-height: 40px;
    min-width: 100%;
    border-radius: 5px;
    flex-grow: 1;
    background-color: #eee;
    border: 2px solid #c5c3c3;
    color: #155724;
}

.incomplete {
    min-height: 40px;
    min-width: 100%;
    border-radius: 5px;
    flex-grow: 1;
    background-color: #611010;
    color: #eee;
}

/*Mobile Css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#menu {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    padding: .5rem .75rem;
    margin-bottom: 60px;
    color: #eee;
    margin-left: 15px;
}

#menu::before {
    content: "☰";
}

nav {
    background-color: black;
    width: 100%;
}

.nav-links a.active {
    color: yellow;
    font-weight: bold;
    border-bottom: 2px solid yellow;
}

.navigation {
    list-style: none;
    margin: 0 auto;
    max-width: 760px;
    width: 100%;
}

.navigation li {
    display: none;
}

.navigation a {
    display: block;
    padding: 0.75rem;
    text-align: left;
    text-decoration: none;
    color: #eee;
    font-weight: 200;
    transition: 0.5s;
    font-size: clamp(1rem, 2vmin, 1.5rem);
}

.navigation a:hover, navigation a:active {
    color: white;
    background-color: black;
}

.show li {
    display: block;
}

#menu.show::before {
    content: "x";
}


header {
    background-color: rgb(86, 19, 148);
    color: #333;
    padding: 10px 0px;
	display: block;
    justify-content: space-between;
    align-items: center;
}

/*Larger View Css*/
@media (min-width: 900px) {
    .navigation {
        display: flex;
    }

    .navigation li {
        display: block;
        flex: 1 1 100%;
    }

    .navigation a {
        text-align: center;
    }
    #menu {
		display: none; /* hide hamburger button */
	}

    nav {
        background-color: rgb(0, 0, 0);
    }

    .flexbox-item {
        flex: 2;
    }

    .flexbox-item-1{
        order: 1;
        flex-grow: 4;
    }

    .flexbox-item-2{
        order: 2;
    }

    .figure img {
        max-width: 100%;
        margin-bottom: 8px;
    }

    #course-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1rem;
        width: 100%;
        margin-bottom: 10px;
        border: 2px;
    }

}