/* MMDD159 - Module 10 - Response Navigation     */
/* Extra small devices (phones, less than 600px) */
/* No media query since this is the default CSS */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: #252E32;
}

.container {
    min-height: 100vh;
    display: grid;
    grid-gap: 3px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 40px 1fr 40px;
    grid-template-areas: "m m m m m m" "c c c c c c" "f f f f f f";
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'IBM Plex Serif', serif;
}

header {
    grid-area: m;
    z-index: 10;
    transition: 1s;
}

.shifted-up {
    transform: translate(0px, -100px);
}

nav {
    padding-bottom: 4px;    
    height: 40px;
    overflow: hidden;
    transition: .5s;
    background: white;
}

nav ul {
    width: 100%;
    margin: 0 auto;
}



.navexpanded {
    height: 180px;
}

nav ul {
    display: flex;
    list-style-type: none;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

nav ul > li {
    margin-top: 14px;
    flex-basis: 100%;
}

nav ul li a {
    text-decoration: none;
    color: #252E32;
    transition: .5s;
    margin: 10px 20px 20px 20px;
}

nav ul li a:hover {
    text-decoration: none;
    color: #252E32;
    background: #FFD700;
}

#logo {
    font-family: 'IBM Plex Serif', serif;
    font-size: 32px;
    font-weight: 600;
    margin-right: auto;
    margin-top: 0px;
    flex-basis: 50%;
    text-align: left;
}

#menu-icon {
    margin-left: auto;
    flex-basis: 50%;
    text-align: right;
    font-size: 28px;
    margin-top: 0px;
}

#logo a:hover,
#menu-icon a:hover {
    background: none;
}
/* Styling for the Content Section */

main {
    grid-area: c;
}

article {
    display: grid;
    grid-template-columns: 5% 1fr 5%;
    align-content: center;
    min-height: 60vh;
}

article > * {
    grid-column: 2;
    min-width: 0;
}

h1 {
    font-size: calc(24px + (42 - 24) * (100vw - 400px) / (1600 - 400));
}

h2 {
    font-size: calc(18px + (28 - 18) * (100vw - 400px) / (1600 - 400));
}

p,
li {
    font-size: calc(14px + (18 - 14) * (100vw - 400px) / (1600 - 400));
}

.intro-paragraph {
    font-size: calc(18px + (28 - 18) * (100vw - 400px) / (1600 - 400));
}

#introduction {
    text-align: center;
}

#introduction a,
main a {
    font-size: calc(14px + (18 - 14) * (100vw - 400px) / (1600 - 400));
    text-decoration: none;
    color: #252E32;
    background: #FFD700;
    padding: 6px;
    transition: .5s;
}

p a {
    background: none;
    padding:0;
    font-weight: 700;
}

figcaption {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}

#introduction a:hover,
main a:hover {
    text-decoration: line-through;
    color: #252E32;
    background: transparent;
}

#work {
    margin-top: 14px;
    display: none;
}
/* Styling for the Detail */

main {
    display: grid;
    grid-template-columns: 5% 1fr 5%;
    /* text-align: center; */
    
    align-content: start;
}

main > * {
    grid-column: 2;
    min-width: 0;
    margin: 10px 0;
}

main blockquote {
    grid-column: 1 / -1;
    margin: 10px 0;
    color: #252E32;
    border-left: 10px solid #eee;
    padding-left: 10px;
}

main ul {
    margin-left: 16px;
}

main img {
    width: 100%;
}

main #hero {
    grid-column: 1 / -1;
    margin: 0 0 30px 0;
    max-height: 65vh;
    object-fit: cover;
}

.pub-link {
    margin-bottom: 30px;
}
/* Styling for the footer */

footer {
    grid-area: f;
    transition: 1s;
}

.shifted-down {
    transform: translate(0px, 100px);
}

footer ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
    align-items: center;
    height: 100%;
}

footer ul li a {
    text-decoration: none;
    color: #252E32;
    margin: 0 10px;
    font-size: 20px;
    transition: .5s;
}

footer ul li a:hover {
    text-decoration: none;
    color: #FFD700;
}
/* Small devices (i.e. tablets in portrait) */

@media (min-width: 600px) {
    nav ul {
        flex-direction: row;
        align-items: baseline;
    }
    nav ul > li {
        flex-basis: auto;
    }
    #logo {
        flex-basis: auto;
    }
    #menu-icon {
        display: none;
    }
    .navexpanded {
        height: 40px;
    }
    main,
    article {
        grid-template-columns: 10% 1fr 10%;
    }
}
/* Medium devices (i.e. tablets in landscape */

@media (min-width: 900px) {
    main,
    article {
        grid-template-columns: 15% 1fr 15%;
    }
}
/* Large devices (i.e. desktop) */

@media (min-width: 1200px) {}
/* X-Large devices (i.e. big desktop) */

@media (min-width: 1800px) {}