/* ###### SITE STYLESHEET ######

1 - Global Styles
2 - Typography Styles
3 - Structure Styles
4 - Component Styles 
5 - Page Styles */


/* ###### 1 - GLOBAL STYLES ###### */

* {
    box-sizing: border-box;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}


/* ###### 2 - TYPOGRAPHY STYLES ###### */

html {
    font-size: 16px;
}

h1,
h2,
nav a,
footer a,
table,
small {
    font-family: Roboto, Helvetica, sans-serif; 
}

h1, 
h2 {
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    color: hsl(30, 80%, 70%);
    font-size: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

a {
    text-underline-position: under;
}

blockquote,
q,
p {
    font-family: Georgia, 'Times New Roman', serif; 
    font-size: 1rem;
}

blockquote {
    font-style: italic;
}

nav a,
footer a {
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
}

figcaption {
    font-size: 0.75rem;
}

main p,
main blockquote {
    text-align: justify;
}

table {
    font-size: 0.75rem;
}

caption {
    font-size: 1rem;
    padding-bottom: 1rem;
}

small {
    font-size: 1rem;
}

@media only screen and (min-width: 576px) {
    blockquote,
    q,
    p,
    table {
        font-size: 1.125rem;
    }
}

@media only screen and (min-width: 768px) {
    nav a,
    footer a {
        font-size: 1.125rem;
        letter-spacing: 1px;
    }

    figcaption {
        font-size: 1rem;
    }

    caption {
        font-size: 1.125rem;
    }
}


/* ###### 3 - STRUCTURE STYLES ###### */

.component-container {
    padding: 0 3%;
    width: 100%;
}

#page-container {
    background-color: hsl(30, 80%, 93%);
    padding: 0 3%;
    width: 100%;
}

@media only screen and (min-width: 576px) {
    .component-container {
        padding: 0 5%;
    }
    
    #page-container {
        padding: 0 5%;
    }
}

@media only screen and (min-width: 768px) {
    .component-container {
        padding: 0 10%;
    }
    
    #page-container {
        padding: 0 10%;
    }
}

@media only screen and (min-width: 935px) {
    #page-container {
        padding: 0 112px;
        margin: 0 auto;
        max-width: 935px;
    }
}


/* ###### 4 - COMPONENTS STYLES ###### */

/* Top header */

#top-navigation {
    background-color: hsl(260, 70%, 10%);
    padding-bottom: 16px;
    padding-top: 16px;
    width: 100%;
}

#top-navigation > ul {
    align-items: center;
    display: flex;
    flex-wrap: wrap; 
    list-style: none;
    width: 100%;
}

.top-nav-list-item {
    align-items: center;
    cursor: pointer;
    display: flex;
}

.top-nav-list-item > a {
    align-items: center;
    border: 1px solid hsl(260, 70%, 10%);
    display: flex;
    min-height: 3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
}

.top-nav-list-item:nth-of-type(even) > a {
    justify-content: right;
    text-align: right;
}

.top-nav-list-item:first-of-type, 
.top-nav-list-item:last-of-type {
    width: 37.5%;
}

.top-nav-list-item:nth-of-type(2), 
.top-nav-list-item:nth-of-type(3) {
    width: 62.5%;
}

.top-nav-list-item > a {
    color: hsl(260, 80%, 95%);
    transition: all .25s
}

.top-nav-list-item > a:active {
    background-color: hsl(260, 80%, 95%);
    color: hsl(260, 70%, 15%);
    transition: all .1s;
}

#current-page {
    color: hsl(30, 80%, 70%);
    font-size: 1.25rem;
    font-weight: bold;
}

#current-page:active {
    color: hsl(260, 70%, 15%);
}

#page-header > div {
    align-items: center;
    background-image: url(../../images/art/beksinski_es_1985_1_1_x_small.jpg);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    height: 350px;
    justify-content: center;
    position: relative;
    width: 100%;
}

#page-header > div::after {
    background-color: hsla(30, 75%, 45%, 55%);
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
}

#top-quote-container {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 80%;
    z-index: 1;
}

