* {
    box-sizing: border-box;
}

body {
    background: #2465a7;
    color: white;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-content: flex-start;
    align-items: center;
    padding-top: 3ch;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    min-height: 100vh;
    margin: 0;
}

body::after {
    content: '';
    display: block;
    height: 50px;
}

footer.site-footer {
    position: absolute;
    background: rgba(0, 0, 0, .15);
    bottom: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    gap: 2ch;
    font-size: .9em;
    align-content: center;
    align-items: center;
}

img.logo {
    width: 300px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3ch;
    width: auto;
    width: 800px;
}

.content.cohort-form {
    width: 400px;
}

.create-cohort-form {
    width: 100%;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
}

.reset-password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
}

.login-form p {
    margin: 2ch 0 0;
}

.registration-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
}

.social-buttons {
    width: 100%;
}

.social-buttons button {
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1ch;
}

.social-buttons button.twitter {
    background-color: black;
    position: relative;
}

.social-buttons button.twitter img {
    width: 16px;
    height: 16px;
    margin-right: 1ch;
}

.social-buttons button.google {
    background-color: #f15847;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
}

.social-icons i {
    font-size: 24px;
    color: #4285f4;
}

i {
    margin-right: 10px;
}

.social-icons i.twitter {
    color: black;
}

.social-icons i.google {
    color: #db4a39;
}

.orrr {
    width: 100%;
    margin: 3ch 0;
    position: relative;
    border-top: 2px solid white;
}

.orrr::after {
    content: 'OR';
    display: block;
    position: absolute;
    text-align: center;
    color: white;
    width: 40px;
    margin-left: -19px;
    font-style: italic;
    top: -11px;
    background: #2465a7;
    left: 50%;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1ch;
    padding: 2ch 0;
}

form input[type="email"],
form input[type="password"],
form input[type="text"] {
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid black;
    border-radius: 2px;
    margin: 0ch 0;
}

form label {
    margin: 0ch 0 2ch 0;
}

form button {
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #123961;
}

a {
    color: #d7e6f5;
}

.error {
    color: #f3ff9b;
}

.error-msg {
    color: #f3ff9b;
}

select#country {
    width: 100%;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid black;
    border-radius: 2px;
    margin: 1ch 0;
}

.reg-form {
    position: relative;
}

#password-requirements {
    position: absolute;
    top: 73px;
    right: -33px;
    font-weight: bold;
    border: 1px solid white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
}

.product.hhc24 {
    width: 100%;
    background: url(hhc24_banner.png) no-repeat -590px -38px;
    height: 290px;
    position: relative;
    background-size: 1430px;
    border-radius: 8px;
}

.product.hhc25 {
    width: 100%;
    background: url(images/apps/hhc25.png) no-repeat;
    height: 290px;
    position: relative;
    /* background-size: 1430px; */
    border-radius: 8px;
    margin-bottom: 2ch;
}

.product.hhc24 .info {
    position: absolute;
    width: 320px;
    background: white;
    color: #3f3f3f;
    border-radius: 8px;
    top: 50px;
    left: 433px;
    display: flex;
    flex-direction: column;
    padding: 2ch;
    gap: 2ch;
}

.product.hhc25 .info {
    position: absolute;
    width: 320px;
    background: white;
    color: #3f3f3f;
    border-radius: 8px;
    top: 60px;
    left: 433px;
    display: flex;
    flex-direction: column;
    padding: 2ch;
    gap: 2ch;
}

.info a {
    color: #152848;
}

.info button.toggle-visibility-btn {
    display: inline-block;
    margin: 0 0 0 1ch;
    background: #ebebeb;
    border: none;
    border-radius: 4px;
    padding: 2px 1ch 3px 1ch;
    cursor: pointer;
    vertical-align: bottom;
}

.launch-btn {
    background: #fff01f;
    color: black;
    padding: 2ch 0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.info button.launch-btn:hover {
    background: #cfc319;
}

.header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 800px;
}

.header > nav {
    display: flex;
    flex-direction: row;
}

.header-nav {
    color: white;
    line-height: 51px;
    margin: 1ch 0ch 0 4ch;
}

a.button {
    padding: 1ch 2ch;
    background: #123961;
    color: white;
    border-radius: 8px;
    width: 100%;
    display: block;
    text-align: center;
}

.full-width-box {
    width: 100%;
    border: 1px solid #123961;
    border-radius: 8px;
    padding: 1ch;
}

.achievement-section {
    text-align: center;
    width: 100%;
}

.achievement-section h4 {
    font-size: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    margin: 2ch 0 0 0;
    cursor: pointer;
    color: #fdd801;
}

