@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Dancing Script", cursive;
    background: linear-gradient(to bottom right, #87CEEB, #00FFFF, #00008B); /* Gradient background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
}

.center-content {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center; /* Center the items horizontally */
}

.cont, .r-container {
    box-shadow: rgb(48, 66, 254) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    border: 2px solid #006bff;
    color: black;
    overflow: hidden;
    padding: 20px;
    flex: 1 1 calc(50% - 20px); /* Take up 50% width minus gap */
    max-width: calc(50% - 20px); /* Ensure cards are side by side */
    min-width: 300px; /* Ensure cards are not too small */
    background: white;
}

.cont {
    display: flex;
    flex-direction: column;
}

.up {
    background-color: rgba(0, 107, 255, 0.8);
    padding: 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.up img {
    height: auto;
    max-width: 100%;
    border-radius: 50%;
}

.low {
    padding: 20px;
    border-radius: 0 0 8px 8px;
    font-style: oblique;
    color: black;
}

.btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btnt {
    background-color: rgba(0, 107, 255, 0.8);
    color: antiquewhite;
    border-radius: 10px;
    padding: 10px 20px;
    border: 2px solid #006bff;
    cursor: pointer;
}

.r-container input {
    display: block;
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-image {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.resume-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.resume-image-hidden {
    display: none;
}

.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social img {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    cursor: pointer;
}

#idCard {
    border: 2px solid #006bff;
    padding: 20px;
    color: rgb(0, 0, 0);
    overflow: hidden;
}

#cardContent p {
    margin: 10px 0;
}

/* Media queries for responsive design */
@media (max-width: 1200px) {
    .container {
        /* Adjust layout as needed */
    }
}

@media (max-width: 992px) {
    .cont, .r-container {
        max-width: 100%; /* Full width on smaller screens */
        flex: 1 1 100%; /* Stack vertically */
    }
}

@media (max-width: 768px) {
    .resume-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .input-group input,
    .input-group label {
        font-size: 14px;
    }
    .btnt {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Print styles */
@media print {
    body {
        margin: 1rem;
        padding: 0;
        background: none;
        font-family: "Dancing Script", cursive;
        color: black;
    }

    .container {
        display: block;
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .cont, .r-container {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
        page-break-inside: avoid;
    }

    #idCard {
        border: none;
        padding: 20px;
        background: none;
        width: 100%;
        height: auto;
        page-break-inside: avoid;
    }

    @page {
        size: auto;
        margin: 1rem;
    }

    .no-print {
        display: none;
    }
}
