* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-family: "Noto";
    color: white;
    background-color: black;
    user-select: none;
}

body {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
    height: 100%;
    width: 100%;
}

a {
    text-decoration: none;
    color: black;
}

a.precautions {
    text-decoration: underline;
}

header {
    color: white;
    background-image: url(https://archive.misosiru.city/let's-build-2025/img/img_5.png);
    width: 100%;
    height: 100px;
    top: 0;
    align-items: center;
    border-bottom: gray solid 10px;
    display: grid;
    grid-template-columns: 7% 15% 30% 12% auto;

    img.logo {
        border-radius: 50%;
        width: 80%;
        height: auto;
        margin: 10%;
    }

    h2 {
        font-size:  3vh;
        justify-self: center;
    }

    h1 {
        font-size: 6vh;
    }

    h3 {
        font-size: 200%;
        border-right: solid 3px white;
    }

    span.time {
        margin-left: 5%;
        font-size: 100%;

        span.first {
            font-size: 180%;
        }
    }
}

.discord {
    color: white;
    background-color: #5769E9;
    font-size: 5vh;
    border: solid black 3px;
    border-radius: 10px;
    padding-left: 1%;
    padding-right: 1%;
    transition-duration: 0.5s;
    margin: 2%;
    bottom: 5%;
    right: 0;
    position: fixed;
}

.discord:hover {
    padding-left: 3%;
    padding-right: 3%;
    transition-duration: 0.5s;
}

.slider {
    width: 50%;
    overflow-x: auto;
    margin: 3rem auto;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --slider;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}

.slider::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: .5em;
}

.slider-item::scroll-marker {
    content: "";
    height: 1em;
    width: 1em;
    background-color: white;
    opacity: 0.5;
    border-radius: 50%;
}

