@import url('../common/header.css');
@import url('../common/footer.css');
@import url('./animation.css');
@import url('./base.css');
@import url('./layout.css');

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', Roboto, sans-serif;
    background-color: #111;
    color: #fff;

}

.archive-page-wrapper {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    width: 100%;
    position: relative;
    justify-content: space-between;
    padding: 0 15%;

    min-height: 100vh;
    margin-bottom: 50px;
}

.site-footer {
    padding: 20px;
    text-align: center;
}


.archive-frame-container {
    position: relative;

    width: 45vw;
    max-width: 1000px;

    aspect-ratio: 1000 / 800;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


#currentArchiveImage {
    /*width: 573px;*/
    /*height: auto;*/
    /*object-fit: contain;*/

    width: calc((850 / 1000) * 100%); /* 예시: 85% */
    height: calc((632 / 800) * 100%); /* 예시: 85% */

    object-fit: contain;
    //background-color: #f0f0f0;
}


.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
}

.nav-btn img {
    width: 30px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}


.nav-btn:hover img {
    opacity: 1;
}


.image-counter {
    position: absolute;
    top: 70px;
    left: 70px;

    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
}



#downloadButton {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);

    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

#downloadButton:hover {
    background-color: #eee;
    transform: translateX(-50%) scale(1.05);
}