@import url('https://fonts.googleapis.com/css?family=Gothic+A1:100,200,300,400,500,600,700');
@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600&family=Braah+One&display=swap");

* {
    font-family: 'Gothic A1', 'Alexandria', 'Segoe UI', sans-serif;
    margin: 0;
}

p {
    margin-bottom: 8px !important;
}

footer {
    position: static;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.fw6 {
    font-weight: 600;
}

.fw7 {
    font-weight: 700;
}

.title-logo {
    margin-top: 10px;
}

.logo {
    display: block; 
    margin: auto; 
    max-width: 90%; 
    max-height: 200px;
}

.recmd-pc {
    display: none;
    text-align: center; 
    margin: 15px;
}

@media screen and (max-width: 600px) {
    .recmd-pc {
        display: block;
    }
}

.recmd-info {
    color: white; 
    font-weight: 500;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.background-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -2;
}

.background-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: blur(5px);
    z-index: -3;
}

.content-box {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    max-width: 100%;

    margin: 20px;
    padding: 15px;
}

.btn {
    margin: 10px;
    padding: 20px;
    
    white-space: nowrap;
    width: 120px;
    min-width: 120px;
}

.modal {
    font-family: 'Gothic A1', 'Alexandria', 'Segoe UI', sans-serif;

    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 0px !important;
    width: auto;
    max-width: 80%;
    max-height: 60vh;
    margin: 30px;
    overflow: auto;
    text-align: center;
}

.modal-ex-content {
    background: white;
    padding: 5px;
    border-radius: 0px !important;
    width: auto;
    max-width: 90%;
    max-height: 75vh;
    margin: 20px;
    overflow: auto;
    text-align: center;
}

.modal-jacket {
    width: 240px;
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.btn-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.generate-div {
    display: none;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.generate-btn {
    width: 200px;
}

.circle-btn {
    width: 64px;
    height: 64px;

    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: none;

    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.circle-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.btn-text {
    text-align: center;
    font-size: 14px;
    font-weight: 700;

    margin-top: 8px;
}

.row-container {
    width: 100%;
    display: flex;
    margin-top: 4px;
    margin-bottom: 8px;

    align-items: center;
    text-align: center;
    gap: 10px;
}

.row-container > * {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

#single-container {
    padding: 16px;

    justify-content: center;
    align-content: center;
    text-align: center;

    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.75);
}

#top50CanvasTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    font-family: 'Gothic A1';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    color: white;

    margin-top: 20px;
    margin-bottom: 20px;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 1000;

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

    flex-direction: column;
    font-size: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5884b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}