body {
    overflow-y: scroll;
}

.content {
    flex-direction: column;
    justify-content: unset;
    align-items: center;
}

.profile-content-header {
    box-sizing: border-box;
    width: 100%;
    padding-left: 24px;
    border-bottom: 1px solid #412863;
    display: flex;
    gap: 16px;
}

.profile-content-header-item {
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.profile-content-header-item:hover {
    border-bottom: 1px solid #412863;
}

.profile-header-selected {
    border-bottom: 1px solid #412863;
    font-weight: bold;
}

.profile-content {
    width: calc(100% - 64px);
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.profile-page-left {
    width: 278px;
}

.profile-quizzes-content {
    max-height: 348px;
}

.profile-info-container {
    width: 100%;
}

.profile-name-surname {
    margin-top: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.profile-update {
    width: 100%;
    text-align: center;
    display: block;
    background-color: #412863;
    box-sizing: border-box;
    padding: 12px 8px;
    color: white;
    border-radius: 16px;
    margin-top: 8px;
    transition: 0.2s;
}

.profile-update:hover {
    opacity: 0.8;
}

.profile-picture {
    width: 278px;
    height: 278px;
}

.profile-picture > img {
    width: 278px;
    height: 278px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-quizzes, .latest-quizzes {
    display: none;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 12px;
    justify-content: space-between;
    align-items: start;
}

.latest-quizzes {
    width: 100%;
}

.profile-quizzes {
    width: 532px;
    min-width: 532px;
}

.profile-quizzes-container {
    height: 316px;
    width: 100%;
    display: flex;
    gap: 16px;
    user-select: none;
}

.profile-quizzes-loading, .latest-quizzes-loading, .profile-badges-loading {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-quizzes-loading > img, .latest-quizzes-loading > img, .profile-badges-loading > img {
    width: 76px;
    height: 76px;
}

.profile-quiz-info {
    width: 256px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    height: min-content;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.latest-quiz-info {
    width: 282px;
}

.profile-quiz-info:hover {
    transform: scale(1.02);
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.3);
}

.info-row {
    display: flex;
    gap: 4px;
}

.quiz-info-value {
    text-align: right;
}

.quiz-info-title, .quiz-info-value {
    white-space: nowrap;
    font-size: 14px;
}

.profile-quiz-name {
    font-size: 18px;
    font-weight: bold;
}

.profile-quiz-subject {
    font-size: 16px;
    margin-top: 8px;
}

.profile-quiz-name, .profile-quiz-subject {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.profile-page-right {
    width: 580px;
}

.profile-page-overview, .profile-page-badges {
    width: 100%;
}

.profile-quiz-other-info, .recent-quiz-other-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.profile-quizzes-error-image, .latest-quizzes-error-image, .profile-badges-error-image {
    position: relative;
    width: min-content;
}

.profile-quizzes-error, .latest-quizzes-error, .profile-badges-error {
    width: 100%;
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
}

.profile-quizzes-error-image > .main-img, .latest-quizzes-error-image > .main-img, .profile-badges-error-image > .main-img {
    max-height: 256px;
}

.profile-quizzes-try-again-btn, .latest-quizzes-try-again-btn, .profile-badges-try-again-btn {
    border: none;
    background-color: #412863;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.profile-quizzes-try-again-btn:hover, .latest-quizzes-try-again-btn:hover {
    opacity: 0.8;
}

.pageination-hidden {
    display: none;
}

.profile-quizzes-pagination {
    min-width: 32px;
    width: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    text-align: center;
    color: #444;
}

.selected {
    font-weight: bold;
}

.disabled {
    pointer-events: none;
    color: #bbb;
}

.inside-part {
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.before-seperator, .after-seperator {
    text-align: center;
}

.profile-quizzes-empty-text, .latest-quizzes-empty-text {
    text-align: center;
    margin-top: 32px;
    width: 100%;
    font-size: 22px;
    height: min-content !important;
    justify-content: center;
}

.latest-quizzes-empty-text {
    display: none;
}

.profile-quizzes-title, .latest-quizzes-title, .profile-badges-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 20px;
}

.latest-quizzes-content {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #ccc;
}

.profile-badges {
    margin-top: 24px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.profile-page-badges {
    display: none;
}

.profile-badges .badge-container {
    width: 140px;
}
