/* Reset */
* {
    margin: 0;
    padding: 0;
}

/* Body */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: rgb(46,20,21);
    background: linear-gradient(180deg, rgba(46,20,21,1) 0%, rgba(46,20,21,1) 25%, rgba(32,12,13,1) 50%);
    min-height: 1024px;
}

/* App layout */
.app {
    width: 1280px;
    margin: 0 auto;
    color: white;
    font-family: Cuprum, sans-serif;
    font-size: 20px;
    display: flex;
    flex-direction: column;
}

/* Typography */
p {
    margin: 1em 0;
    padding-top: 1em;
    line-height: 1.2em;
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 23px;
}

a {
    color: white;
}

h1 {
    font-size: 23px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 23px;
}

h3 {
    font-size: 17px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 23px;
}

/* Logo */
h1.logo {
    width: 789px;
    height: 120px;
    text-indent: -9999px;
    color: transparent;
    margin-top: 24px;
    margin-left: 30px;
}

h1.logo a {
    width: 782px;
    height: 120px;
    display: block;
}

/* Navigation */
nav ul {
    display: flex;
}

nav ul li {
    list-style: none;
    margin-right: 55px;
}

li.drawings {
    width: 168px;
    height: 44px;
    margin-left: 50px;
}

li.drawings a {
    width: 168px;
    height: 45px;
    color: transparent;
    display: block;
}

li.paintings {
    width: 161px;
    height: 44px;
}

li.paintings a {
    width: 161px;
    height: 45px;
    color: transparent;
    display: block;
}

li.contact {
    width: 127px;
    height: 45px;
}

li.contact a {
    width: 125px;
    height: 45px;
    color: transparent;
    display: block;
}

li.about {
    width: 103px;
    height: 45px;
}

li.about a {
    width: 103px;
    height: 45px;
    display: block;
    color: transparent;
}

/* Home page slideshow */
.home-art {
    display: flex;
    justify-content: space-evenly;
    margin-top: 2em;
    margin-bottom: 2em;
}

.slider-container {
    width: 472px;
    height: 472px;
}

.slider {
    position: relative;
}

.slider img {
    position: absolute;
    left: 0;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slider img.opaque {
    opacity: 1;
}

/* Gallery grid */
.gallery {
    background-color: #744937;
    width: 1020px;
    margin-top: 75px;
    margin-bottom: 25px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.gallery figure {
    margin-bottom: 1em;
    text-align: center;
}

.gallery figure figcaption {
    text-align: center;
}

/* Gallery detail page */
.gallery-details {
    font-size: 3em;
    color: #ffffff;
    margin-top: 1em;
}

.gallery-details .title {
    margin-bottom: .5em;
}

.gallery-details .art-details {
    display: flex;
    justify-content: flex-start;
}

.art-details img {
    margin-right: 1em;
}

.art-info .materials {
    font-size: .6em;
}

.gallery-details .art-details .art-info div {
    margin-bottom: 1em;
}

/* Sold overlay */
.overlay {
    position: relative;
}

.soldoverlay {
    position: absolute;
    bottom: 16px;
    right: 0;
}

/* About page */
div.large {
    font-size: 1.5em;
    width: 700px;
}

img.dennis {
    float: left;
    margin: 20px 20px 20px 0;
}

/* Contact form */
.contact {
    width: 700px;
}

.contact form {
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    margin-left: 1em;
    width: 30em;
}

.contact form button {
    width: 10em;
    margin-top: 1em;
}

/* Purchase section on artwork detail page */
.purchase-section {
    margin-top: 2em;
    font-size: 0.5em;
}

.purchase-form-area {
    width: 100%;
    display: flex;
    margin-top: 1em;
}

.purchase-form-area img {
    margin-right: 1em;
}

.purchase-form-area figcaption {
    text-align: center;
    margin-bottom: .5em;
    font-style: italic;
}

.purchase-form-area form {
    display: flex;
    flex-direction: column;
}

.purchase-form-area input, .purchase-form-area textarea {
    margin-left: 1em;
    width: 30em;
}

.purchase-form-area form button {
    width: 20em;
    margin-top: 1em;
}

/* Footer */
.footer {
    font-size: 23px;
    font-style: normal;
    font-variant: normal;
    font-weight: 100;
    line-height: 23px;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Message overlays */
.error-message, .success-message {
    color: white;
    height: 6em;
    position: fixed;
    border-radius: 1em;
    border: 1px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    padding: 1em;
    overflow: hidden;
    width: 450px;
    left: 20%;
    top: 30%;
    z-index: 100;
}

.error-message {
    background: linear-gradient(180deg, rgb(153, 0, 0) 0%, rgb(153, 0, 0) 1.5em, rgb(32, 12, 13) 1.5em);
}

.success-message {
    background: linear-gradient(180deg, rgb(23, 153, 0) 0%, rgb(23, 153, 0) 1.5em, rgb(32, 12, 13) 1.5em);
}

.error-message .close-button,
.success-message .close-button {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    left: 10px;
    top: -23px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.error-message .msg-title,
.success-message .msg-title {
    font-size: 1.2em;
    position: relative;
    color: white;
    top: -20px;
    font-weight: bold;
}
