/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#container {
    position: absolute;
    bottom: 100px; /* 버튼을 더 위로 올리기 위해 값을 증가시킴 */
}

#pick-card-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#pick-card-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
    z-index: 999;
}

#loading.hidden {
    display: none;
}

.fa-spinner.fa-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup.hidden {
    display: none;
}

#popup-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 50%;
    max-width: 300px;
    height: 60%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #333;
    overflow-y: auto;
}

#popup-content span {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

#popup-content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
    overflow-y: auto;
    flex-grow: 1;
}

#close-button {
    background: #333;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: center;
    margin-top: 20px;
}

#close-button:hover {
    background: #555;
    transform: scale(1.05);
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    width: 100%; /* 광고가 부모 요소의 너비 전체를 차지하도록 설정 */
    min-height: 50px; /* 광고 높이를 더 작게 설정 */
}


/* Media Queries for Responsive Design */
@media only screen and (max-width: 600px) {
    #container {
        bottom: 100px;
    }

    #pick-card-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    #popup-content {
        width: 80%;
        max-width: 90%;
        height: auto;
        padding: 15px;
    }

    #popup-content span {
        font-size: 18px;
    }

    #popup-content p {
        font-size: 14px;
    }

    #close-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}