@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');
@import url("https://use.typekit.net/cdj6azl.css");

body, html { 
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #383a40;

}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #267ddf;
}

a:hover {
    text-decoration: underline;
}

#top-section {
    width: 100%;
    background-color: #fefdbf;
}

#top-section-2 {
    width: 100%;
    background-color: #f1e9c5;
}

#top-div-wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    height: 610px;
    background-image: url("../images/mainImgHome.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% 50%;
}

#top-div-wrapper-2 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    height: 128px;
}

#top-nav {
    height: 60px;
    padding-top: 40px;
    padding-left: 16px;
    padding-right: 16px;
}

#logo {
    float: left;
}

#logo img {
    width: 153px;
    height: 47px;
}

#top-menu {
    float: right;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 500;
    font-size: 17px;
    text-transform: uppercase;
    height: 30px;
    margin-top: 8px;
    text-align: center;
}

#top-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#top-menu li {
    display: inline;
    margin-left: 18px;
    border-bottom: 3px solid #e64e67;
}

#top-menu li:first-child {
    margin-left: 0px;
}

#top-menu li a {
    text-decoration: none;
    color: rgb(50,50,50);
}

#top-menu li a:hover {
    border-bottom: 3px solid #1a9d73;
}

.selected-menu {
    border-bottom: 3px solid #e46278;
}

#top-menu .modified-top-menu li {
    border-bottom: 3px solid #50a78b;
}

#top-menu .modified-top-menu li a:hover {
    border-bottom: 3px solid #e46278;
}

#header-message-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    /*border: 1px solid green;*/
}


#left-header-div {
    /*border: 1px solid #f1f1f1;*/
    padding-left: 10px;
}


#right-header-div {
    /*border: 1px solid #f1f1f1;*/
    display: none;
}

#right-header-div img {
    width: 90%;
}


h1 {
    margin-left: 14px;
    font-family: cabrito-normal, sans-serif;
    font-weight: 800;
    font-size: 53px;
    letter-spacing: 0.02em;
    margin-top: 0px;
    margin-bottom: 40px;
    color: #1e2122;
}

h1#first-line {
    margin-top: 50px;
    transform: rotate(-3deg);
}

h1#third-line {
    transform: rotate(3deg);
}

h1#first-line span {
    border-bottom: 12px solid #ffbd54;
}

h1#second-line span {
    border-bottom: 12px solid #ffbd54;
}

h1#third-line span {
    border-bottom: 12px solid #ffbd54;
}

#news-updates {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

#news-heading {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
    font-family: cabrito-normal, sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.news {
    margin-top: 20px;
    border-left: 6px solid #cbdd95;
    padding-left: 30px;
    margin-bottom: 50px;
}

.news p:nth-child(2) {
    line-height: 170%;
}

.news-title {
    font-weight: 700;
}

.content-title {
    font-family: cabrito-normal, sans-serif;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    margin-top: 60px;
    color: rgb(70,70,70);
}

.page-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 170%;
    overflow: auto; /*You need this otherwise, the height of div inside this div is 0. For float properties*/
}

.page-content p {
    padding-left: 15px;
    padding-right: 15px;
}

.image-p {
    text-align: center;
    width: 100%;
}

.book-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 170%;
    overflow: auto; /*You need this otherwise, the height of div inside this div is 0. For float properties*/
    margin-top: 70px;
    padding-left: 0px;
    padding-right: 15px;
}

.book-cover { /*For vertical title*/
    float: left;
    width: 50%;
    text-align: center;
}

.book-explanation {
    float: left;
    width: 50%;
}

.book-cover-2 { /*For horizontal title*/
    float: left;
    width: 50%;
    text-align: center;
}

.book-explanation-2 {
    float: left;
    width: 50%;
}

.book-title {
    font-weight: 500;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: rgb(80,80,80);
    margin-top: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
}

.book-info {
    background-color: #f1f0ed;
    border-radius: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 17px;
    padding-right: 17px;
    font-size: 15px;
}

.link-to-masa-art {
    display: block;
    text-align: center;
    font-size: 14px;
    max-width: 270px;
    background-color: #f1f0ed;
    background-image: url("../images/paint.png");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 20px 10px;
    border-radius: 3px;
    line-height: 1.6em;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 18px;
    padding-left: 50px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}

#sm-links {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 12px;
    flex-wrap: wrap;
}

#sm-links a {
    text-decoration: none;
    width: 50px;
    height: 50px;
}

#sm-links a img {
    width: 100%;
}

#sm-links a img:hover {
     filter:saturate(20);
}

.other-links {
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    text-align: center;
}


#footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 14px;
    padding-left: 15px;
    padding-right: 15px;
}


@media only screen and (max-width: 1000px) {
    h1 {
        font-size:48px;
    }
    
    #left-header-div {
        padding-left: 20px;
    }
}

@media only screen and (max-width: 890px) {
    h1 {
        font-size:44px;
    }
    
    #top-div-wrapper {
        background-position: 65% 50%;
    }
    
    #left-header-div {
        padding-left: 0px;
    }
}

@media only screen and (max-width: 830px) {
    
    #top-div-wrapper {
        background-image: url("../images/mainImgHome-mobile.jpg");
        background-position: 87% 50%;
        height: 610px;
        overflow: hidden;
        text-align: center;
    }
    
    #header-message-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #left-header-div {
        display: none;
    }
    
    #right-header-div {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90vw;
    }
}

@media only screen and (max-width: 680px) {
    
    #right-header-div {
        width: 100vw;
    }
}


@media only screen and (max-width: 600px) {
    #logo, #top-menu {
        float: none;
    }
    
    #logo {
        margin-bottom: 20px;
    }
    
    #top-nav {
        height: 170px;
    }
    
    #top-menu {
        margin-left: auto;
        margin-right: auto;
    }
    
    #top-div-wrapper {
        overflow: visible;
        height: auto;
    }
    
    #top-div-wrapper-2 {
        height: 180px;
        text-align: center; 
    }
    
    #header-message-wrapper {
        margin-top: 0px;
    }
    
    .image-p {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .image-p img {
        width: 100%;
    }
    
}