.slider-item::scroll-marker:target-current {
    opacity: 1;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider::scroll-button(right), .slider::scroll-button(left) {
    content: "⇒";
    border: none;
    background-color: var(--border-color);
    font-family: Consolas;
    font-size: 2rem;
    color: black;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding-bottom: .1em;
    cursor: pointer;
    position: fixed;
    background-color: white;
    position-anchor: --slider;
    position-area: right center;
    z-index: 100;
    translate: -50%;
}

.slider::scroll-button(left) {
    content: "⇐";
    position-area: left center;
    translate: 50%;
}

.slider::scroll-button(right):disabled, .slider::scroll-button(left):disabled {
    opacity: 0.5;
    cursor: auto;
}

.slider-item {
    scroll-snap-align: start;
    flex: 0 0 10em;
    width: 100%;
    object-fit: contain;
    background-color: var(--primary-color);
    padding: .1em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
}

div.slider-title {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    align-content: center;
}

.x {
    color: white;
    background-color: black;
    font-size: 5vh;
    border: solid gray 3px;
    border-radius: 10px;
    padding-left: 2%;
    padding-right: 2%;
    transition-duration: 0.5s;
}

.x:hover {
    padding-left: 3%;
    padding-right: 3%;
    transition-duration: 0.5s;
}

div.item {
    background-color: white;
    color: black;
    margin-top: 5%;
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
    height: auto;
    border-radius: 5px;
    border: gray solid 3px;
}

div.img {
    display: flex;
    align-items: center;
    img {
        width: 20%;
        height: auto;
    }
}

div.img-img {
    width: 100%;
    margin-top: 2%;
    img {
        width: 50%;
    }
    .img-7 {
        margin: 0 2.5% 0 2.5%;
        width: 45%;
    }
    .img-8 {
        margin: 0 2.5% 0 2.5%;
        width: 45%;
    }
}

h3.title {
    font-size: 3.5vh;
    border-radius: 2.5px 2.5px 0 0;
    background-color: white;
    border-bottom: gray solid 2px;
    height: 2.5rem;
    width: 100%;
    background: linear-gradient(45deg, #aaa, #eee, #ccc, #aaa, #ccc, #eee);
}

p.main {
    border-radius: 0 0 10px 10px;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 3%;
    padding-bottom: 3%;
}

ol.prize {
    margin-top: 0;
}

span.time:nth-child(1) {
    text-decoration: underline;
    text-underline-offset: 5px;
}

span.rule {
    font-size: 3vh;
}

ol {
    width: 90%;
    margin: 5%;
    ul {
        margin: 0;
        margin-left: 2%;
    }
}

ul {
    width: 90%;
    margin: 5%;
}

li.rule {
    margin-top: 1%;
}

table {
    text-align: center;
    width: 90%;
    margin: 5%;
    thead {
        th {
            padding: 1%;
            color: white;
            background-color: black;
            font-size: 3vh;
        }
    }
    tbody {
        background-color: gray;
        color: white;
        tr {
            align-items: center;
            height: 50px;
            th:nth-child(0) {
                font-size: 3vh;
            }
            th {
                font-size: 2.5vh;
            }
        }
    }
}

a.join {
    position: fixed;
    display: flex;
    z-index: 1;
    left: 30%;
    right: 30%;
    width: 40%;
    bottom: 10%;
    text-align: center;
    align-content: center;
    justify-content: center;
    padding-left: 1%;
    padding-right: 1%;
    border-radius: 5px;
    border: gray solid 3px;
    color: #000;
    font-size: 3vh;
    transition-duration: 0.5s;
    background-color: rgba(255, 255, 255, 0.7);
}

a.join:hover {
    color: white;
    background-color: black;
    transition-duration: 0.5s;
}

footer {
    color: white;
    text-align: center;
    align-content: center;
    background-color: #161616;
    border-top: white solid 2px;
    height: 90px;
    font-size: 2vh;
    a {
        color: white;
    }
}

a.copyright {
    text-decoration: underline;
    text-underline-offset: 4px;
    transition-duration: 0.3s;
}

a.copyright:hover {
    text-decoration: underline cyan;
    transition-duration: 0.3s;
    font-size: 2.5vh;
}

/* .content {
    margin-left: 0.5%;
    margin-right: 0.5%;
    list-style: none;
    width: 500px;
    height: 300px;
    background-size: cover;
    border: white solid 8px;
}

.content:nth-child(1) {
    background-image: url(https://syowatan.com/misosiru-city/img/img_1.png);
}
.content:nth-child(2) {
    background-image: url(https://syowatan.com/misosiru-city/img/img_2.png);
}
.content:nth-child(3) {
    background-image: url(https://syowatan.com/misosiru-city/img/img_3.png);
}
.content:nth-child(4) {
    background-image: url(https://syowatan.com/misosiru-city/img/img_4.png);
}

.wrap {
    overflow: hidden;
    display: flex;
    align-items: center;
    width: auto;
    height: 340px;
    margin-bottom: 10px;
}
    
.slideshow {
    display: flex;
    -webkit-animation: loop-slide 20s infinite linear 1s both;
    animation: loop-slide 20s infinite linear 1s both;
}
@-webkit-keyframes loop-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
@keyframes loop-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
    
.slide-paused:hover .slideshow {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
} */

@media (max-width: 1200px) {
    body {
        height: 100dvh;
        width: 100%;
    }

    .pc {
        display: none;
    }

    li {
        font-size: 2vh;
        margin-left: 5%;
    }

    a.join {
        left: 25%;
        right: 25%;
        width: 50%;
        bottom: 9%;
        font-size: 2vh;
    }

    header {
        border-bottom: #161616 solid 5px;
        grid-template-columns: 10% 0% 30% 5% auto;

        img.logo {
            width: 90%;
            margin: 5%;
        }

        h2 {
            opacity: 0;
            padding-left: 10%;
            font-size:  1vh;
            justify-self: center;
        }

        h1 {
            font-size: 2vh;
        }

        h3 {
            font-size: 1.5vh;
        }

        span.time {
            margin-left: 5%;
            font-size: 1vh;

            span.first {
                font-size: 180%;
            }
        }
    }

    .slider {
        width: 90%;
    }

    div.item {
        margin: 5%;
        width: 90%;
    }

    div.img {
        width: 100%;
        display: contents;
        img.scenery {
            display: flex;
            width: 90%;
            margin: 5%;
            height: auto;
            border-radius: 10px;
        }
        img.poster {
            display: none;
        }
    }


    div.img-img {
        width: 100%;
        margin-top: 2%;
        img {
            width: 100%;
        }
        .img-7 {
            margin: 0 2.5% 0 2.5%;
            width: 45%;
        }
        .img-8 {
            margin: 0 2.5% 0 2.5%;
            width: 45%;
        }
    }

    h3.title {
        font-size: 2.5vh;
        height: 2rem;
    }

    span.main {
        font-size: 1.5vh;
    }

    table {
        text-align: center;
        width: 90%;
        margin: 5%;
        thead {
            th:nth-child(1) {
                font-size: 1.5vh;
            }
            th {
                padding: 1%;
                font-size: 1.9vh;
                small {
                    font-size: 1vh;
                }
            }
        }
        tbody {
            tr {
                align-items: center;
                height: 50px;
                th {
                    font-size: 2vh;
                }
            }
        }
    }
}