/*##################################
作者：小紫菱
联系:xiaopantimp@sina.com
日期：2018年6月9日
版权所有，请勿抄袭
####################################*/


/* ###################
01.结构化框架容器的样式 
#####################*/

html {
    background-image: url(../background/sishuinianhua.png);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

header {
    padding-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    padding-left: 120px;
}

body {
    font-size: middle;
    line-height: 1.5em;
}



main {
    background-color: #d2cac7;
    opacity: 0.87;
    padding-right: 20px;
    padding-left: 100px;
}

footer {
    color: rgba(255, 255, 255, .8);
    background-color: #4c4346;
}

section {
    text-align: justify;
    margin-left: 20px;
}


/* ####################
02. Block elements的样式 
#########################*/

p {
    text-align: justify;
}

section p {
    text-indent: 30px;
}

header p {
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    text-shadow: 1px 1px 1px black;
    text-align: right;
    margin-right: 30px;
}

footer p {
    border-top: 1px solid rgb(0, 0, 0, .3);
    text-align: center;
    font-size: 10px;
    margin: 0;
    margin-left: 120px;
}

ul {
    display: flex;
    margin: auto;
}

figure {

    display: inline-block;
    max-height: 400px;
    max-width: 450px;
    margin: 10px;
    background-color: rgba(0 0 0 .1);
    border: 3px white solid;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

ul li figcaption {
    padding-top: 20px
}

aside p {
    font-size: smaller;
}

aside h7 {
    font-weight: 500;
}



/* #####################
03. Inline Elements 的样式 
##########################*/

header img {
    width: 30%;
    padding-bottom: 50px;
}

nav a {
    color: rgba(255, 255, 255, .8);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .7);
}

h2 {
    text-align: center;
}

img {
    max-width: 100%;
}

ul li {
    border-radius: 5px;
}

ul li a:link,
ul li a:visited,
ul li a:hover {
    display: block;
    text-decoration: none;
    color: rgba(0, 0, 0, .7);
    border-bottom: none;
}

ul li {
    list-style: none;
}



/* ####################
04.自定义class或id的样式 
######################*/

ul#picture {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
}

ul#picture li a {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(100% / 2 - 40px);
    margin: 10px;
    border-radius: 5px;
}

ul#picture li a img {

    display: inline-block;
    max-height: 400px;
    max-width: 450px;
    margin: 10px;
    background-color: rgba(0 0 0 .1);
    border: 3px white solid;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.w3-theme-d1 {
    color: #000 !important;
    background-color: #675b5f!important
}



/* ####################
05. 网页flex分栏排版 
######################*/


/* ###############
06.自适应样式 
##################*/


/* 炒鸡小屏手机 (phones, 600px and down) */

@media only screen and (max-width: 600px) {
    header img {
        width: 100%;
        padding-bottom: 0;
    }
    flex-basis: calc(100% / 1);
}



/* 中等手机以及竖屏平板 (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) {}



/* 横屏平板 (landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) {}



/* 中小型笔记本电脑及台式机 (laptops/desktops, 992px and up) */

@media only screen and (min-width: 992px) {}



/* 宽屏笔记本及台式机 (large laptops and desktops, 1200px and up) */

@media only screen and (min-width: 1200px) {}
