body {
    font-family: Arial, sans-serif;
    margin-inline: 100px;
    margin-top: 25px;
    padding: 0;
    background: url("/wood.jpg");
    background-color: #ffad50;
    background-size: 120%;
    background-position-y: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

@keyframes fadeoff {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

.fadeout{
    height: 120vh;
    width: 100vw;
    background-color: black;
    position: fixed;
    visibility: hidden;
    z-index: 999;
    opacity: 0;
    animation: fadeoff 2s ease;
}

.slider-container {
    bottom: 28px;
    box-shadow: 0 0 7px rgb(49, 49, 49) inset, 0 5px 2px rgba(0, 0, 0, 0.700);
    position: fixed;
    transform: translateX(-50%);
    left: 50%;
    width: 200px;
    height: 50px;
    background: rgb(255, 220, 175);
    border-radius: 15px;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 15px;
    transition: opacity 0.6s ease;
}

.intext{
    transition: 0.2s;
    opacity: 1;
}

.gradient-magenta-cyan {
    color: #323232;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bolder;
    text-align: left;
    font-size: 18px;
    transition: 0.4s;
    box-shadow: 0 0 10px rgb(49, 49, 49) inset!important;
    background: linear-gradient(to right, #5ce1f9, #de37ff);
    opacity: 0;
}

.slider-ball {
    background-image: url('slide.png'); /* Add the image as the background */
    background-position: center; /* Center the image */
    background-size: 80%;
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 999;
    background-color: rgb(218, 147, 55);
    box-shadow: 0 2px 3px black;
    border-radius: 10px;
    top: 7px;
    left: 7px;
    cursor: pointer;
    transition: left 0.5s ease-in-out, transform 0.5s ease-in-out; /* Adjusted transition for smooth sliding */
}

.intext {
    transition: 0.5s;
    text-align: right;
    right: 10px;
    float:center;
    position: absolute;
    width: 100%;
    margin-inline: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #303030;
    pointer-events: none;
    transition: color 0.3s ease-in-out;
}

.shimmer {
    background: linear-gradient(-45deg, #eeeeee00 40%, #fafafa31 50%, #eeeeee00 60%);
   background-size: 500%;
   background-position-x: 100%;
    position: absolute;
    width: 300px;
    height: 420px;
    margin: 10px;
    z-index: 999;
    top: 0;
    left: 0;
    border-radius: 15px;
    animation: shimmer 1s infinite linear;
}

@keyframes shimmer {
    to {
       background-position-x: 0%
    }
 }

.card-container {
    perspective: 1000px; /* Enables 3D perspective for the flip effect */
}

@keyframes tilt {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(10deg);
    }
}


.card {
    width: 300px;
    height: 420px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front,
.card-back {
    position: absolute;
    width: 300px;
    height: 420px;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 0 7px rgb(200, 140, 70) inset, 0 5px 10px black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(255, 225, 185);
}

.card-front img {
    width: 80%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgb(168, 107, 16);
}

.card-front h1 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
    color: #303030!important;
}

.card-front h1 span {
    margin-top: 10px;
    font-size: 2.5rem!important;
    font-weight: bold;
    color: rgb(218, 147, 55)!important;
    text-shadow: #ffad50 0 0 5px;
    display: block;
}

.card-back {
    transform: rotateY(180deg);
    background-color: rgb(255, 225, 185);
}

.card-back h2 {
    font-size: 2rem!important;
    margin-bottom: 20px;
    color: rgb(218, 147, 55);
    text-shadow: #ffad50 0 0 5px;
}

.card-back p {
    margin: 25px;
    font-size: 1.01rem!important;
    line-height: 1.6;
    color: #555;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card img {
    width: 80%; /* Image width slightly smaller than the card */
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h1 {
    font-size: 1.5rem;
    margin-top: 7px;
    line-height: 1;
    color: #333;
}

.card h1 span {
    font-size: 2.5rem; /* Larger font size for "Ayush" */
    font-weight: 1000;
    letter-spacing: 4px;
    display: block;
    text-shadow: 0 2px 2px rgb(189, 104, 0), 0 1px 2px rgb(202, 131, 0);
}

.card p {
    font-size: 1rem;
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header img {
        width: 150px;
        height: 150px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header h1 span {
        font-size: 3rem;
    }

    .header p {
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .card {
        padding: 15px;
    }

    .card img {
        width: 85%;
    }

    .card h1 {
        font-size: 1.3rem;
    }

    .card h1 span {
        font-size: 2rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header img {
        width: 120px;
        height: 120px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header h1 span {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .about-text h2 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.8rem;
    }

    .card {
        padding: 10px;
    }

    .card img {
        width: 90%;
    }

    .card h1 {
        font-size: 1.2rem;
    }

    .card h1 span {
        font-size: 1.8rem;
    }

    .card p {
        font-size: 0.8rem;
    }
}

.home{
    display:initial;
}

.prof{
    display: none;
    color: white;
}
