* {
    margin: 0;
    padding: 0;
}

header{
    border-bottom: 5px solid #f5b5ab;
    background-color: #fef8f4;
    height: 100px;
}

#logo {
    width: 200px;
    margin: 0;
    padding: 0;
    float: left;
}

body {
    place-items: center;
    text-align: center;
    background: url(images/clouldbackground.png);
    background-size: 100%;
}

#login {
    color: #90c4ba;
    color: #f7d785;
    font-size: 1.5em;
    padding: 5px 10px;
    background-color: #a5be8a;
    border: 2px solid #a5be8a;
    border-radius: 4px;
    text-decoration: none;
    margin: 20px 20px;
    float: right;
}

#login:hover {
    background-color: #91a877;
    border: 2px solid #91a877;
}


nav { 
    background: #90c4ba;
    border-bottom: 5px solid #f5b5ab;
    font-size: 20px;
    padding: 5px 0px;
    margin: auto;
}

nav a {
    display: block;
    color: #f7d785;
    position: relative;
    text-decoration: none;
}

nav a:hover {
    color: #90c4ba;
    background-color: #f7d785;
}

nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 600px;
    margin: auto;
    padding: 0;
    place-items: center;
    
}
nav ul li {
    width: 120px;
    list-style-type: none;
    border-right: 1px solid #f7d785;
}

nav ul li:last-child {
    border-right: none  ;
}

#journalsec {
    border-bottom: 5px solid #f5b5ab;
    height: 150px;
}

#journalsec h1 {
    font-family: "Playfair Display", serif;
    margin: 50px 10px;
    color: #90c4ba;
}

#journalbt {
    text-decoration: none;
    width: 100px;
    border: solid 1px #f5b5ab;
    border-radius: 4px;
    padding: 10px;
    color: #f7d785;
    background: #90c4ba;
}

#journalbt:hover {
    background-color: #a5be8a;
}

#journaling {
    display: grid;
    font-family: "Playfair Display", serif;
    font-size: 1.5em;
    place-items: center;
    border-bottom: 5px solid #f5b5ab;
}

#journaling h3 {
    font-family: "Playfair Display", serif;
    font-size: 1em;
    color: #90c4ba;
    margin: 30px;
}

#entry {
    width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    max-width: 100%;
    resize: vertical;
}

#submit {
    width: 100px;
    padding: 10px;
    background-color: #a5be8a;
    color: #f7d785;
    border: solid 1px #f5b5ab;
    border-radius: 4px;
    margin-bottom: 20px;

    font-size: 15px;
}

#submit:hover {
    background-color: #91a877;
}

#dailypromts {
    border-bottom: 5px solid #f5b5ab;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
    padding: 20px 100px
}

#dailypromts h3 {
    grid-column: 1/4;
    font-family: "Playfair Display", serif;
    font-size: 1.5em;
    color: #90c4ba;

}

.dpcard {
    display: grid;
    width: 300px;
    height: 100px;
    border: 3px solid #f5b5ab;
    border-radius: 5px;
    padding: 5px;
    place-items: center;
    margin: auto;
    background: #90c4ba;
    position: relative;
}

.dpcard p {
    margin: auto;
    font-family: "Open Sans", sans-serif;
    color: #f7d785;
}

.dpcard a {
    text-decoration: none;
    color: #f7d785;
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

#pastentries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
    padding: 20px 100px
}

#pastentries h3 {
    grid-column: 1/4;
    font-family: "Playfair Display", serif;
    font-size: 1.5em;
    color: #90c4ba;
}

.decard {
    display: grid;
    width: 300px;
    height: 100px;
    border: 3px solid #f5b5ab;
    border-radius: 5px;
    padding: 5px;
    place-items: center;
    margin: auto;
    background: #90c4ba;
}

.decard h4 {
    margin: auto;
    font-family: "Open Sans", sans-serif;
    color: #f7d785;
}

.decard p {
    margin: auto;
    font-family: "Open Sans", sans-serif;
    color: #f7d785;
}

footer {
    border-top: 5px solid #f5b5ab;
    background-color: #90c4ba;
    place-items: center;
    padding: 5px 0px;
    margin: auto;
}

#footerwrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    width: 300px;
    margin: auto;
}

footer a {
    width: 100px;
    color: #f7d785;
    text-decoration: none;
    border-right: 1px solid #f7d785;
}

footer a:last-child {
    border-right: none;
}

/*The bellow CSS is for the journal page*/

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px #0000001A;
    width: 400px;
}

#n_journal_entry {
    color: #f7d785;
    border-top: 5px solid #f5b5ab;
    background-color: #90c4ba;
    border-bottom: 5px solid #f5b5ab;
}

#j_entry {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    max-width: 100%;
    resize: vertical;
}

#j_submit {
    width: 100%;
    padding: 10px;
    background-color: #a5be8a;
    color: #f7d785;
    border: none;
    border-radius: 4px;
    margin-bottom: 20px;

    font-size: 15px;
}

#j_submit:hover {
    background-color: #91a877;
}

#item_list {
    list-style-type: none;
    padding: 0;
}

#item_list li {
    position: relative;
    padding: 10px;
    background-color: #e9e9e9;
    margin-bottom: 5px;
    border-radius: 4px;
    word-wrap: break-word;
}

#item_list li p {
    margin-top: 15px;
    white-space: pre-wrap;
    text-align: left;
}

.entry-date {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 12px;
    color: #555;
}

/*end of journal CSS*/

/* Start of Archive CSS */
#archive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 800px;
    margin: auto;
    row-gap: 50px;
    margin-top: 50px;
    margin-bottom: 100px;
}

#archive  h1 {
    grid-column: 1/3;
    font-family: "Playfair Display", serif;
    /* margin: 50px; */
    color: #90c4ba;
}
/* End of Archive CSS */

/*Start of About Page*/

#about_main {
    display: flex;
    justify-content: center;
}

#about_title {
    color: #f7d785;
    border-top: 5px solid #f5b5ab;
    background-color: #90c4ba;
    border-bottom: 5px solid #f5b5ab;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 100px;
    padding-right: 100px;
}

#about_box {
    border: 4px solid #f5b5ab;
    border-radius: 10px;
    width: 40%;
    padding: 10px;
    margin-bottom: 10px;

    background-color: #90c4ba;
}

#about_box p {
    overflow-wrap: break-word;
    padding: 10px;
    font-size: large;
    color: #f7d785;
}

/*End of About Page    #d1b773  */

/* For moble devices */

@media (max-width: 768px) {


    #dailypromts {
        width: auto;
        display: block;

    }
    .dpcard {
        width: 50%;
        margin-top: 10px;
        height: auto;
    }

    #pastentries {
        width: auto;
        display: block;
    }

    .decard {
        width: 50%;
        margin-top: 10px;
        height: auto;
    }

    #archive {
        width: auto;
        display: block;
    }

}