#top-quote-container > q {
    background-color: hsl(130, 80%, 85%);
    color: hsl(130, 80%, 5%);
    font-family: Roboto, Helvetica, sans-serif;
    padding: 1.25rem 1rem;
    text-align: center;
}

#top-quote-container > p {
    background-color: hsla(130, 80%, 5%, 80%);
    color: hsl(130, 80%, 95%);
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 0.75rem;
    padding: 1rem;
    width: auto;
}

@media only screen and (min-width: 576px) {
    #top-navigation > ul {
        flex-wrap: nowrap; 
        justify-content: space-between;
    }
    
    #top-navigation li:nth-of-type(even) {
        text-align: left;
    }
    
    #top-navigation li:first-of-type, 
    #top-navigation li:last-of-type {
        width: auto;
    }
    
    #top-navigation li:nth-of-type(2), 
    #top-navigation li:nth-of-type(3) {
        width: auto;
    }
    
    #page-header > div  {
        background-image: url(../../images/art/beksinski_es_1985_1_1_small.jpg);
        height: 400px;
    }
    
    #top-quote-container {
        width: 65%;
    }
    
    #top-quote-container q {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {  
    #page-header > div {
        background-image: url(../../images/art/beksinski_es_1985_1_1_medium.jpg);
        height: 500px;
    }
    
    #top-quote-container q {
        font-size: 1.375rem;
    }
    
    #top-quote-container p {
        font-size: 1rem;
    }
}

@media only screen and (min-width: 935px) {  
    #page-header > div {
        height: 550px;
    }
    
    #top-navigation > ul {
        max-width: 935px;
        margin: 0 auto;
    }
    
    .top-nav-list-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .top-nav-list-item > a:hover {
        border:1px solid hsl(260, 80%, 95%);
        transition: all .1s;
    }
    
    #top-quote-container {
        max-width: 600px;
    }
}

@media only screen and (min-width: 1200px) {
    #page-header > div {
        background-image: url(../../images/art/beksinski_es_1985_1_1_large.jpg);
    }
}

@media only screen and (min-width: 1366px) {
    #page-header > div {
        background-position: top;
        height: 665px;
    }
}

@media only screen and (min-width: 1600px) {
    #page-header > div {
        background-position: 50% 20%;
        height: 700px;
    }
}

/* Back to top link */

#back-to-top {
    background-color: hsl(130, 70%, 20%);
    display: flex;
    justify-content: center;
    padding-bottom: 32px;
    padding-top: 32px;
    width: 100%;
}

#back-to-top > a {
    color: hsl(130, 80%, 85%);
    font-family: Roboto, Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: all .25s;
}

#back-to-top > a:active {
    text-decoration: none;
    transition: all .1s;
}

@media only screen and (min-width: 935px) {
    #back-to-top {
        margin: 0 auto;
        max-width: 935px;
    }
    
    #back-to-top > a:hover {
        font-weight: bold;
        letter-spacing: 3px;
        transition: all .1s;
    }
}

/* Footer */

#page-footer {
    background-color: hsl(260, 70%, 10%);
    padding-bottom: 32px;
    padding-top: 32px;
    width: 100%;
}

#page-footer > ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
}

#page-footer li {
    align-items: center;
    cursor: pointer;
    display: flex;
    width: 100%;
}

#page-footer li > a {
    border: 1px solid hsl(260, 70%, 10%);
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

#page-footer a:active {
    background-color: hsl(260, 80%, 95%);
    color: hsl(260, 70%, 15%);
    transition: all .1s;
}

#page-footer a {
    color: hsl(260, 80%, 95%);
    padding: 0.3rem 0.5rem;
    transition: all .25s;
}

#copyrights-content {
    color: hsl(30, 80%, 70%);
    display: block;
    margin-top: 20px;
    padding: 0.3rem 0.5rem;
    text-align: center;
    width: 100%;
}

@media only screen and (min-width: 768px) {
    #page-footer li {
        width: 75%;
    }
}

