@import url('https://fonts.googleapis.com/css2?family=Coral+Pixels&family=Honk&family=Jersey+10&display=swap');

body {
    min-height: 100vh;
    margin: 0;
    background-color: #070201;
    background-image: radial-gradient(at 50% 50%, #150d1a 0%, #070201 80%);
    position: relative;
    overflow: hidden; /* Prevent scrolling on desktop */
}

.card-container {
    display: flex;
    width: 800px;
    height: 500px;
    border: 0px solid #C2AFF0;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
}

.flag-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image: linear-gradient(to bottom,
        #5bcefa 0%, #5bcefa 20%,
        #ffc7d9 20%, #ffc7d9 40%,
        #ffffff 40%, #ffffff 60%,
        #ffc7d9 60%, #ffc7d9 80%,
        #5bcefa 80%, #5bcefa 100%);
}

@media (max-width: 850px) {
    body {
        overflow: auto; /* Allow scrolling on mobile */
    }

    .card-container {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-height: none;
        position: static;
        transform: none;
        margin: 20px auto;
    }

    .card-left-side {
        border-right: none;
        border-bottom: 5px solid #C2AFF0;
        padding: 10px 20px;
    }

    .card-right-side {
        overflow-y: auto;
        max-height: 400px; /* Adjust as needed */
    }
}

.card-left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 0px solid #C2AFF0;
    text-align: center;
    background-color: #54457F;
    font-family: "Honk", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "MORF" 15,
        "SHLN" 50;
    font-size: 50px;
    color: #F2F3D9;
}

.circle-image-container {
    width: 200px;
    height: 200px;
    border: 2px solid #000;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #000022;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    content: url('30.png');
}

.details-text p {
    margin: 3px 0;
}

.details-text .name {
    font-size: 1.4em;
}

.details-text .title {
    font-size: 0.6em;
    color: #C09BD8;
}

.card-right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
    background-color: #F5A6E6;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    overflow-y: auto;
    max-height: 100%;
}

.card-button {
    min-height: 40px;
    background-color: #f0f0f0;
    border: 2px solid #000;
    border-radius: 8px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 4px 4px 0px #C2AFF0;
}

.card-button:hover {
    background-color: #C09BD8;
    color: #fff;
    box-shadow: 2px 2px 0px #54457F;
    transform: translate(2px, 2px);
}
