:root {
    --slw-color-dark-grey: #51585E;
}

html, body {
    height: 100%;
    width: 100%;
}

/**
 * USER PROFILE
 */
.profile-banner .profile-image {
    display: flex;
    justify-content: space-around;
    background-color: #EEEEEE;
    padding-top: 1rem;
    height: 12rem;
    overflow: visible;
}
.profile-banner .profile-image img.profile-avatar {
    margin-top: 1rem;
}

img.profile-avatar {
    border: 2px solid #343a40;
    background-color: #343a40;
    height: 12rem;
    width: 12rem;

    -webkit-border-radius: 50%;
    border-radius: 50%;
}
img.profile-avatar.profile-avatar-md {
    height: 6rem;
    width: 6rem;
}
img.profile-avatar.profile-avatar-sm {
    height: 3rem;
    width: 3rem;
}
img.profile-avatar.profile-avatar-xs {
    height: 2rem;
    width: 2rem;
}
.profile-banner .profile-image-edit {
    display: flex;
    justify-content: space-around;
    margin-left: 12rem;
}

.profile-banner .profile-badges {
    display: flex;
    padding-top: 3rem;
}
.profile-banner .profile-badges .profile-badge {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.slw-badge {
    border: 2px solid #C0C0C0;
    display: flex;
    font-weight: bold;
    padding: .25rem .75rem;
    white-space: nowrap;

    -webkit-border-radius: .25rem;
    border-radius: .25rem;
    -webkit-box-shadow: 1px 1px 5px 0 #EFEFEF;
    box-shadow: 1px 1px 5px 0 #EFEFEF;
}

.slw-badge.slw-badge-winner {
    border-color: #FFD700;
}


/**
 * SOUNDBOARD
 */
a.play-soundboard-item {
    color: inherit;
}
.soundboard-item {
    align-items: center;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    padding: .5rem;
    position: relative;
    margin-bottom: 1rem;
}
.soundboard-item .soundboard-image,
.soundboard-item .soundboard-image img {
    height: 8rem;
    width: 8rem;

    -webkit-border-radius: 50%;
    border-radius: 50%;
}
.soundboard-item .soundboard-title {
    text-align: center;
    margin-top: 1rem;
}

/* Styles for playing version */
a.play-soundboard-item.playing .soundboard-item:before,
a.play-soundboard-item.playing .soundboard-item:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
a.play-soundboard-item.playing .soundboard-item:before {
    content: '';
    background-color: rgba(255, 255, 255, .5);
}
a.play-soundboard-item.playing .soundboard-item:after {
    color: #000000;
    content: '\F04C';
    font-family: "Font Awesome\ 5 Free";
    font-size: 2rem;
    font-weight: 900;
    margin-top: 3rem;
    text-align: center;
}

/**
 * User card
 * Based on: https://www.bootdey.com/snippets/view/single-advisor-profile
 */
.user_profile_card {
    position: relative;
    z-index: 1;
    background-color: #FFFFFF;
    border-radius: 15px;
    border: 1px solid #FFFFFF;
    -webkit-box-shadow: 0 0.25rem 1rem 0 rgba(47, 91, 234, 0.125);
    box-shadow: 0 0.25rem 1rem 0 rgba(47, 91, 234, 0.125);
}
.user_profile_card .profile_thumb {
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    position: relative;
    z-index: 1;
    height: 275px;
    border-radius: 15px 15px 0 0;
    margin: 0 auto;
    background-color: #999999;
    overflow: hidden;
    text-align: center;
}
.user_profile_card .profile_thumb::after {
    position: absolute;
    width: 150%;
    height: 80px;
    bottom: -45px;
    left: -25%;
    content: "";
    background-color: #ffffff;
    -webkit-transform: rotate(-15deg);
    transform: rotate(-10deg);
}
.user_profile_card .user_profile_details_info {
    position: relative;
    z-index: 1;
    padding: 0 30px 30px 30px;
    text-align: right;
    border-radius: 0 0 15px 15px;
}
.user_profile_card .user_profile_details_info h6 {
    margin-bottom: 0.25rem;
}
.user_profile_card .user_profile_details_info p {
    margin-bottom: 0;
    font-size: 14px;
}
@media only screen and (max-width: 575px) {
    .user_profile_card .profile_thumb {
        height: 350px;
    }
    .user_profile_card .profile_thumb::after {
        height: 160px;
        bottom: -90px;
    }
}

/** Fix for cards in darkmode with the Bootstrap theme attribute. */
html[data-bs-theme="dark"] .user_profile_card {
    border: 1px solid var(--slw-color-dark-grey);
    background-color: var(--slw-color-dark-grey);
}

html[data-bs-theme="dark"] .user_profile_card .profile_thumb::after {
    background-color: var(--slw-color-dark-grey);
}

/**
 * Darkmode
 * Based on: https://codepen.io/Umer_Farooq/pen/eYJgKGN
 */
#darkmode-switch #darkmode-switch-checkbox {
    opacity: 0;
    position: absolute;
}

#darkmode-switch #darkmode-switch-label {
    background-color: var(--slw-color-dark-grey);
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#darkmode-switch #darkmode-switch-label .fa-moon {
    color: #FFD011;
}

#darkmode-switch #darkmode-switch-label .fa-sun {
    color: #F39C12;
}

#darkmode-switch #darkmode-switch-checkbox + #darkmode-switch-label #darkmode-switch-indicator {
    background-color: #FFFFFF;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

#darkmode-switch #darkmode-switch-checkbox:checked + #darkmode-switch-label #darkmode-switch-indicator {
    transform: translateX(24px);
}