* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* 預設情況下不設定 min-width，讓手機正常縮放 */
body {
  width: 100%;
}

/* 在大於 620px 時才套用 min-width 保護版型 */
@media (min-width: 620px) {
  body {
    min-width: 620px;
  }
}

#rule, #info , #builder-rule {
    margin-top: 80px; /* 讓內容不被導覽列遮擋 */
}

#info {
    min-height: 600px;
}
[id] {
    scroll-margin-top: 80px;
  }

.navbar {
    background-color: #333333be;
    width: 100%;
    height: 70px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
}

.logo {
    line-height: 75px;
    padding: 0 20px;
}

.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    padding: 0 5px;
}

.logo a:hover {
    text-decoration: none;
    color: #fff;
    font-size: 38px;
    padding-left: 2px;
    font-weight: bold;
    border-radius: 10px;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 80px;
    margin-right: 30px;
    cursor: pointer;
    display: none;
}


#check {
    display: none;
}

.navbar ul {
    float: right;
    margin-right: 20px;
    line-height: 80px;
    position: relative;
}

.navbar ul li {
    list-style: none;
    display: inline-block;
    margin: 0px 10px;
}

.navbar ul li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #fff;
    bottom: 0;
    left: 50%;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    margin: 0 0 -5px;
}

.navbar ul li a:hover::after {
    width: 100%;
    left: 0;
}

#slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

#slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 500px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
}

#slideshow img.active {
    opacity: 1;
}

#server-info {
    position: absolute;
    height: 80px;
    bottom: 0px;
    left: 20px;
    color: #fff;
    padding: 10px;
}

.server-info {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

#server-info p {
    display: inline;
}

.server-ip {
    cursor: pointer;
}

.clip-board {
    color: #5a5a5a;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    display: block;
    opacity: 0;
}

.server-ip:hover {
    color: #ddf316;
}

.show {
    animation: showcopy 0.3s;
    opacity: 1;
    font-weight: bold;
}

.unshow {
    font-weight: bold;
    animation: unshowcopy 0.3s;
}

#dots-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

.dot:hover {
    background-color: #717171;
}

.slide {
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.container {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    line-height: 3;
    justify-items: center;

}

.container ul {
    display: block;
    margin: auto;
    padding: 0 40px 0 40px;
    background-color: #fff;
    border-radius: 20px;
    width: 620px;
}

.container ul li {
    text-align: center;
    display: block;
    font-size: 15px;
}

.container ul li h3 {
    margin-top: 15px;
    font-size: 30px;
    text-align: center;
    line-height: 1.5;
}

.container ul li p {
    display: inline;
    padding-left: 2;

}

.container ul li a {
    text-decoration: none;
    color: #000;
    ;
    display: inline;
    padding: 3px 8px 3px 9px;
    border-radius: 15px;
    font-weight: bold;
    border: 2px solid #333;
}

.container ul li a:hover {
    text-decoration: none;
    background-color: #333e;
    color: #ccc;
    padding-left: 2;
    font-weight: bold;
}

footer {
    bottom: 0;
    background-color: #333;
    color: #fff;
    padding: 20px;
    font-size: 14px;
    text-align: center;
    /*==============================================================================*/
    display: grid;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.social-icons img {
    margin-left: 6px;
    margin-right: 6px;
}

.author,
.copyright,
.contact {
    margin-bottom: 5px;
}

.contact a {
    color: #fff;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/*======================*/
#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 6vh;
    right: 5vw;
    font-size: 26px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    border: 3px solid #333;
    border-radius: 50%;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    transition-property: background-color, color;
}

#back-to-top-btn:hover,
#back-to-top-btn:focus {
    background-color: #333;
    color: #fff;
}

.btnEntrance {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: btnEntrance;
    background-color: #333;
    color: #fff;
}

@keyframes btnEntrance {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.btnExit {
    animation-duration: 0.25s;
    animation-fill-mode: both;
    animation-name: btnExit;
}

@keyframes btnExit {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
}

/*======================*/
@keyframes showcopy {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes unshowcopy {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(80px);
    }
}

@media(max-width: 992px) {
    #back-to-top-btn {
        font-size: 28px;
        border: 3.5px solid #333;
        width: 50px;
        height: 50px;
        bottom: 7vh;
        right: 6vw;
    }

    #back-to-top-btn:hover {
        background-color: #fff;
        color: #333;
    }

    #back-to-top-btn:focus {
        background-color: #333;
        color: #fff;
    }

    .checkbtn {
        display: block;
    }

    .navbar .logo {
        font-size: 30px;
        padding: 0 20px;
    }

    .logo a:hover {
        text-decoration: none;
        color: #fff;
        font-size: 36px;
        font-weight: bold;
        padding: 0 5px;
    }

    .navbar ul {
        border-radius: 10px;
        width: 250px;
        height: 0px;
        box-shadow: #111010 2px;
        background: #33333344;
        top: 80px;
        left: 68%;
        position: 0;
        text-align: center;
        transition: all .5s;
    }

    .navbar ul li {
        opacity: 0;
        display: block;
        margin: 50px 0;
        line-height: 30px;
        transition: all .5s;
    }

    .navbar ul li a {
        font-size: 20px;
    }

    a:hover {
        background: none;
        color: #ccc;
    }

    .navbar ul li a::after {
        background: #ccc;
    }

    #check:checked~ul {
        height: 300px;
        opacity: 1;
        position: fixed;
    }

    #check:checked~ul li {
        opacity: 1;
        display: block;
        transition: all .5s;
    }

}

