@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Poor+Story&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing:border-box;

    font-family: "Poor Story", serif;
    font-weight: 400;
    font-style: normal;
}

a {
    cursor: pointer;
    -webkit-tap-highlight-color : transparent;
}

body {
    background-color: black;
}

.container {
    position: absolute;
    width: 360px;
    height: 640px;
    /* background-color: rgb(243, 226, 208); */
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow-x: hidden;
}

/* 헤더 영역 */
.time {
    font-size: 9px;
    line-height: 20px;
}

#first-header {
    display: grid;
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr 1fr 1fr;
    text-align: center;
    position: sticky;
    top: 0px;
    width: 100%;
    height: 20px;
    z-index: 100;
    line-height: 20px;
    padding: 0px 10px;
    opacity: 0.8;
    color: rgb(50, 50, 50);
    /* background-color: white; */
    /* border-bottom: 1px solid rgb(207, 207, 207); */
}

#first-header i {
    font-size: 9px;
    color: black;
    padding: 7px 0px;
}

#first-header span {
    /* font-family: sans-serif; */
    font-size: 11px;
    font-weight: 600;
}

#first-header #title {
    width: 100px;
    font-size: 9px;
    font-weight: 700;
    /* font-family: sans-serif; */
}

#second-header {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    grid-gap: 0px;
    text-align: center;
    position: sticky;
    width: 100%;
    height: 40px;
    z-index: 100;
    background-color: white;
    line-height: 40px;
    opacity: 0.8;
}

#second-header i {
    font-size: 20px;
    color: black;
    padding: 10px;
}

#second-header i:active {
    transform: scale(1.3);
    color: brown;
    transition: all 0.3s;
}

/* 인트로 */
#intro {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

h3 {
    margin-bottom: 400px;
    font-size: 30px;
}

.moving, .moving2 {
    position: absolute;
    width: 1400px;
    height: 160px;
    border: 1px solid gray;
    left: -100px;
    background-color: whitesmoke;

    animation-iteration-count: infinite;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.moving {
    top:65px;
    animation-name: leftToRight;
}

.moving2 {
    top: 240px;
    animation-name: rightToLeft;
}

.moving img, .moving2 img {
    width: 140px;
    margin: 10px;
    border: 1px solid gray;
    border-radius: 10px;
}

@keyframes leftToRight {
    0% {
        transform: translateX(-50%);
    } 100% {
        transform: translateX(0);
    }
}

@keyframes rightToLeft {
    0% {
        transform: translateX(0);
    } 100% {
        transform: translateX(-50%);
    }
}

#intro button {
    background-color: black;
    color: white;
    font-weight: 800;
    font-size: 13px;
    border-radius: 50px;
    width: 300px;
    height: 45px;
}

#intro button:active {
    background-color: white;
    color: black;
    transition: all 0.4s;
    font-weight: 800;
    /* font-size: 15px; */
}