h2.achievements-header {
    color: #fdd801;
}

.achievement-section h4 span {
    margin: 0 0 0 1ch;
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
}

.achievement-section h4::after,
.achievement-section h4::before {
    content: "";
    font-size: 1.5em;
    flex: 1;
    border-bottom: 1px solid #ffffff;
    margin: 0 10px;
    border-color: #fdd801;
}

ul.achievements-objectives {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 110px;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

ul.achievements-objectives li {
    display: flex;
    margin: 2ch 0ch 1ch 0ch;
    flex-direction: row;
    justify-content: center;
    width: 600px;
}

.trophy {
    width: 75px;
    height: 100px;
    background-image: url(trophies.png);
    background-repeat: no-repeat;
    position: relative;
}

.trophy.bronze::after {
    content: 'BRONZE';
    position: absolute;
    bottom: -6px;
    font-size: 10px;
    width: 75px;
    left: 0px;
    color: #d59859;
    text-align: center;
}

.trophy.silver::after {
    content: 'SILVER';
    position: absolute;
    bottom: -6px;
    font-size: 10px;
    width: 75px;
    left: 0px;
    color: #c0c0c0;
    text-align: center;
}

.trophy.gold::after {
    content: 'GOLD';
    position: absolute;
    bottom: -6px;
    font-size: 10px;
    width: 75px;
    left: 0px;
    color: #ffd700;
    text-align: center;
}

.trophy.bronze.get {
    background-position: -75px 0;
}

.trophy.silver.get {
    background-position: -150px 0;
}

.trophy.gold.get {
    background-position: -225px 0;
}

.trophies {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: row;
}

ul.achievements-objectives li span {
    display: block;
    width: 520px;
    text-align: left;
    padding: 34px 0 0 2ch;
    font-size: 1.5em;
}

div.achievements.hhc24 {
    width: 100%;
    background: url(hhc24_banner.png) no-repeat -630px -56px;
    height: 349px;
    position: relative;
    background-size: 1445px;
    border-radius: 8px;
    margin-bottom: 2ch;
}

.metals-claimed {
    position: absolute;
    background: #ffffff2e;
    border-radius: 8px;
    padding: 20px 0 0 22px;
    transform: scale(.8);
    top: -20px;
    left: 462px;
    width: 340px;
    height: 390px;
    color: #fdd801;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, .5));
}

.metals-claimed > div {
    width: 300px;
    position: relative;
    padding: 1ch 0;
}

.metals-claimed > div p {
    position: absolute;
    top: -51px;
    left: 101px;
    width: 300px;
    font-size: 4em;
    font-family: Impact;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, .622));
}

img.hhc24-avatar {
    position: absolute;
    top: 124px;
    left: 332px;
}

div.hhc24-username {
    position: absolute;
    top: 318px;
    left: 250px;
    width: 260px;
    text-align: center;
    font-weight: bold;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, .5));
}

.profile-visibility {
    width: 75%;
    border: 1px dashed white;
    padding: 2ch;
    margin-bottom: 2ch;
    border-radius: 1ch;
}

.profile-public-link {
    width: 100%;
    display: block;
    background: #ffffffd4;
    color: #474747;
    padding: 1ch;
    margin-top: 1ch;
    font-weight: bold;
}

.profile-public-link.disabled {
    opacity: .75;
    pointer-events: none;
    display: none;
}

.profile-public-link button {
    margin-left: 1ch;
}

