h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans TC', sans-serif;
}

p,
a,
input,
label,
textarea,
span,
ul,
li {
    font-family: 'Open Sans', sans-serif;
}

/*fade in animation*/

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*left-nav animation*/

@-webkit-keyframes navleftfadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes navleftfadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*right-nav animation*/

@-webkit-keyframes navrightfadeInRight {
    0% {
        opacity: 0;
        -webkit-transform: translateX(40px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes navrightfadeInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*intro fade in from left*/
@-webkit-keyframes introfadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes introfadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*intro fade in from top*/
@-webkit-keyframes introfadeInTop {
    0% {
        opacity: 0;
        -webkit-transform: translateY(0px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes introfadeInTop {
    0% {
        opacity: 0;
        transform: translateY(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(20px);
    }
}



/*以下为元件参数*/

#intro .jumbotron {
    height: 70vh;
    margin: 0px 0px;
    background-image: url(pictures/robomaster.webp), linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    background-blend-mode: difference;
    background-blend-mode: soft-light;
    background-size: cover;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0px;
    padding-top: 0px;
    z-index: 1;
    animation: introfadeInLeft ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#intro h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #910b00;
    animation-delay: 3s;
}

#intro #sign-btn {
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 22px;
    margin-top: 5px;

}

#intro button {
    padding: 2px 2px 2px 2px;
    border-radius: 40px;
    background-color: #1b2f65;
    opacity: 0.6;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

#intro button:hover {
    opacity: 1
}

#intro .container {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}


#intro p {
    font-size: 32px;
    margin-bottom: 0px;
    margin-top: 0px;
    margin-right: 20px;
    text-align: left;
    color: #030357;
    font-weight: 300px;
}

#intro #lead2 {
    font-size: 24px;
    margin-top: 4px;
    margin-bottom: 10px;
    color: #181833;
    opacity: 0.7;
}


header nav #robo-text {
    width: auto;
    height: 120px;
}

header nav #main-logo {
    width: 450px;
    height: 115px;
    margin-right: 0px;
    position: relative;
}

header nav p {
    font-size: 30px;
    margin-top: 0px;
    margin-right: 0px;
    margin-left: 0px;
    padding-right: 10px;
    position: absolute;
    left: 120px;
    top: 55px;
}

header li {
    margin: 24px 20px 20px 30px;
    padding-top: 30px;
    font-size: 25px;
}

header #nav-btn {}

p {
    color: #707070;
}

p.lead {
    color: black;
}

#latest {
    padding: 80px 0px;
    background: rgb(234, 234, 234);
    animation: fadeInAnimation ease 6s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#latest img {
    max-width: 100%;
    opacity: 0.25;
}

#latest .innertext {
    position: absolute;
    bottom: 10px;
    left: 26px;
}

#latest .upper {
    position: relative;
}

#latest .innertext span {
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 14px;
    border-radius: 20px;
}

#latest .innertext h4 {
    font-size: 20px;
    margin-top: 12px;
}

#latest .lower h3 {
    font-size: 25px;
    font-weight: 500px;
    margin-bottom: 10px;
    margin-top: 5px;
}

#latest .lower {
    padding: 13px 20px 20px 20px;
}

#latest .outer {
    background: white;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
}

#latest a {
    color: black;
}

#latest a:hover {
    text-decoration: none;
}

#latest h2 {
    margin-top: 0px;
    margin-bottom: 40px;
    font-weight: 600px;
}

footer {
    padding-top: 25px;
    padding-bottom: 50px;
}

footer h2 {
    font-size: 25px;
}

footer h3 {
    font-size: 20px;
    font-weight: 500px;
}

footer p {
    padding-left: 10px；
}

footer .col-md-6.text-left p {
    font-size: 15px;
    margin-bottom: 2px;
}

footer a {
    color: gray;
}

footer .col-md-6 h2 {
    margin-bottom: 5px;
}

footer .col-md-6 img {
    width: 75px;
}

@media only screen and (max-width:1000px) {
    #intro .jumbotron {
        height: 70vh;
        margin: 0px 0px;
        background-image: url(pictures/robomaster.webp), linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
        background-blend-mode: difference;
        background-blend-mode: soft-light;
        background-size: contain;
        background-size: cover;
        background-size: auto auto;
        background-size: auto auto;
        background-position: center center;
        background-repeat: no-repeat;
    }

    #latest .outer {
        margin-bottom: 30px;
    }

    #latest img {
        width: 100%;
    }
}

@media only screen and (max-width:1235px) {
    header li {
        margin: 24px 20px 20px 20px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:1152px) {
    header li {
        margin: 24px 20px 20px 15px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:1102px) {
    header li {
        margin: 24px 20px 20px 10px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:1066px) {
    header li {
        margin: 24px 20px 20px 5px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:1027px) {
    header li {
        margin: 24px 20px 20px 2px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:997px) {
    header li {
        margin: 24px 20px 20px 0px;
        padding-top: 30px;
        font-size: 25px;
    }
}

@media only screen and (max-width:500px) {
    header li {
        margin: 24px 20px 20px 0px;
        padding-top: 30px;
        font-size: 25px;
    }

    header nav #main-logo {
        width: 324px;
        height: 82.8px;
        margin-right: 0px;
        position: relative;
    }
}

/*sign up page*/

#sign {
    background: rgb(234, 234, 234);
}

#sign .container {
    background: rgb(255, 255, 255);
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}


#sign #title h2 {
    font-size: 40px;
    margin-top: 40px;
    text-align: left;
    color: #770900;
    animation: navleftfadeInLeft ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#sign #title h1 {
    font-size: 50px;
    text-align: left;
    margin-top: 0px;
    animation: navleftfadeInLeft ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#sign #form {
    height: 1800px;
    width: 100%;
}

#sign #introduce p {
    margin-top: 20px;
    font-size: 25px;
    color: black;
}

#sign #introduce-top p {
    font-size: 25px;
    animation: navleftfadeInLeft ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    color: black;
}

#sign h3 {
    color: #181833;
    font-weight: 600;
    font-size: 35px;
    margin-top: 30px;
}

#sign #sign-up-box h4 {
    margin-top: 5px;
    font-size: 25px;
    font-weight: 300;
}

#sign #intro-hp {
    animation: navleftfadeInLeft ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    font-weight: 300;
    font-size: 25px;
}

#sign #intro-p {
    font-weight: 300;
    font-size: 25px;
}

#sign #sign-up-box img {
    height: 300px;
}

#sign #intro-img {
    height: 300px;
    animation: navleftfadeInLeft ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#sign li {
    font-size: 25px;
}

#sign #line {
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#sign #round-img {
    margin-top: 30px;
    width: 70%;
}

#sign #rulespdf {
    height: 900px;
    width: 100%;
}

@media only screen and (max-width:1014px) {
    iframe {
        width: 640px;
    }

    #sign #sign-up-box .outer {
        margin-bottom: 30px;
    }

    #sign #sign-up-box img {
        width: 100%;
        height: 100%;
    }
}

/* 隐藏默认三角 */
::-webkit-details-marker {
    display: none;
}

::-moz-list-bullet {
    font-size: 0;
    float: left;
}

summary {
    user-select: none;
    outline: 0;
}

dt::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    margin: 4px 0 0 .5ch;
    background: url(./arrow-on.svg) no-repeat;
    background-size: 100% 100%;
    transition: transform .2s;
}

[open] dt::after {
    transform: rotate(90deg);
}

/*match page*/

#match {
    background: rgb(234, 234, 234);
}

#match .container {
    background: rgb(255, 255, 255);
}
