/* 灯笼整体块（包括灯和线） */
.lantern{
    position:fixed;
    top:-13vh;
    width:10vw;
    height:auto;
    right: 3px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    z-index: 50;
    transition: 0.5s ease-in-out;
    transition-property: all;
    transform: translateY(-5vh);
}
.lantern.shine{
    transition: 0.5s ease-in-out;
    transition-property: all;
    transform: translateY(5vh);
}
/* 灯笼灯的部分 */
.lantern_body{
    cursor: pointer;
    position: relative;/*不知道什么原理但是得这么写*/
    z-index: 50;
    transform-origin: 50% 0%;/* 旋转中心为中心、上顶点 */
    animation: swing 7s ease infinite;/* 摆动动画 */
}
/* 使得灯笼发光的伪元素 */

.shine.lantern_body::after{
    content:'';/*对于伪元素，必须有content属性，否则不会显示*/
    position: absolute;/*在位置上继承父元素（lantern）的位置*/
    top:50%;    
    inset:0;/* ;从原来的位置不偏移 */
    background: repeating-conic-gradient(from 0deg, #ead483, #ead483 10deg, #f2f2f2 10deg, #f2f2f2 20deg);/*圆锥渐变，生成放射条纹*/
    background-size: 7vw 7vw;/* 发光区域大小 */
    animation: rotating 10s linear infinite;/* 旋转动画 */
    border-radius: 100%; /* 圆角 ，使得形成光圈为圆形*/
    filter: blur(40px);/* 每个条纹模糊，形成光晕*/
    opacity: 0.55;/* 透明度 */
}

.rope{
    content:'';
    position:relative;
    height:40vh;
    border: #0a0000 2px solid;
}

@keyframes shining{
    0%{
        transform: rotate(0deg);
        filter:blur(40px);
    }
    50%{
        transform: rotate(180deg);
        filter:blur(20px);
    }
    100%{
        transform: rotate(360deg);
        filter:blur(40px);
    }
}
@keyframes pull {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(10vh);
    }
    100%{
        transform: translateY(0);
    }
}
/* 摆动动画 */
@keyframes swing {
    0%,100%{
        transform: rotate(0deg);
    }
    25%{
        transform: rotate(3deg);
    }
    75%{
        transform: rotate(-3deg);
    }
}
/* 屋檐 */
.upperbar1{
    width: 100%;
    z-index:30;
}

.upperbar_sticky{
    position: sticky;
    top: 56px;/*navbar的高度*/
    z-index: 10;
}
.upperbar_block{
    content:"";
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/upper-block-4.png");
    background-repeat: repeat-x;/*设置为背景图片才能重复，变宽时通过重复而不是变大来限制高度*/
    background-size: auto 100%;/*设置图片的宽度自适应，高度100%（继承块的高度），不然宽高就是图片原本宽高，不会变化，只有x方向不断重复*/
    position:relative;
    height: 6.24vw;/*由柱子顶部的高度推断出来*/
    width: auto;
    display:flex;
}
/* 装饰用的柱子 */
.column {
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/column-2.png");
    background-size:100% 50vw;/*背景宽度为柱子宽度，高度是页面高度的一半（适当拉伸）*/
    background-repeat: repeat-y;
    display:flex;
    flex-direction: column;
    width: 7vw;/*一般宽度变化7vw，最大宽度70px*/
    height:auto;
    z-index:20;
}
/* 柱子顶部图片，sitcky的效果在上级块中实现，这个块用于调整偏移量，宽度超过100%来实现两边突出的效果 */
.column_upperbar2{
    position:relative;
    left:-13%;
    width:126%;
}
/* 中间页面（除了上下之外的内容） */
.page_middle {
    display: flex;
    flex-direction: row;
}
/* 页面主要内容（中间不包括侧边栏） */
.page_main{
    width:73vw;
}
.page_content{
    width:100%;
    padding-left: 4vw;
    padding-right: 12vw;
    padding-top: 2vw;
    margin:0;
    height:auto;
    overflow:hidden;
}
/* 关于container与中间页面的格式问题，请看bootstrap中
@media(contianer)修改不同页面下的内容大小大概在648行开始
mt-4 col-8等修改内容大小百分比 */

/* 侧边栏 */

.sidebar {
    display: block;
    z-index: 3;
    left: -20vw;
    width: 20vw;
    height: auto;/*块的高度足够高才能保证sticky的效果，不然会半路卡住*/
    background-color: #fff;
    transition: .5s ease;
    transition-property:all;
}

.sidebar.is-show {
    top:0;
    left: 0;
    display: flex;
    flex-direction: column;
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/sidebar-back.png");
    background-size: 100% auto;
}


.sidebar-box {
    display: block;
}
.uk-nav{
    list-style-type: none;/*去掉列表的点*/
    padding-left: 0;/*去掉bookstrap里面设置的缩进*/
}
.sidebar-box .uk-nav li {
    transition: .5s ease;
    transition-property:all;
}
.sidebar-box .uk-nav li a {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 12px 12px 30px;
    color: #ffffffb7;
    font-style: normal;
    font-weight: 700;
    line-height: 1.36;
    transition: .5s ease;
    transition-property:all;
    font-family: kumbh-bold;
    font-size: 13px;
    text-decoration: none;
}