@media only screen and (min-width: 935px) {
    #page-footer li {
        max-width: 600px;
    }
    
    #page-footer a:hover {
        border:1px solid hsl(260, 80%, 95%);
        transition: all .1s;
    }
}


/* ###### 5 - PAGE STYLES ###### */

/* Main element */

main {
    background-color: hsl(30, 40%, 50%);
}

@media only screen and (min-width: 935px) {
    main {
        background: linear-gradient(
        0.25turn, 
        hsl(7, 34%, 53%)    0%, 
        hsl(30, 40%, 50%)   25%, 
        hsl(30, 40%, 50%)   75%, 
        hsl(7, 34%, 53%)    100%);
    }
}

/* Main content header */

#main-content-header {
    background-color: hsl(260, 70%, 10%);
    color: hsl(260, 80%, 92%);
    padding-bottom: 48px;
    padding-top: 48px;
}

#main-content-header > blockquote {
    text-align: center;
}

@media only screen and (min-width: 576px) {    
    #main-content-header > blockquote {
        margin: auto;
        text-align: center;
        width: 80%;
    }
}

@media only screen and (min-width: 935px) {
      #main-content-header > blockquote {
        max-width: 600px;
    }
}

/* Main content */

#main-content {
    padding-bottom: 48px;
    padding-top: 48px;
}

#main-content p,
#main-content q,
#main-content blockquote {
    color: hsl(230, 0%, 10%);
}

.italic-style {
    font-style: italic;
}

/* Main content picture */

#main-figure {
    align-items: center;
    border: 3px solid hsl(130, 80%, 20%);
    box-shadow: 5px 5px 3px 1px hsl(130, 15%, 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 32px auto;
    width: 80%;
}

#main-figure > picture,
#main-figure > figcaption {
    width: 100%;
}

#main-figure > picture > * {
    display: block;
    height: auto;
    width: 100%;
}

#main-figure > figcaption {
    background-color: hsl(130, 80%, 85%);
    border-top: 3px solid hsl(130, 80%, 20%);
    color: hsl(130, 80%, 5%);
    padding: 1rem;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    #main-figure {
        width: 60%;
    }
}

@media only screen and (min-width: 935px) {
    #main-figure {
        width: 50%;
    }
}

/* Main article */

#main-article {
    margin-bottom: 36px;
}

#main-article blockquote {
    font-style: normal;
}

#main-article p {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

@media only screen and (min-width: 576px) {
    #main-article {
        margin-bottom: 72px;
    }
}

/* Main article links */

.go-to-external-page {
    color: hsl(260, 80%, 50%);
    text-decoration: underline;
}

.go-to-external-page:visited {
    color: hsl(30, 80%, 20%);
}

.go-to-external-page:hover {
    background-color: hsl(30, 80%, 20%);
    color: hsl(30, 80%, 93%);
}

.go-to-external-page:active {
    color: hsl(30, 80%, 40%);
}

/* Main article footer */

#main-article > footer p {
    text-align: center;
}

/* Table */

#table-container {
    background-color: hsl(261, 80%, 85%);
    border: 2px solid hsl(260, 70%, 10%);
    box-shadow: 5px 5px 3px 1px hsl(260, 15%, 60%);
    color: hsl(260, 70%, 10%);
    overflow-x: auto;
}

caption {
    padding: 1.125rem 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

thead {
    background-color: hsl(260, 70%, 10%);
    color: hsl(260, 80%, 95%);
}

th,
td {
    padding: 0.5rem;
}

th {
    text-transform: uppercase;
}

tbody > tr {
    background-color: hsl(261, 80%, 85%);
    color: hsl(260, 70%, 10%);
    transition: all .1s;
}

tbody > tr:nth-of-type(odd) {
    background-color: hsl(260, 80%, 95%);
    color: hsl(260, 70%, 10%);
}

tbody > tr:hover {
    background-color: hsl(260, 80%, 30%);
    color: hsl(260, 80%, 95%);
    transition: all .1s;
}

tbody > tr > td {
    text-align: center;
}

tbody > tr > td:nth-of-type(2) {
    text-align: left;
}