@font-face {
    font-family: 'Made Mirage';
    src: url('fonts/made-mirage/made-mirage-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Made Mirage Thin';
    src: url('fonts/made-mirage/made-mirage-thin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

/* Text styles */
.title {
    position: absolute; /* Positioning title */
    top: 20px; /* Distance from top */
    left: 20px; /* Distance from left */
    color: white; /* Ensure title is white */
    margin: 20px; /* Added margin around the title */
}

.title h1, .title h2 {
    font-family: 'Made Mirage', 'sans-serif'; /* Ensure font is applied */
    margin: 0; /* Remove margin */
}

.title h1 {
    font-size: 40px; /* Title font size */
    opacity: 0.6;
}

.title h2 {
    font-size: 30px; /* Subtitle font size */
    opacity: 0.4; /* 80% opacity */
}

.title h3 {
    margin-top: 10px; /* Space above the paragraph */
    font-family: 'Made Mirage', 'sans-serif'; /* Ensure the same font is applied */
    font-size: 15px; /* Font size for the paragraph */
    line-height: 1.5; /* Improve readability */
    text-align: left; /* Center align the paragraph */
    max-width: 800px; /* Limit width for better readability */
    margin-left: 0px; /* Centering the paragraph */
    opacity: 0.4;;
    font-weight: normal;
}


.back-link {
    position: absolute;
    top: 50px;
    right: 50px;
    color: rgb(171, 171, 171);
    text-decoration: none;
    font-family: 'Made Mirage', 'sans-serif';
    transition: color 0.3s;
}

.back-link:hover {
    color: #ff9690;
}

/* Game container */
.container {
    align-items: center;
    min-height: 100vh;
    background: #1a1a1a;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: left;
}

.container .card {
    position: absolute;
    width: 240px;
    height: 320px; /* Maintain original height */
    border-radius: 8px;
    background: #5b0d0d; /* Updated card color */
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(198, 198, 198); /* Font color */
    font-size: 18px; /* Increased font size */
    line-height: 1.5; /* Improved line height for readability */
    border: 10px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.5s, box-shadow 0.5s, z-index 0.5s;
    z-index: 1; /* Base z-index */
    font-family: 'Made Mirage', 'sans-serif'; /* Ensure font is applied */
    margin: 10px; /* Added margin around text */
    padding: 10px; /* Padding inside the card */
    box-sizing: border-box; /* Include padding in height and width */
    top: 250px; /* Positioning for cards */
}

/* Add styling for the text at the bottom */
.container .card::after {
    content: "dieulinh's thoughts"; /* Text to display */
    position: absolute;
    bottom: 10px; /* Align text at the bottom */
    width: 100%; /* Span the full width of the card */
    text-align: center; /* Center-align the text */
    font-size: 8pt; /* Font size of 10pt */
    font-family: 'Made Mirage', 'sans-serif'; /* Apply Mirage font */
    opacity: 0.25; /* Set opacity to 40% */
    color: rgb(198, 198, 198); /* Ensure the text color matches card text */
}

.container:hover .card {
    transform: translate(calc(var(--i) * 70px), -30px); /* Spread cards */
    z-index: 2; /* Ensure they are above the base layer */
}

.container .card.active {
    z-index: 100; /* Bring the active card to top */
    transform: scale(1.1); /* Slightly scale up the active card */
}

.container .card:not(.active) {
    transition: transform 0.5s ease-in-out;
}

/* Explore button */
.explore-button {
    position: absolute; /* Position it absolutely */
    top: 50px; /* Distance from the top */
    right: 50px; /* Distance from the right */
    color: rgb(171, 171, 171); /* Text color */
    text-decoration: none; /* Remove underline */
    font-family: 'Made Mirage', 'sans-serif'; /* Ensure font is applied */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.explore-button:hover {
    color: #ff9690; /* Change text color on hover */
}


/* Mobile styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 30px;
    }

    p {
        font-size: 14px;
    }

    .explore-button {
        top: 60px; /* Adjust distance from the top for mobile */
        right: 30px; /* Adjust distance from the right for mobile */
        color: rgb(171, 171, 171);
    }

    .explore-button:hover,
    .explore-button:active {
        color: #ff9690;
    }
}


