body {
    font-family: 'Inter', sans-serif;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    color: #000000;
}

.home {
    max-width: 600px;
    margin: 0 auto;
}

.personality {
    max-width: 80%;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.navbar-item {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.8em;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 20px;
}

.container {
    text-align: center;
    margin-top: 50px;
}

.container h2 {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.8em;
}

.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.profile-img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.profile-info {
    margin-left: 20px;
    text-align: left;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.profile-handle,
.profile-status {
    color: #666;
    margin: 5px 0 0;
}

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

input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #e1e1e1;
    border-radius: 4px 0 0 4px;
}

button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    font-size: 1em;
    background-color: #1a202c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    justify-content: center;
    white-space: nowrap;
}

button:hover {
    background-color: #0056b3;
}

.unlock-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    /* Add space above the button */
    display: inline-block;
    width: 28rem;
    height: 2.5rem;
}

.error-message {
    color: red;
    font-size: 0.9em;
    text-align: left;
    /* Align text to the left */
    margin-top: 0;
    margin-bottom: 10px;
    display: block;
    line-height: 20px;
}

.compatibility-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.compatibility-check input[type="text"] {
    width: calc(50% - 20px);
    border-radius: 4px;
}

.compatibility-check .plus {
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
}

.compatibility-check button {
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

.info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.info {
    text-align: left;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.info h3 {
    margin-top: 0;
    font-weight: 500;
}

.info ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.info li {
    margin-bottom: 10px;
}

.compatibility {
    color: #a8c7e0;
}

#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.flex {
    display: flex;
}

.item_center {
    align-items: center;
}

.gap_2 {
    gap: .5rem;
}

.emojis {
    text-align: center;
    font-size: 2.25rem;
    line-height: 2.5rem;
    letter-spacing: .1em;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.w-full {
    width: 100%;
}

.max-w-xl {
    max-width: 36rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-light {
    font-weight: 300;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card:not(.roast) {
    width: calc(50% - 10px);
}

.car-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid;
}

.card span {
    margin-top: 0;
    font-size: 20px;
    font-weight: 300;
}

.card p {
    color: #666;
}

.share-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.share-button:hover {
    background-color: #0056b3;
}

.roast {
    width: 100%;
    background-color: rgba(239, 68, 68, 0.05);
    color: rgb(239, 68, 68);
}

.strengths {
    background-color: rgba(249, 115, 22, 0.05);
    color: rgb(249, 115, 22);
}

.weaknesses {
    background-color: rgba(59, 130, 246, 0.05);
    color: rgb(59, 130, 246);
}

.love_life {
    background-color: rgba(239, 68, 68, 0.05);
    color: rgb(239, 68, 68);
}

.money {
    background-color: rgba(34, 197, 94, 0.05);
    color: rgb(34, 197, 94);
}

.health {
    background-color: rgba(99, 102, 241, 0.05);
    color: rgb(99, 102, 241);
}

.colleague_perspective {
    background-color: rgba(234, 179, 8, 0.05);
    color: rgb(234, 179, 8);
}

.biggest_goal {
    background-color: rgba(168, 85, 247, 0.05);
    color: rgb(168, 85, 247);
}

.famous_person_comparison {
    background-color: rgba(16, 185, 129, 0.05);
    color: rgb(16, 185, 129);
}

.pickup_lines {
    background-color: rgba(236, 72, 153, 0.05);
    color: rgb(236, 72, 153);
}

.previous_life {
    background-color: rgba(107, 114, 128, 0.05);
    color: rgb(107, 114, 128);
}

.animal {
    background-color: rgba(14, 165, 233, 0.05);
    color: rgb(14, 165, 233);
}

.thing {
    background-color: rgba(217, 70, 239, 0.05);
    color: rgb(217, 70, 239);
}

.career {
    background-color: rgba(245, 158, 11, 0.05);
    color: rgb(245, 158, 11);
}

.life_suggestion {
    background-color: rgba(20, 184, 166, 0.05);
    color: rgb(20, 184, 166);
}

.progress-container {
    width: 100%;
    background-color: #e0e0df;
    border-radius: 25px;
    padding: 3px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 0%;
    height: 30px;
    background-color: #4caf50;
    border-radius: 22px;
    text-align: center;
    line-height: 30px;
    color: white;
    transition: width 0.4s ease;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: 2em;
    }

    .container h2 {
        font-size: 1em;
    }

    .profile {
        flex-direction: column;
    }

    .profile-img {
        width: 80px;
        height: 80px;
    }

    .profile-info {
        margin-left: 0;
        text-align: center;
    }

    .unlock-btn {
        width: 90%;
        box-sizing: border-box;
    }

    .compatibility-check {
        flex-direction: column;
    }

    .compatibility-check input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .compatibility-check .plus {
        margin: 10px 0;
    }

    .card {
        width: 100%;
    }

    .card:not(.roast) {
        width: 100%;
    }
}