﻿/**
    @fileOverview
    HTML幻灯片Demo样式
    @author jinks@maxthon.net
 */




/***** 基本属性 *****/
body {
    margin: auto;
    font-family: "微软雅黑";
    color: white;
    font-size: 48px;
    background: rgba(0, 0, 0, 0.8);
}

h1, h2 {
    color: rgb(152, 255, 51);
    text-shadow: 3px 3px 5px black;
    font-size: 54px;
    margin: 0 0 40px;
    padding: 0;
    text-align: center;
}
.tmpl-title {
    font-size: 32px;
}
.tmpl-subtitle > h2 {
    font-size: 80px;
}
ul, li {
    margin-bottom: 0;
    margin-top: 0;
}
ul ul > li {
    font-size: 44px;
}


/***** 幻灯片样式 *****/
body > div {
    width: 800px;
    height: 600px;
    padding: 40px 80px;
    margin: auto;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    display: none;
    -webkit-box-shadow: 3px 3px 5px black;
    background: -webkit-gradient(radial,
        right bottom, 0,
        right bottom, 800,
        from(rgb(91, 124, 198)),
        to(rgb(0, 36, 99)));
}
body > div:target {
    display: block;
}
body > div > section {
    position: relative;
}
body > div > section .layer {
    position: absolute;
    font-size: 16px;
}

.popup {
    background: #fff;
    border: 2px solid #537CA5;
    -webkit-box-shadow: 0 0 5px 2px #a0b6cc;
    color: rgb(23, 55, 94);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
}
.popup:after {
    position: absolute;
    bottom: -16px;
    right: 30px;
    z-index: 2;
    content: "q";
    font-family: 'Wingdings 3';
    font-size: 20px;
    color: #fff;
    -webkit-transform: scale(1, 0.6);
}
.popup:before {
    position: absolute;
    bottom: -19px;
    right: 29px;
    z-index: 1;
    content: "q";
    font-family: 'Wingdings 3';
    font-size: 23px;
    color: #537CA5;
    -webkit-transform: scale(1, 0.6);
    text-shadow: 0 3px 5px #a0b6cc;
}


/***** 幻灯片动画 *****/
body > div .actable {
    opacity: 0;
}
body > div .acted {
    opacity: 1;
    -webkit-transition: opacity 0.5s ease-in-out;
}


/***** 模板属性 *****/
.tmpl-title {
    
}

.tmpl-subtitle > h2 {
    margin-top: 160px;
}

.tmpl-block {
    
}

.tmpl-picture {
    text-align: center;
}
.tmpl-picture > img {
    margin-top: 20px;
    height: 300px;
}


.tmpl-columns > section {
    -webkit-column-count: 2;
    -webkit-column-gap: 40px;
    -webkit-column-rule: 0;
}


.tmpl-block > section {
    max-height: 400px;
}
.tmpl-block > section > *:first-child {
    width: 100%;
}
.tmpl-block > section > img:first-child,
.tmpl-block > section > video:first-child {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}




