
* {
    box-sizing: border-box;
}

html {
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: rgb(5, 4, 57);
    color: rgb(223, 197, 52);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: rgb(223, 197, 52);
    text-decoration: none;
}

header h2 {
    margin: 0;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 15px;
}

/* Main Content */
main {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

h1 {
    font-size: 24px;
    text-align: center;
    width: 100%;
    border-top: 2px solid rgb(5, 4, 57);
    border-bottom: 2px solid rgb(5, 4, 57);
    background-color: rgba(120, 124, 218, 0.374);
    padding: 15px;
    margin-top: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}


#fav-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 50px;
}

#fav-container > p {
    grid-column: 1 / -1;
    text-align: center;
}

#fav-container article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    margin-bottom: 5px;
}

#fav-container article {
    background-color: rgb(5, 4, 57);
    color: white;
    border: 2px solid rgb(223, 197, 52);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

#fav-container article h2 {
    color: rgb(223, 197, 52);
    border-bottom: 1px solid rgb(223, 197, 52);
    padding-bottom: 5px;
    margin-top: 0;
    font-size: 20px;
}

#fav-container article h2 a {
    color: rgb(223, 197, 52);
    text-decoration: none;
}

#fav-container article h2 a:visited {
    color: rgb(223, 197, 52);
}
 


/* Notes */
#notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: rgb(218, 219, 220);
}

#notesTitle {
    text-align: center;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding: 15px;
    background-color: rgba(120, 124, 218, 0.374);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.notes-card {
    border: 1px solid black;
    padding: 15px;
    background-color: rgb(233, 235, 237);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.notes-card h3 {
    font-size: 16px;
    text-align: left;
    padding-bottom: 5px;
    border-bottom: 1.5px solid black;
}

.notes-card button {
    align-items: end;
    background-color: rgb(223, 197, 52);
}

/* Footer */
footer {
    background-color: rgb(5, 4, 57);
    color: rgb(223, 197, 52);
    text-align: center;
    padding: 10px;
    font-size: 10px;
}

/* Mobile Styling */
@media screen and (max-width: 767px) {
    header > nav > ul {
        display: block;
        padding: 0;
        line-height: 2;
        margin: 0;
    }

    header > nav > ul > li {
        display: block;
        padding: 0;
    }

    main {
        width: 95%;
    }

    #notes {
        grid-template-columns: 1fr;
    }

    footer {
        font-size: 12px;
    }

    #fav-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
