@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html, body {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206777'), auto !important;
}

/* Original desktop styles preserved */
body {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206777'), auto;
    font-family: 'p22-1722-pro', sans-serif;
    background-color: white;
    font-size: 35px;
    color: black;
    font-style: italic;
    text-align: center;
}

.index-page *, .card-page *, .store-page * {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206777'), auto !important;
}

/* If you want different backgrounds for each page */
.index-page {
    margin: 0;
    background-image: url('images/bg.gif');
    background-repeat: repeat;  /* Tiling in both directions */
    background-size: auto; /* Keeps the original size of the GIF */
    overflow: hidden;
}

.card-page {
    margin: 0;
    background-image: url('images/bg.gif');
    background-repeat: repeat;  /* Tiling in both directions */
    background-size: auto; /* Keeps the original size of the GIF */
    overflow: hidden;
}

.home-page {
    margin: 0;
    background-image: url('images/bg.gif');
    background-repeat: repeat;  /* Tiling in both directions */
    overflow: hidden;
    background-size: auto; /* Keeps the original size of the GIF */
}

.store-page {
    background-image: url('images/bg.gif');
    background-repeat: repeat;  /* Tiling in both directions */
    background-size: auto; /* Keeps the original size of the GIF */
    color: white;
    font-family: "itc-benguiat", serif;
    margin-bottom: 100px; /* Adjust the value as needed */
}

header {
    padding: 20px;
}

.logo {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    width: 250px; /* Adjust size */
    display: block;
    margin: 0 auto;
}

.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 0px;
}

.card-container img {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    will-change: transform;
    transition: transform 0.1s ease-in-out;
}

.card-container img:hover {
    transform: scale(1.02); /* Slightly enlarges the card for effect */
}

.default-card-container img {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    will-change: transform;
    transition: transform 0.3s ease-in-out;
}

.default-card-container img:hover {
    transform: scale(1.06); /* Slightly enlarges the card for effect */
}

.buttons {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    margin-top: 20px;
    justify-content: center;
    gap: 30px; /* Adjust this value to increase/decrease spacing */
}

button {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    background-color: rgba(0, 0, 0, 0); /* Fully transparent background */
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: 400;
    font-family: "itc-benguiat", serif;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.3s;
    flex: 1; /* makes buttons scale proportionally */
    width: 150px;  /* Adjust width as needed */
    height: 60px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 2px rgb(123, 123, 123);
}

.card-description {
    font-size: 20px; /* Change font size */
    color: white; /* Change text color */
    font-family: "itc-benguiat", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5; /* Adjust line height for readability */
    margin-top: 10px; /* Space above the description */
    padding: 20px; /* Padding inside the description */
    text-align: center; /* Center the description text */
}

/* Define the spinning animation */
@keyframes spin {
    0% {
        transform: scaleX(1); /* Start at scale of 1 on x */
    }
    50% {
        transform: scaleX(0.001); /* 50% scale of 0.1 on x */
    }
    100% {
        transform: scaleX(1); /* End on scale of 1 on x */
    }
}

/* Default styling for the image */
.card-container img {
    transition: transform 0.5s ease-in-out; /* Ensure smooth transition */
}

/* Add spinning effect when class is added */
.spin-card {
    animation: spin 0.5s ease-in-out; /* Spin the card over 0.5 second */
}

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 10px;
    text-align: center;
}

/* Media (Gif/Video) */
.media-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0px;
    overflow: hidden;
}

.media {
    width: 100%; /* Adjust to fit the container */
    max-width: 800px; /* Maximum size */
    object-fit: cover;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
}

.footer-container {
    position: fixed;
    color: white;   
    bottom: 10px;;
    left: 0;
    width: 100%;
    font-family: sans-serif;
    font-weight: 500;
    line-height: 15px;
    font-size: 11px;
    font-style: normal;
    margin-top: 500px;
}

.paragraph {
    border-radius: 10px;
    border: 1px solid black;
    padding: 20px;
    color: black;
    font-family: "itc-benguiat", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    margin-top: 50px;
}

.trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    pointer-events: none; /* Prevent interaction */
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.sticky-header {
    position: sticky;
    top: 0;
    padding: 10px;
    text-align: center;
}

