@font-face {
    font-family: 'Waltograph';
    src: url('../fonts/waltograph42.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: 'Waltograph', Arial, Helvetica, sans-serif;
    background-color: #637ca1;
    padding: 20px;
}

.main-container {
    display: grid;
    grid-template-columns: 4fr 3fr;
    gap: 20px;
}


.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}



.card {
 
    background: linear-gradient(135deg, #5e4545, #f9f9ff);
    border-radius: 16px;
    border: 3px solid gold;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}


.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color:linear-gradient(135deg, #5e4545, #f9f9ff);
}

.card-body {
    padding: 15px;
}

.card-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #3c18da;
}

.card ul {
    padding-left: 18px;
    margin: 5px 0 10px;
}

/*.card h6 {
    margin-top: 10px;
    color: #555;
}*/
.castle-container {
    position: sticky;
    top: 30px;
    height: 100vh;
    background-image: url('../img/castel.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/*.castle-container {
    background-attachment: fixed;
}*/



.disney-title {
    font-family: 'Waltograph', cursive;
    text-align: center;
    font-size: clamp(2.2rem, 6vw, 5rem);
    margin: 30px 0;
    color: #dd58dd;
}



.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.page-info {
    font-weight: bold;
    font-size: 1.1rem;
    align-self: center;
}
.page-btn {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.page-btn:hover {
    transform: scale(2.1);
}

.page-btn:hover {
    filter: drop-shadow(0 0 8px gold);
}

/*.card-title {
    font-family: 'WaltographUI', cursive;
    font-size: 1.3rem;
    color: #1e90ff;
    margin-bottom: 8px;
}*/


.card-allies {
    font-family: 'Poppins', sans-serif;
    color: #2e8b57;
}


.card-enemies {
    font-family: 'Bebas Neue', cursive;
    color: #b22222;
    letter-spacing: 1px;
}


.card-films {
    font-family: 'Playfair Display', serif;
    color: #333;
}


.card-shorts {
    font-family: 'Nunito', sans-serif;
    color: #555;
}

.card-shows {
    font-family: 'Montserrat', sans-serif;
    color: #444;
}

.card-games {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: #4b0082;
}

.card-attractions {
    font-family: 'Pacifico', cursive;
    color: #ff8c00;
}

.page-info{
        font-family: 'Waltograph', cursive;
        font-size: 1.85rem;
    color: #black;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #fff, #f5f5ff);
    border-radius: 20px;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: center;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.footer {
    background: linear-gradient(65deg, #637ca1, #dd58dd);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.footer-icon {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}

.footer-text {
    margin: 0;
    color: #ffffff;
    font-size: 1.85rem;
    font-family: 'Waltograph', cursive;
    text-align: center;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .castle-container {
        position: relative;
        height: 500%;
        background-position: center;
    }
}

@media (max-width: 768px) {
    .card img {
        height: 220px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-body h6 {
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .page-btn {
        width: 60px;
        height: 60px;
    }

    .page-btn:hover {
        transform: scale(1.2);
    }

    .page-info {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}


@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        width: 90%; 
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 768px) {
    .card img {
        height: 200px;
    }
}