.toggle-value {
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.toggle-value.on {
    background: rgb(0, 100, 30);
}

.toggle-value.off {
    background: rgb(209, 0, 0);
}

button.toggle-visibility-btn {
    height: 22px;
    margin-left: 1ch;
}


/*  */
.achievements-grid-container {
    width: 800px;
    box-sizing: border-box;
    padding-top: 1ch;
    margin-bottom: 2ch;
}

.achievements-grid {
    display: grid;
    grid-auto-flow: row;
    justify-content: start;
    grid-template-columns: repeat(8, 92px);
    grid-gap: 8px;
}

.achievements-grid .item {
    display: block;
    transition: border .25s ease, background .25s ease;
}

.achievements-grid .item:hover {
    /* fade out border */
    border: 1px solid #ffffff00;
    background: rgba(255, 255, 255, 0);
}

.achievements-grid .item img {
    transition: filter .5s ease, transform .25s ease;
    transform: scale(.75);
    filter: brightness(0) invert(1);
}

.achievements-grid .item:hover img {
    transform: scale(1.25);
    filter: brightness(1) invert(0);
}

.achievements-grid .item img {
    display: block;
    width: 100%;
    height: auto;
}

.item.rarity-common {
    border: 1px solid #f7f7ff;
    background: linear-gradient(0deg, rgba(247,247,255,.2) 0%, rgba(247,247,255,0) 22%);
    /* border-bottom: 5px solid #f7f7ff; */
}

.item.rarity-uncommon {
    border: 1px solid rgb(117, 224, 114);
    background: linear-gradient(0deg, rgba(117, 224, 114, .20) 0%, rgba(117, 224, 114, 0) 22%);
    /* border-bottom: 5px solid #75e072; */
}

.item.rarity-rare {
    border: 1px solid rgb(45, 174, 241);
    background: linear-gradient(0deg, rgba(45, 174, 241, .20) 0%, rgba(45, 174, 241, 0) 22%);
    /* border-bottom: 5px solid #2daef1; */
}

.item.rarity-epic {
    border: 1px solid rgb(180, 126, 248);
    background: linear-gradient(0deg, rgba(180, 126, 248, .20) 0%, rgba(180, 126, 248, 0) 22%);
    /* border-bottom: 5px solid #b47ef8; */
}

.item.rarity-legendary {
    border: 1px solid rgb(255, 209, 99);
    background: linear-gradient(0deg, rgba(255, 209, 99, .20) 0%, rgba(255, 209, 99, 0) 22%);
    /* border-bottom: 5px solid #ffd163; */
}

.achievements-grid .size-128x128 {
    grid-row: span 1;
    width: 100px;
    height: 100px;
}

.achievements-grid .size-128x256 {
    grid-row: span 2;
    height: 256px;
    width: 128px;
}

.achievements-grid .size-256x256 {
    grid-row: span 2;
    height: 256px;
    width: 256px;
}

.achievement-popup {
    width: 300px;
    padding-bottom: .5ch;
}

.achievement-popup img {
    width: 256px;
    height: 256px;
    margin: 0 auto;
}

.tippy-box {
    width: 320px;
    border-radius: 20px;
    text-align: center;
    color: black;
    background-color: white;
    padding-top: 2ch;
    padding-bottom: 24px;
}

.tippy-box:has(.rarity-common) {
    background: radial-gradient(circle,
        rgba(247,247,255, 0) 0%,
        rgba(247,247,255, 0.1329306722689075) 65%,
        rgba(247,247,255, 0.532931) 100%);
    background-color: white;
}

.tippy-box:has(.rarity-uncommon) {
    background: radial-gradient(circle,
        rgba(117, 224, 114, 0) 0%,
        rgba(117, 224, 114, 0.1329306722689075) 65%,
        rgba(117, 224, 114, 0.532931) 100%);
    background-color: white;
}

.tippy-box:has(.rarity-rare) {
    background: radial-gradient(circle,
        rgba(45, 174, 241, 0) 0%,
        rgba(45, 174, 241, 0.1329306722689075) 65%,
        rgba(45, 174, 241, 0.532931) 100%);
    background-color: white;
}

.tippy-box:has(.rarity-epic) {
    background: radial-gradient(circle,
        rgba(180, 126, 248, 0) 0%,
        rgba(180, 126, 248, 0.1329306722689075) 65%,
        rgba(180, 126, 248, 0.532931) 100%);
    background-color: white;
}

.tippy-box:has(.rarity-legendary) {
    background: radial-gradient(circle,
        rgba(255, 209, 99, 0) 0%,
        rgba(255, 209, 99, 0.1329306722689075) 65%,
        rgba(255, 209, 99, 0.532931) 100%);
    background-color: white;
}

.tippy-arrow {
    color: #f8d400;
}

.achievement-popup h3 {
    margin: 3px 0 0;
    font-size: 1.5em;
}

.achievement-popup em {
    color: gray;
}

.achievement-popup p {
    margin: 2px 0;
    font-style: italic;
}

.achievement-popup.rarity-common h3 {
    color: rgb(61, 61, 61);
}

.achievement-popup.rarity-uncommon h3 {
    color: rgb(43, 80, 41);
}

.achievement-popup.rarity-rare h3 {
    color: rgb(23, 83, 114);
}

.achievement-popup.rarity-epic h3 {
    color: rgb(60, 39, 87);
}

.achievement-popup.rarity-legendary h3 {
    color: rgb(133, 76, 2);
}

.achievement-popup .share-achievement-btn {
    position: absolute;
    bottom: -24px;
    width: 100%;
    left: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border: none;
    height: 26px;
    background: #f8d400;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
}