@media(max-width:768px) {
    #back-to-top-btn {
        font-size: 30px;
        border: 4px solid #333;
        width: 60px;
        height: 60px;
        bottom: 8vh;
        right: 7vw;
    }

    .navbar ul {
        border-radius: 10px;
        width: 250px;
        height: 0px;
        box-shadow: #111010 2px;
        background: #33333344;
        top: 80px;
        left: 60%;
        position: 0;
        text-align: center;
        transition: all .5s;
    }

    #dots-container {
        display: flex;
        justify-content: center;
        bottom: 10px;
        left: 0%;
        margin-right: 10px;
        margin-bottom: 5px;
    }

    #server-info {
        left: 0;
        right: 0;
        margin: auto;
        justify-items: center;
        bottom: 40px;
    }

    .server-info {
        display: flex;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        height: auto;
        align-items: center;
        justify-content: center;
        left: 0;
        right: 0;
        margin: auto;
        padding: 7.5px;
    }

    .server-info p,
    .server-info,
    .server-ip {
        display: flex;
        font-size: 20px;
    }

    .clip-board {
        line-height: 1.3;
    }

    .container ul {
        padding-left: 30px;
    }
}

@media(max-width:500px) {
    #back-to-top-btn {
        font-size: 40px;
        border: 5px solid #333;
        width: 70px;
        height: 70px;
        bottom: 9vh;
        right: 10vw;
    }
    
    .navbar .logo {
        font-size: 30px;
        padding: 0 20px;
    }

    .logo a:hover {
        text-decoration: none;
        color: #fff;
        font-size: 36px;
        font-weight: bold;
        padding: 0 5px;
    }

    .navbar ul {
        opacity: 0;
        position: fixed;
        width: 100%;
        height: 100%;
        background: #333;
        top: 70px;
        border-radius: 0;
        left: 100%;
        text-align: center;
        transition: all .5s;
    }

    .navbar ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    .navbar ul li a {
        font-size: 30px;
        line-height: 40px;
    }

    a:hover {
        background: none;
        color: #ccc;
    }

    .navbar ul li a::after {
        background: #ccc;
    }

    #check:checked~ul {
        opacity: 1;
        left: 0%;
        height: 100%;
        /*margin: 1vh;border-radius: 10px;*/

    }

    .navbar .logo {
        font-size: 30px;
        padding: 0 20px;
    }

    #dots-container {
        display: flex;
        justify-content: center;
        bottom: 10px;
        left: 0%;
        margin-right: 10px;
        margin-bottom: 5px;
    }

    #server-info {
        left: 0;
        right: 0;
        margin: auto;
        justify-items: center;
        bottom: 50px;
    }

    .server-info {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        height: auto;
        align-items: center;
        justify-content: center;
        left: 0;
        right: 0;
        margin: auto;
        padding: 7px;
    }

    .server-info p,
    .server-info,
    .server-ip {
        display: flex;
        font-size: 25px;
    }

    .clip-board {
        line-height: 1.1;
    }

    .container ul {
        padding-left: 30px;
    }
}
