html {
    min-height: 100%;
    position: relative;
}
body {
    font-family: "Red Hat Display", sans-serif;
    min-height: 100%;
    padding-bottom: 4rem;
}

h1 {
    font-family: "Bungee", "Arial", "sans-serif";
    margin: 0;
    line-height: 1.4em;
}

h3 {
    text-align: center;
    margin: 0;
}

.hide {
    display: none !important;
}

.flex-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flex-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#header-wrapper {
    column-gap: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.form-full {
    flex-basis: 100%;
}

.form-row {
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.form-label {
    font-size: 12pt;
    width: 100px;
    text-align: right;
}

.form-row > input {
    font-size: 12pt;
    padding: 5px;
    flex-basis: 0;
    flex-grow: 1;
}

.form-row > button {
    font-size: 12pt;
    padding: 5px;
}

#design-form-wrapper {
    display: flex;
    justify-content: center;
}

#design-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

#tile-preview {
    text-align: center;
    background-color: aliceblue;
    padding: 0.4rem;
}

#tile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: auto;
}

.tile {
    cursor: pointer;
    user-select: none;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 1px;
}

.tile:not(.locked) {
    background-color: #eee;
}

.tile#preview {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 2px;
}

.tile#preview .tile-text {
    font-size: 25pt;
}

.tile.owned {
    border: 1px solid grey;
}

.tile.locked:hover::after {
    position: absolute;
    top: 30px;
    font-size: 8pt;
    opacity: 0.9;
    line-height: 1.2em;
    text-align: center;
    background-color: white;
    z-index: 2;
    content: "click for more";
}

.tile.locked {
    box-sizing: border-box;
}

.tile-text {
    font-size: 20pt;
}

.comment-indicator {
    position: absolute;
    background: paleturquoise;
    color: paleturquoise;
    border-radius: 5px;
    top: -3px;
    right: -3px;
    z-index: 2;
    opacity: 0.9;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 7px;
    height: 7px;
}

.comment-indicator.unread {
    background-color: gold;
    color: gold;
}

.tile:hover .comment-indicator {
    padding: 0 0.2rem;
    color: black;
    opacity: 1;
    width: auto;
    height: auto;
}

#create-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    width: 200px;
}

#create-toggle input {
    max-width: 100px;
}

#meta-form, .comment-bubble {
    z-index: 4;
    position: absolute;
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 1rem;
    transform: translate(0.5rem, -0.5rem);
}

#comments {
    max-width: 250px;
    max-height: 8em;
    overflow-y: scroll;
}

.comment-bubble {
    z-index: 3;
}

.comment-tail-wrapper {
    position: relative;
}

.comment-tail {
    position: absolute;
    border: 10px solid transparent;
    border-right: 10px solid white;
    right: calc(100% + 1rem);
}

.close-button {
    position: absolute;
    font-size: 18pt;
    right: -5px;
    top: -5px;
    line-height: 0.6em;
    cursor: pointer;
    color: grey;
}

.close-button:hover {
    color: black;
}

#settings-wrapper {
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem;
    gap: 0.4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#secret input {
    width: 300px;
}

#comment-input-wrapper {
    margin: 1rem 0;
}

.delete-button {
    text-align: right;
    font-size: 10pt;
}