.featured-product {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    text-align: center;
    margin: 20px;
    margin-bottom: 100px;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.product {
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.product:hover {
    transform: scale(1.1);
}

.product-image {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    width: 400px;
    border-radius: 10px;
}

.product-description, .product-price {
    margin-top: 5px;
    font-size: 19px;
    font-style: normal;
}

/* Hand container styles - Desktop only */
.hand-container {
    position: fixed;
    bottom: -10px;
    right: 0px;
    z-index: 1000;
}

.hand-image {
    width: 80px;
    height: auto;
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=206776') 20 20, pointer !important;
    transition: all 0.3s ease;
}

.hand-container:hover .hand-image {
    content: url('images/hand-open.webp');
}

.names-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    padding: 10px 15px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-bottom: 10px;
}

.hand-container:hover .names-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.name {
    color: white;
    font-family: "itc-benguiat", serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    margin: 3px 0;
    text-align: right;
}


/* MOBILE-ONLY CHANGES - Desktop styles preserved above */
@media screen and (max-width: 768px) {
    /* Hide hand container on mobile */
    .hand-container {
        display: none;
    }
    
    /* Basic mobile adjustments */
    body {
        font-size: clamp(16px, 5vw, 28px);
    }
    
    /* Hide cursor effects on mobile */
    body, button, .logo, .card-container img, .default-card-container img, .featured-product, .product-image {
        cursor: default !important;
    }
    
    .home-page {
        cursor: default;
    }
    
    .home-container {
        box-sizing: border-box;
    }
    
    /* Also check if any other containers have this issue */
    .container, .button-container, .footer-container {
        box-sizing: border-box;
    }
    
    /* Make logo responsive */
    .logo {
        width: min(250px, 60vw);
    }
    
    /* Home page - keep buttons side by side but make them fit */
    .button-container {
        justify-content: center;
        gap: clamp(3px, 1.5vw, 10px);
        margin-top: 20px; /* Keep original spacing */
        padding: 0 10px;
        width: 100%;
    }
    
    .button-container button {
        flex: 1;
        min-width: 100px;
        max-width: none;
        width: auto;
        font-size: clamp(12px, 3.5vw, 20px);
        padding: clamp(8px, 2vw, 12px) clamp(6px, 1.5vw, 16px);
        height: auto;
        min-height: 44px;
    }
    
    /* Media scaling */
    .media {
        max-width: 90vw;
    }
    
    /* Card page adjustments - fit everything on screen */
    .card-page {
        height: 100vh;
        overflow: none;
    }
    
    .card-page .container {
        max-width: 95%;
        margin: 10px auto;
        height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }
    
    .card-page .card-container {
        flex-shrink: 0;
    }
    
    .card-page .card-container img {
        max-width: min(250px, 70vw);
        max-height: 45vh;
        object-fit: contain;
    }
    
    .card-page .card-description {
        color: white;
        font-size: clamp(14px, 3.5vw, 18px);
        padding: 8px 10px;
        margin: 0;
        text-align: center;
        line-height: 1.3;
    }
    
    .card-page button {
        flex-shrink: 0;
        font-size: clamp(14px, 4vw, 20px);
        padding: 8px 16px;
        max-width: 100px;
        max-height: 50px;
        margin: 0;
    }
    
    /* Tarot page adjustments */
    .index-page .container {
        max-width: 95%;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .default-card-container img {
        max-width: min(400px, 80vw);
        max-height: 50vh;
        object-fit: contain;
    }
    
    .paragraph {
        font-size: clamp(14px, 3.5vw, 17px);
        padding: 15px;
        margin-top: 30px;
        line-height: 1.4;
    }
    
    .buttons {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }
    
    .buttons button {
        font-size: clamp(16px, 4vw, 22px);
        padding: 8px 16px;
        width: auto;
        max-width: 100px;
        height: 50px;
        margin: 0;
    }
    
    /* Store page mobile */
    .product-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin: 20px 10px;
    }
    
    .product {
        max-width: 90vw;
    }
    
    .product-image {
        width: 100%;
        max-width: 300px;
    }
    
    .product-description, .product-price {
        font-size: clamp(14px, 3.5vw, 17px);
        padding: 0 10px;
    }
    
    /* Footer adjustments */
    .footer-container {
        font-size: 9px;
        line-height: 1.1;
        bottom: 5px;
        padding: 0 10px;
    }
    
    /* Trail effect smaller on mobile */
    .trail {
        width: 6px;
        height: 6px;
    }
}