@font-face {
    font-family: 'paybooc-Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/paybooc-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

body {
    font-family: 'paybooc-Bold';
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    /* overflow-x: hidden;  */
    /* padding-top: 60px; 광고와 타이머 사이의 기본 여백 */
}
.contents{
    height: 150px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%,0);
}

.kakao_ad_area{
    width: 100%;
    /* transform: translate(-50%,0); */
}

.timer-container {
    text-align: center;
    padding-top: 80px;
    max-width: 600px;
    width: 100%;
    margin-top: 10px; /* 광고 공간을 위해 상단 여백 추가 */
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    transform: translate(-50%,0);
}
    
@supports (position: sticky) or (position: -webkit-sticky) {
    .ad-container {
        position: sticky;
        position: -webkit-sticky;
        top: 0px;
        width: 100%;
        text-align: center;
        transition:all 0.3s ease; 
        
    }
  }

.dday-display {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.dday-highlight {
    color: #FF5656; 
}


.timer-display {
    font-size: 5rem;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.message-display {
    font-size: 1.5rem;
    margin-bottom: 20px;
    
}

#inputFields{
    padding-left: 40px;
    padding-right: 40px;
}

input {
    padding: 10px;
    font-size: 1.2rem;
    margin: 5px;
    width: 100px;
    box-sizing: border-box;
    text-align: center;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    font-family: 'paybooc-Bold';
    padding: 12px 24px;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 10px;
    width: auto;
    min-width: 140px;
    background-color: #FF5656; /* 버튼 배경색 */
    color: white; /* 텍스트 색상 */
    border: none; /* 테두리 없앰 */
    border-radius: 30px; /* 둥근 모서리 */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 버튼 그림자 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 배경색과 크기 변화에 대한 애니메이션 추가 */
}

button:hover {
    background-color: #FF3B3B; /* 마우스를 올렸을 때 색상 변화 */
    transform: translateY(-3px); /* 마우스를 올렸을 때 살짝 위로 올라감 */
}

button:active {
    background-color: #D44D4D; /* 버튼을 클릭할 때 색상 변화 */
    transform: translateY(0); /* 클릭할 때 다시 원래 위치로 */
}

button:disabled {
    background-color: #ccc; /* 비활성화 상태에서의 배경색 */
    cursor: not-allowed; /* 비활성화 상태에서 커서 모양 */
}


.hidden {
    display: none;
}

#laps {
    margin-top: 20px;
    list-style-type: none;
    padding: 0;
}

#laps li {
    font-size: 1.2rem;
    margin: 5px 0;
    color: #333;
}

#capture-buttons {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .timer-display {
        font-size: 2.5rem;
        white-space: nowrap; /* 줄 바꿈 방지 */
    }

    input {
        width: 60px;
        font-size: 1rem;
        text-align: center;
    }

    button {
        font-size: 1.1rem; /* 작은 화면에서의 폰트 크기 */
        padding: 10px 20px; /* 작은 화면에서의 패딩 */
        /* width: auto; */
        min-width: 100px;
    }

    .dday-display {
        font-size: 2rem;
        margin-top: 100px;
    }

    .input-group {
        justify-content: space-around;
        width: 100%;
    }
}

#classButtons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#classButtons button {
    font-size: 1.1rem;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #FF5656;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#classButtons button:hover {
    background-color: #FF3B3B;
    transform: translateY(-3px);
}

#classButtons button:active {
    background-color: #D44D4D;
    transform: translateY(0);
}


@media (min-width: 1000px) {
    .dday-display {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #333;
    }

}