/* Importing the bulma css framework. */
@import 'https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css';

body {
    margin: 0 auto;
    justify-content: end;
    background-color: #fefefe;
    overflow-x: hidden;
}

.navbar-menu {
    display: inline-flex;
    padding-right: 3em;
    align-content: flex-end;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Styles the navbar menu when the screen is less than 1023px. */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: #496a81;
        box-shadow: none;
        margin: 0;
        width: 100%;
        z-index: 1;
        display: flex;
        transition: all 0.3s ease-in-out;
    }
}

/* Aligning the items in the navbar to the baseline when the screen is less than 1024px. */
@media screen and (min-width: 1024px) {

    .navbar,
    .navbar-end,
    .navbar-menu,
    .navbar-start {
        align-items: baseline;
    }
}

/* http://127.0.0.1:3000/Milestone/Website/css/style.css */

.contact-grid {
    /* fill: none; */
    /* display: flex; */
    flex-direction: row;
    align-items: baseline;
    max-width: min-content;
}

/* https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css */

body {
    /* color: #4a4a4a; */
    color: #a5a5a5;
    /* line-height: 1.5 */
    line-height: 1.5;
}



.image {
    margin: 0 auto;
    transition: transform .1s cubic-bezier(0.4, 0, 1, 1);
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

img>.image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform .8s ease;

}

.image:hover img {
    transform: scale(1.05);
}



.navbar-item,
.navbar-item>* {
    margin-left: 10px;
    color: #8bcbff;
}

nav.navbar {
    background: #496a81;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

body>header>nav>ul {
    padding-top: 1.5%;
}

/* Styling the hover effect of the navbar. */
body>header>nav>ul>li>a:hover {
    text-decoration: underline;
    color: #ccc;
}

/* Styling the unordered list in the fifth article of the section of the body. */
body>section>article:nth-child(5)>ul>li:nth-child(n) {
    border-top: solid thick #496a81ff;
    box-shadow: 0 3px 11px 0 #505050;
    border-bottom: solid thick #ffc482ff;
    border-radius: .3em;
    color: #2196f3;
    list-style: none;
    border-left: solid 1px #ccc;
    border-right: solid 1px #ccc;
    padding: 1em 1.5em;
    margin: 0 auto;

}

tbody,
td,
tfoot,
th,
thead,
tr {
    padding: 1em;
    box-shadow: 0 0 2px #fefefe;
    border-radius: .3em;

}

table {
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 0 20px #ccc;
    padding: 1em;
    border-radius: .3em;
}

tr {
    border: inset thin #496a81;
}

td {
    border: inset thin #496a81;
}

th {
    color: #496a81;
    font-weight: bold;
}

h2 {
    align-content: center;
    display: flex;
    justify-content: space-evenly;
    max-width: 50%;
    margin: 0 auto;
    color: #496a81ff;
    font-size: x-large;
    ;
}

/* h2 on hover underline text */
h2:hover {
    text-decoration: underline;
}

header {
    background: #496a81ff;
    display: grid;
    padding-bottom: 1em;
}

footer>p {
    padding: 5%;
    text-align: right;
    color: #aaa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.9em;
    font-weight: 300;
}

p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: #333;
    /* margin: 0 auto; */
}

h1 {
    display: flex;
    justify-content: center;
    align-content: center;
    color: #66999bff;
    margin: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: xx-large;
}

/* h1 on hover underline text */
h1:hover {
    text-decoration: underline;
}

td {
    border-top: solid thin;
    border-left-style: solid;
    color: #496a81ff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 80%;
}

ul {
    display: flex;
    align-content: center;
    justify-content: space-evenly;
    max-width: inherit;
}

a {
    /* text-decoration: underline; */
    color: #fafafa;
    margin: auto;
}

h4 {
    color: #66999bff;
    flex: auto;
    text-align-last: auto;
    min-width: 10em;
    margin: auto;
    /* A CSS animation. It is fading in the element. */
    animation: fadeIn 1.4s;
    -webkit-animation: fadeIn 1.4s;
    -moz-animation: fadeIn 1.4s;
    -o-animation: fadeIn 1.4s;
}

/* Styling the top portion of the site. Purely aesthetic. */
.logo {
    width: 100vw;
    padding-bottom: 2em;
    background-color: #2b3a67ff;
}

p>a {
    color: #496a81ff;
}

/* Styling the unordered list in the fifth article of the section of the body. */
body>section>article:nth-child(5)>ul {
    max-width: 60%;
    margin: auto;
    padding-top: 1em;
}

.photo-grid-item {
    display: contents;
    max-width: 100%;
}

/* Styling the images in the photo grid. */
html body div.photo-grid div.photo-grid-item img {
    box-shadow: -9px 7px 20px 0 #aaa;
    margin: 0 auto;
    max-width: 30%;
    min-height: min-content;
    margin-block: auto;
    padding: 1%;
}

/* Styling the marker of the list item. (the bullet point) */
::marker {
    color: transparent;
}

.contact-content {
    border-radius: 1.4em;
    margin: 0 auto;
    display: grid;
}

/* Styling the navbar. */
nav {
    display: contents;
    font-size: larger;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
}

.contact-grid {
    background-color: #e3e3e3;
    margin: auto;
    padding: 2em;
    border-radius: 1.4em;
    box-shadow: 0 1px 15px 0;
    fill: none;
}

.contact-item {
    margin: 0;
    padding: 1em;
    border-bottom: solid thin #ccc;
    display: flex;
    flex-direction: row;
}

h6 {
    padding: 1.4em;
    margin: 0 auto;
    color: #505050;
    max-width: max-content;
    font-size: large;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Styling the home image */
.home-img>img {
    box-shadow: -9px 7px 20px 0 #aaa;
    max-width: 35em;
    max-height: fit-content;
    min-width: auto;
    min-height: auto;
    margin: 0 auto;
    display: flex;
    animation: fadeIn 3s;
    -webkit-animation: fadeIn 3s;
    -moz-animation: fadeIn 3s;
    -o-animation: fadeIn 3s;
}

.navbar-item img {
    min-width: 0.75rem;
    max-height: 5em;
}

.contact-item>h4 {
    animation: fadeIn 5s;
    -webkit-animation: fadeIn 5s;
    -moz-animation: fadeIn 5s;
    -o-animation: fadeIn 5s;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.contact-item>h6 {
    opacity: 0;
    animation: fadeIn 3s 1.2s forwards;
    -webkit-animation: fadeIn 3s 1.2s forwards;
    -moz-animation: fadeIn 3s 1.2s forwards;
    -o-animation: fadeIn 3s 1.2s forwards;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
}

article>p {
    margin: 0 auto;
    padding: 1em;
    text-align: justify;
    color: #3a3a3a;
    max-width: 70%;
    box-shadow: 0 0 0 4px #eee;
}

/* Styling the h6 element in the contact section. */
a.\>.a.h6 {
    color: #3f32f8;
}

/* Styling the h1 element in the about section. */
.about>h1 {
    padding-bottom: 1em;
}

/* Styling the fourth h1 element in the body. */
.body.\>.h1\:nth-child\(4\) {
    padding-bottom: 1.5em;
}

/* Styling the second p tag in the footer (the view counter) */
footer>p:nth-child(2) {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    text-decoration: underline;
    margin-top: -10%;
}


/* -----------------------------CSS animation-------------------------------- */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* -------------CSS palette---------------- */
/* CSS HEX
    --space-cadet: #2b3a67ff;
    --dark-electric-blue: #496a81ff;
    --cadet-blue: #66999bff;
    --sage: #b3af8fff;
    --mellow-apricot: #ffc482ff;
*/