/* V5.1 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

.modern-text-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-family: "Arial", sans-serif;
    font-size: 1.2rem;
    color: #333;
    max-width: 800px;
    margin: 20px auto;
}
.user-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}
.user-info-left {
    text-align: left;
    width: 50%;
}
.user-info-left p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
}
.user-info-middle {
    text-align: right;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.user-info-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 5%;
}
.user-info-details {
    text-align: right;
    width: 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.downloads-info {
    font-size: 18px;
}
.user-welcome {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}
.user-info-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.profile-link {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.downloads-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #059679;
    text-align: center;
    flex: 1;
    align-self: center;
}
.modern-text-layout a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.modern-text-layout a:hover {
    text-decoration: underline;
}
.hidden-text {
    display: none;
}
.toggle-text {
    cursor: pointer;
    color: #0073aa;
}
.toggle-text:hover {
    text-decoration: underline;
}
.max-downloads-message {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .modern-text-layout {
        max-width: 100%;
        margin: 12px auto;
        padding: 0 12px;
    }
    .user-info-box {
        height: auto !important;
        min-height: 56px;
        padding: 10px 12px;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }
    .user-welcome {
        font-size: 15px !important;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }
    .user-info-meta {
        gap: 10px !important;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        justify-content: flex-end;
        align-items: center;
    }
    .downloads-info {
        font-size: 14px;
        line-height: 1.1;
        text-align: right;
    }
    .downloads-value {
        font-size: 14px !important;
        line-height: 1;
        min-width: 18px;
        text-align: center;
    }
    .profile-link {
        font-size: 12px;
        margin-top: 0;
        padding-left: 10px !important;
        display: inline-flex;
        align-items: center;
    }
    .profile-link a {
        font-size: 12px !important;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
}
