/* Custom cursor */
.custom-cursor {
    cursor: url('https://alucinor.neocities.org/cursors/tarotcards.png'), auto;
}

/* Body styles */
body {
            background-color: black; /* Fallback color */
            background-image: linear-gradient(45deg, black, #0f0631, black); /* Gradient */
            background-size: cover;  /* Ensures the gradient covers the entire page */
            background-position: center;  /* Center the gradient */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: "Megrim", serif; overflow-x: hidden;
    transition: transform 0.3s ease-in-out;
    justify-content: flex-start;
    min-height: 100vh;
    text-align:center;
        }
        
                /* Container for the logo and overlay text */
        .logo-container {
            position: relative;
            display: inline-block; /* Ensures both text and image are within the same container */
        }

        /* Styling the logo */
        .logo {
            width: 300px;
            height: 300px;
        }

        /* Overlay text container */
        .overlay-text {
            position: absolute;
            bottom: -9%;
            left: 50%;
            transform: translateX(-50%);  /* Centers the text */
            text-align: center;
            width: 100%;
            color: white;
            padding: 10px;
        }

        /* ALUCINOR text styling */
        .title {
            font-size: 2rem;  
            margin: 0;
        }

        /* COSMIC GIFTSHOP text styling */
        .subtitle {
            font-size: 0.9rem;  
            margin-top: 30px;
        }
        
        
 /* Cosmic Back Button */
      .cosmic-button {
        font-family: 'Arial', sans-serif;
        font-size: 20px;
        color: white;
        background: linear-gradient(45deg, #4e2a84, #2e1f47, #0a0a2f);
        border: none;
        border-radius: 30px;
        padding: 15px 30px;
        text-align: center;
        cursor: pointer;
        outline: none;
        position: absolute;
        top: 20px;
        left: 20px;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1.5px;
      }

      .cosmic-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://cdn.pixabay.com/photo/2015/09/18/18/43/galaxy-943028_960_720.jpg') no-repeat center center;
        background-size: cover;
        filter: blur(10px);
        z-index: -1;
      }

      .cosmic-button:hover {
        background: linear-gradient(45deg, #6e1f90, #3b2f61, #0a0a47);
        box-shadow: 0 0 50px rgba(255, 255, 255, 1);
        transform: scale(1.05);
      }

      .cosmic-button:active {
        transform: scale(0.98);
      }

/* Text and Heading Styles */
p {
    text-align: center;
}

h1 {
    font-size: 3em; /* Default size for larger screens */
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

/* Text Box Styling */
.text-box {
    padding: 1rem;
    margin: 0.5rem auto;
    text-align: center;
    color: black;
    max-width: 800px;
    width: 100%;
}

.text-box .how {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.text-box .explain {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: "Papyrus";
}

/* Contact Button Styling */
.contact {
    display: inline-block;
    text-decoration: none;
    background-color: black;
    color: white;
    border: 2px solid #ccc;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.contact:hover {
    background-color: #333;
    color: white;
    border-color: #333;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

 /* Card Deck Container */
        .card-deck {
            position: relative;
            display: flex;
            justify-content: center;
            width: 50%;
            height: 150px;
            margin: 0 auto;
            margin-left: 130px;
        }

        /* Individual Card Styling */
        .card {
            position: absolute;
            width: 100px;
            height: 150px;
            background-size: cover;
            background-position: center;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            transform-style: preserve-3d; /* Ensures proper 3D effects for flip */
            transition: transform 0.6s ease, box-shadow 0.3s ease;
        }

        /* Back of the Card */
        .card .back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #e6d8c4;
            border-radius: 10px;
            transform: rotateY(180deg); /* Initially hides the back */
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            color:black;
            font-family:Arial;
        }

        /* Text on the Back */
        .card .back .card-text {
            font-size: 16px;
            font-weight: bold;
            text-align:center;
        }
        
        .card .back .card-desc {
            font-size:10px;
            text-align:center;
            border: auto;
            padding: 2px;
            }

        /* Arrow on the Back */
        .card .back .arrow {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 30px;
            cursor: pointer;
        }

        /* Layering Cards for 180 Degree Arc */
        .card:nth-child(1) { 
            left: 8%;
            transform: rotate(-50deg) translateX(-50px) translateY(40px); 
        }
        .card:nth-child(2) { 
            left: 13%; 
            transform: rotate(-45deg) translateX(-40px) translateY(35px); 
        }
        .card:nth-child(3) { 
            left: 18%; 
            transform: rotate(-40deg) translateX(-30px) translateY(30px); 
        }
        .card:nth-child(4) { 
            left: 23%; 
            transform: rotate(-35deg) translateX(-20px) translateY(25px); 
        }
        .card:nth-child(5) { 
            left: 28%; 
            transform: rotate(-30deg) translateX(-10px) translateY(20px); 
        }
        .card:nth-child(6) { 
            left: 33%; 
            transform: rotate(-25deg) translateX(0px) translateY(15px); 
        }
        .card:nth-child(7) { 
            left: 38%; 
            transform: rotate(-20deg) translateX(10px) translateY(10px); 
        }
        .card:nth-child(8) { 
            left: 43%; 
            transform: rotate(-15deg) translateX(20px) translateY(5px); 
        }
        .card:nth-child(9) { 
            left: 48%; 
            transform: rotate(-10deg) translateX(30px) translateY(0px); 
        }
        .card:nth-child(10) { 
            left: 53%; 
            transform: rotate(-5deg) translateX(40px) translateY(-5px); 
        }
        .card:nth-child(11) { 
            left: 58%; 
            transform: rotate(-2deg) translateX(50px) translateY(-10px); 
        }
        .card:nth-child(12) { 
            left: 63%; 
            transform: rotate(2deg) translateX(60px) translateY(-15px); 
        }
        .card:nth-child(13) { 
            left: 68%; 
            transform: rotate(5deg) translateX(70px) translateY(-20px); 
        }
        .card:nth-child(14) { 
            left: 73%; 
            transform: rotate(10deg) translateX(80px) translateY(-25px); 
        }
        .card:nth-child(15) { 
            left: 78%; 
            transform: rotate(15deg) translateX(90px) translateY(-30px); 
        }
        .card:nth-child(16) { 
            left: 83%; 
            transform: rotate(20deg) translateX(100px) translateY(-35px); 
        }
        .card:nth-child(17) { 
            left: 88%; 
            transform: rotate(25deg) translateX(110px) translateY(-40px); 
        }
        .card:nth-child(18) { 
            left: 93%; 
            transform: rotate(30deg) translateX(120px) translateY(-45px); 
        }
        .card:nth-child(19) { 
            left: 98%; 
            transform: rotate(35deg) translateX(130px) translateY(-50px); 
        }
        .card:nth-child(20) { 
            left: 103%; 
            transform: rotate(40deg) translateX(140px) translateY(-55px); 
        }
        .card:nth-child(21) { 
            left: 108%; 
            transform: rotate(45deg) translateX(150px) translateY(-60px); 
        }
        .card:nth-child(22) { 
            left: 113%; 
            transform: rotate(50deg) translateX(160px) translateY(-65px); 
        }

        /* Hover effect for cards */
        .card:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
        }

        /* Flip the card */
        .card.flipped {
            transform: rotateY(180deg);
        }

        /* Initially only show the front of the card */
        .card .back {
            visibility: hidden; /* Hide the back */
        }

        /* When card is flipped, show the back */
        .card.flipped .back {
            visibility: visible; /* Show the back */
        }

p { color:white}