.sidebar-box .uk-nav li a:hover,
.sidebar-box .uk-nav li.uk-active a {
    color: #c8d4a2;
    text-decoration: underline;
    transition: .5s ease;
    transition-property:all;
    border-radius: 0 20px 20px 0;
/* 本来这里还有active和focus两个伪类，但是他俩和inner中的功能冲突（inner会使得被点击的/当前段落的标题高亮）
而这边active会使被点击的一直高亮,focus和hover是一样的，所以这里只保留hover*/
} 

.sidebar-box .uk-nav li a::before {
    -webkit-transition: .25s linear;
    -o-transition: .25s linear;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0%;
    border-radius: 0 5px 5px 0;
    background: #c8d4a2;
    content: '';
    opacity: 0;
    transition: .5s ease;
    transition-property:all;
}
.sidebar-box .uk-nav li.uk-active a::before {
    opacity: 1;
    height: 100%;
    transition: .5s ease;
    transition-property:all;
}
.sidebar-box .uk-nav li.content-1 a:hover,
.sidebar-box .uk-nav li.content-1.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-1.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-2 a:hover,
.sidebar-box .uk-nav li.content-2.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-2.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-3 a:hover,
.sidebar-box .uk-nav li.content-3.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-3.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-4 a:hover,
.sidebar-box .uk-nav li.content-4.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-4.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-5 a:hover,
.sidebar-box .uk-nav li.content-5.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-5.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-6 a:hover,
.sidebar-box .uk-nav li.content-6.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-6.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-7 a:hover,
.sidebar-box .uk-nav li.content-7.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-7.png");
    background-size: 100% auto;
}
.sidebar-box .uk-nav li.content-8 a:hover,
.sidebar-box .uk-nav li.content-8.uk-active a{
    background-image: url("https://static.igem.wiki/teams/5276/wiki/web-assets/sidebar/content-8.png");
    background-size: 100% auto;
}

[open] p,
details p {
    transition: max-height .25s
}


/* @media (min-width:576px) {

    .page_content{
        max-width: 540px
    }
    .column{
        width: min(7vw, 70px);
    }
}

@media (min-width:768px) {

    .page_content {
        max-width: 720px
    }
    .column{
        width: min(7vw, 70px);
    }
}

@media (min-width:992px) {

    .page_content{
        max-width: 960px
    }
    .column{
        width: min(7vw, 70px);
    }
}

@media (min-width:1200px) {

    .page_content{
        max-width: 1140px
    }
    .column{
        width: min(7vw, 70px);
    }
} 
*/

@media (min-width:1000px) {

    .page_main{
        width: 80vw;
    }
    .column{
        min-width: 70px;
    }
}
@media only screen and (max-width:767px) {

    .sidebar.is-show+.container {
        left: 0;
        width: 100%;
        overflow: hidden;
        padding: 20px 15px 30px
    }

    .sidebar.is-show+.container::before {
        opacity: 1
    }

    .sidebar+.container {
        padding: 30px 30px 45px
    }

    .page-header__sidebar {
        width: auto;
        padding: 0 10px 0 15px;
        border-right: 0
    }

    .sidebar {
        padding: 20px 20px 20px 0
    }

    aside {
        display: none !important
    }

    .column{
        width:7vw;
    }

    .page_main{
        width:93vw
    }
}

/* 页面最下方的证书区域 */
.license {
    margin: 0;
    background: linear-gradient(180deg, #ead483, #ddaa22);
    position: relative;
    z-index: 20
}
/* 赞助logos的布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3 ,1fr);
    grid-template-rows: repeat(2,1fr);
    grid:
    "left1 middle1 right1"
    "left2 middle2 right2";
    grid-auto-flow: row dense;
    grid-gap: 10px;
    padding: 0vw 6vw 0vw 6vw;/*左右边距*/
}

/* 赞助支持的logos */
.sponsor {
    height: min(5vw,47px);/*一般变化5vw，最大高度47px*/
    width: auto;
}
/* 以下是grid布局中各块里面的对齐内容 */
.justify-l1{
    grid-area:left1;
    justify-self: end;
}
.justify-r1{
    grid-area:right1;
    justify-self: start;
}
.justify-m1{
    grid-area:middle1;
    justify-self: center;
}
.justify-l2{
    grid-area:left2;
    justify-self: end;
}
.justify-r2{
    grid-area:right2;
    justify-self: start;
}
.justify-m2{
    grid-area:middle2;
    justify-self: center;
}
/* 证书区域的行 */
.license p {
    color: #ffffff;
    text-indent: 0;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    text-align: center;
}
/* 证书区域的链接 */
.license a {
    color: #c5ecff;
    font-weight: 500;
    text-decoration: none
}
/* 链接悬停时加下划线 */
.license a:hover {
    color: #fff;
    text-decoration: underline;
}

.flexbox-vertical {
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px
}
