* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    /* background-color: #810C87; */
    /* background-image: url('../images/background.png'); */
    font: 1em sans-serif;
    background-color: transparent;
}
body {
    /* background-color: #810C87; */
    background-image: url('../images/background.png');
    background-attachment: fixed;
    /* background-size: cover; */
    /* color: white; */
}
header {
    margin: 0vh 0vw;
    padding: 1vh 1vw;
    background-color: #610981;
    color: white;
    display: flex;
    justify-content: space-evenly;
}
header div {
    display: flex;
    background-color: #810C87;
    color: white;
    padding: 1vh 1vw;
    margin: 1vh 1vw;
    border-radius: 3vh;
    font-size: 2vh;
    align-self: center;
    /* height: 10vh; */
}
header a:visited {
    color: white;
    text-decoration: none !important;
    border-bottom-style: none;
    place-self: center;
    font-size: 2vh;
}
header a:link {
    color: white;
    text-decoration: none !important;
    border-bottom-style: none;
    place-self: center;
    font-size: 2vh;
}
header a:hover {
    color: white;
    text-decoration: none !important;
    border-bottom-style: none;
    place-self: center;
    font-size: 2vh;
}
header a:active {
    color: white;
    text-decoration: none !important;
    border-bottom-style: none;
    place-self: center;
    font-size: 2vh;
}
header div:has(> img) {
    display: flex;
    align-items: center;
    padding: 1vh 1vw;
    /* margin-bottom: 3vh; */
}
header div img {
    display: inline-block;
    place-self: center;
    /* width: 1em; */
    height: 1em;
    /* margin: 0.5em; */
    border-radius: 0;
}
header div a img {
    place-self: center;
}
header div.invisible {
    background-color: transparent;
    border: none;
}
/* header div hr {
    display: inline-block;
    width: 5vw;
    border: .7vh solid white;
    border-radius: 3vh;
    align-self: center;
    fill: white;
} */
main {
    /* background-color: #810C87; */
    /* background-image: url('../images/background.png'); */
    /* background-size: cover; */
    color: white;
    margin: 0vh 0vw;
    padding: 2vh 2vw;
}
main div {
    /* background-color: #531956; */
    background-color: transparent;
    color: white;
    padding: 1vh 1vw;
    margin: 3vh 1vw;
    border-radius: 3vh;
}
main > div {
    background-color: rgba(83, 25, 86, 0.8);
}
main div div img {
    /* height: 4vh; */
    border-radius: 0;
    background-color: transparent;
}
.profile-picture {
    height: 4vh;
    border-radius: 0;
    background-color: transparent;
}
main div div {
    margin: 1vh 1vw;
}
p, label, p a {
    background-color: transparent;
}
label {
    margin: 2vh 1vw;
}
main div div.message-date {
    font-size: 0.8em;
    color: #C9C9C9;
}
main form p a {
    color: #0000ff !important;
    text-decoration: none !important;
}
.invalid-feedback {
    color: #ff0000;
    background-color: transparent;
    font-size: 0.8em;
}
h2 {
    font-size: 2em;
    font-weight: bold;
}
.btn {
    background-color: #610981;
    color: white;
    padding: 1vh 1vw;
    margin: 2vh 0vw;
    border-radius: 3vh;
    font-size: 1.2em;
    border: none;
    text-decoration: none;
}
textarea {
    /* background-color: transparent; */
    color: white;
    /* border: 1px solid white; */
    border-radius: 3vh;
    padding: 1vh 1vw;
    font-size: 1em;
}
.uploaded-file {
    max-width: 80%;
    /* height: auto; */
    border-radius: 0px;
}
.delete-container {
    display: inline-block;
    background-color: transparent !important;
    top: 0;
    right: 0;
    padding: 0.5vh 0.5vw;
    height: 0;
    width: 0;
}
.delete-icon {
    /* width: 1em; */
    height: 1em;
    border-radius: 0;
}
.delete-link {
    position: relative;
    background-color: transparent;
    display: inline-block;
    text-decoration: none !important;
    bottom: 3em;
    left: 85vw;
}
.delete-container + div {
    margin-top: -2em;
}
.edit-container {
    display: inline-block;
    background-color: transparent !important;
    top: 0;
    right: 0;
    padding: 0.5vh 0.5vw;
    height: 0;
    width: 0;
}
.edit-icon {
    /* width: 1em; */
    height: 1em;
    border-radius: 0;
}
.edit-link {
    position: relative;
    background-color: transparent;
    display: inline-block;
    text-decoration: none !important;
    bottom: 3em;
    left: 85vw;
}
.progress-bar {
    display: inline-block;
    background-color: #3b0f46;
    border-radius: 0.5em;
    width: 5vw;
    height: 0.5em;
    margin: 0vh 0vw;
    padding: 0;
}
.progress {
    background: linear-gradient(90deg, #c084fc, #f0abfc);
    border-radius: 0.5em;
    height: 0.5em;
    margin: 0;
    padding: 0;
}
.xp {
    display: inline-block;
    background-color: transparent;
    color: #C9C9C9;
    padding: 0;
    /* margin: 0; */
    /* font-size: 0.5em; */
    /* margin-left: 1vw; */
}
.xp-progress {
    display: inline-block;
    background-color: transparent;
    margin: 0;
    padding: 0;
    /* color: #C9C9C9; */
    /* font-size: 0.5em; */
    /* margin-left: 1vw; */
}
.level-container {
    align-items: center;
    padding: 0;
    margin: 0;
}
.level {
    padding: 0;
    margin: 0vh 1vw;
}
.upvote-container {
    background-color: transparent;
    display: inline-block;
    border: 1px solid white;
    border-radius: 2em;
    padding: 0.5vh 0.5vw;
}
.upvotes-container {
    background-color: transparent;
    display: inline-block;
    padding: 0.5vh 0.5vw;
}
.upvote-link {
    background-color: transparent;
}
.upvote-icon {
    height: 1em;
    border-radius: 0;
    background-color: transparent;
    margin-left: 0.5vw;
}
.upvote-count {
    display: inline-block;
    background-color: transparent;
    color: #C9C9C9;
    padding: 0vh 0vw;
    /* font-size: 0.8em; */
}
.too-fast {
    /* color: #ff0000; */
    background-color: transparent;
    /* font-size: 0.8em; */
    margin-top: 2vh;
    margin-left: 1vw;
}
.level-display {
    display: inline-flex;
    /* background-color: #610981; */
    background-color: transparent;
    color: black;
    /* padding: 0; */
    
    border-radius: 2em;
    font-size: 0.8em;
    /* margin-right: 0.5vw; */
    margin-left: 0;
    /* margin-right: 0; */
    padding-right: 0;
    padding-left: 0;
    height: 5em;
    width: 3.5em;
    place-content: center;
    place-self: center;
    place-items: center;
    
    background-image: url('../images/trophy.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.author-info {
    align-items: center;
    background-color: transparent;
}
.level-number {
    position: relative;
    background-color: transparent !important;
    color: black;
    font-size: 1.2em;
    font-weight: bold;
    /* place-self: center; */
    left: auto;
}
.hamburger-header {
    display: none;
}
.hamburger-menu {
    display: none;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table th {
    background-color: #610981;
}
.leaderboard-table th, .leaderboard-table td {
    border: 1px solid white;
    padding: 0.5vh 0.5vw;
    text-align: left;
}

.achievement-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 2vh 0 !important;
}

.achievement-summary > div {
    flex: 1 1 240px;
    margin: 0 !important;
}

.achievement-summary h3 {
    background: transparent;
    margin-bottom: 0.75rem;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0 !important;
}

.stat-pill {
    background: #610981;
    border-radius: 1.2rem;
    padding: 1rem;
    margin: 0 !important;
}

.stat-pill strong,
.stat-pill p {
    display: block;
    background: transparent;
    margin: 0;
}

.stat-pill p {
    color: #f5d9ff;
    margin-top: 0.35rem;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 0 !important;
}

.achievement-card {
    background-color: rgba(83, 25, 86, 0.8);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    margin: 0 !important;
}

.achievement-card.unlocked {
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.35);
}

.achievement-icon {
    width: 2rem;
    height: 2rem;
    background: transparent;
    margin-bottom: 0.75rem;
}

.achievement-title {
    background: transparent;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.achievement-description {
    background: transparent;
    color: #f5d9ff;
    margin-bottom: 0.75rem;
}

.achievement-progress-bar {
    width: 100%;
    background: #3b0f46;
    border-radius: 999px;
    overflow: hidden;
    height: 0.7rem;
    margin: 0 !important;
    padding: 0 !important;
}

.achievement-progress {
    height: 100%;
    background: linear-gradient(90deg, #c084fc, #f0abfc);
    border-radius: inherit;
    margin: 0 !important;
    padding: 0 !important;
}

.achievement-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin: 0.75rem 0 0 0 !important;
    background: transparent;
}

.achievement-meta span,
.achievement-meta strong {
    background: transparent;
}

@media (max-width: 600px), (orientation: portrait) {
    header.normal {
        display: none;
    }
    .hamburger-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* gap: 0.5vh; */
    }
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 3vh;
        padding: 1vh 1vw;
    }
    .hamburger-menu .bar {
        width: 25px;
        height: 1px;
        background-color: white;
        margin: 4px 0;
        transition: 0.4s;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-links a {
        padding: 1vh 0;
        width: 100%;
        text-align: center;
    }
    .hamburger-menu.active {
        flex-direction: row;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(6px, 5px);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, 5px);
    }
    div:has(.hamburger-menu.active) + .nav-links {
        display: flex;
    }
    .navbar-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        background-color: transparent;
        padding: 1vh 1vw;
        margin: 0;
    }
    textarea {
        width: 20em !important;
    }
    .delete-link {
        left: 80vw;
    }
    .edit-link {
        left: 74vw;
    }
}