body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* font-family: 'Freckle Face'; */
    font-family: 'Gaegu';
    background-color: rgb(15, 1, 21);
}

.field { 
    z-index: 1; 
    background: rgb(227, 245, 239);
    touch-action: none;
}
.interaction { 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; 
    touch-action: none;
}

#cursor-container {
    z-index: 4;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    pointer-events: none;
}

.overlay {
    z-index: 5;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100dvw - 16px);
    height: calc(100dvh - 16px);
    pointer-events: none;
    margin: 8px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    display: flex;
    justify-content: space-between;
}

.header > * {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 2.6rem;
    line-height: 1.6rem;
}
.top-left:hover {
    background-color: rgba(255, 255, 255, 0.7);
}
.top-left input {
    font-family: inherit;
    letter-spacing: 0.2rem;
    padding: 1px 2px;
    font-size: 1.2rem;
    line-height: 1rem;
    text-align: center;
}
#world-label {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 0.9rem;
    color: darkgreen;
}

.top-right {
    padding: 8px;
    background-color: unset;
}
.info-toggle {
    z-index: 20;
    margin-right: 16px;
    padding: 8px;
    border-radius: 100%;
    width: 1.4rem;
    height: 1.4rem;
    text-align: center;
    background-color: rgba(250, 249, 255, 0.8);
}
.desc-overlay {
    z-index: 12;
    color: rgb(24, 35, 32);
    font-size: 0.85rem;
    line-height: 0.85rem;
    letter-spacing: -0.02rem;
    position: absolute;
    right: 32px;
    top: 20px;
    width: 320px;
    padding: 8px 14px;
    text-indent: 1rem;
    text-align: left;

    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border: 2px ridge rgba(160, 159, 164, 0.4);
    -webkit-backdrop-filter: blur(2px);
}
.desc-overlay p {
    margin: 0;
}
.top-right > span:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.footer {
    position: relative;
    padding: 6px 8px;
    height: fit-content;
    width: fit-content;
}

#activity-log {
    position: relative;
    pointer-events: all;
    max-height: 36dvh;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.5);
    width: 30dvw;
    min-width: 200px;
    max-width: 380px;
    gap: 0px;
    font-size: 0.9rem;
}
.log-world {
    opacity: 1;
}
.log-world > span:nth-child(1) {
    color: darkblue;
}
#activity-log > .row {
    padding: 4px 10px;
    justify-content: left;
    opacity: 0.8;
}
#activity-log > .row:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
#activity-log > .row > span:nth-child(2) {
    opacity: 0.6;
}
#activity-log-toggle {
    position: absolute;
    pointer-events: all;
    z-index: 2;
    top: -6px;
    left: -4px;
    padding: 1px 4px;
    background-color: black;
    border-radius: 100%;
    border: 1px ridge white;
    color: white;
}
#activity-log-toggle:hover {
    background-color: rgb(32, 31, 35);
    border-color: aliceblue;
    cursor: pointer;
}

#user-count {
    font-size: 1.2rem;
    gap: 0;
    letter-spacing: -0.07rem;
    color: rgb(11, 59, 86);
    align-items: center;
}
#user-count span {
    opacity: 0.7;
    line-height: 1.4rem;
}
#user-count span:nth-child(1) {
    font-weight: bold;
    opacity: 0.9;
    color: rgb(11, 59, 86);
}

.modal > * {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
}
.divider {
    height: 1px;
    margin: 2px auto;
    width: 100%;
    background-color: rgba(121, 137, 151, 0.2);
}

#create-tree {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    height: 160px;
    max-width: 240px;
}
#create-tree-date {
    font-size: 1rem;
    opacity: 0.7;
    letter-spacing: -0.08rem;
}
#create-tree-coords {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
    letter-spacing: -0.08rem;
    white-space: nowrap;
}
#create-tree-description {
    position: relative;
    min-width: 95%;
    max-width: 96%;
    min-height: 40px;
}
#create-tree-close {
    position: absolute;
    z-index: 2;
    top: -6px;
    right: -10px;
    padding: 0 4px;
    border-radius: 100%;
    background-color: white;
    border: 2px ridge black;
    color: rgb(16, 16, 23);
}
#create-tree-upload:hover {
    background-color: rgba(173, 216, 230, 0.1);
}
#create-tree-close:hover {
    background-color: rgb(246, 248, 253);
    cursor: pointer;
}
#create-tree-plant {
    position: absolute;
    z-index: 2;
    bottom: -26px;
    width: fit-content;
    left: 30%;
    color: darkgreen;
    font-size: 1.4rem;

    font-weight: bold;
    letter-spacing: -0.06rem;
    font: inherit;
    padding: 4px 10px;
    background-color: rgba(233, 251, 232, 0.9);
    border: 1px solid darkgreen;
    transition: background-color 0.2s ease;
}
#create-tree-plant > span {
    font-size: 0.7rem;
    line-height: 0.6rem;
}
#create-tree-plant:hover {
    box-shadow: 0 0 10px rgba(27, 102, 27, 0.1);
    background-color: rgba(233, 251, 232, 0.98);
    cursor: pointer;
}
#create-tree-bg {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(3, 18, 32);
    border-radius: 2px;
    border: 2px ridge white;
}

.tree-details {
    gap: 8px;
    padding: 10px 14px;
    max-height: 140px;
    max-width: 240px;

    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border: 2px ridge rgba(71, 61, 139, 0.4);
    -webkit-backdrop-filter: blur(2px);
}
.tree-details:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
.tree-details .row {
    gap: 6px;
    align-items: center;
}
.detail-water-button {
    margin: 0 auto;
    background-color: darkblue;
    color: white;
    border-radius: 2px;
}
.detail-name {
    font-weight: bold;
    max-width: 40%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.detail-desc {
    text-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-all;
}
.detail-file {
    color: white;
    font-weight: bold;
    background-color: rgb(47, 15, 31);
    font-size: 0.6rem;
    line-height: 0.6rem;
    padding: 3px 4px;
}
.detail-date-small {
    font-size: 0.7rem;
    line-height: 0.7rem;
    color: rgb(145, 145, 145);
}
.detail-date-full {
    font-size: 0.65rem;
    color: rgb(145, 145, 145);
    margin-right: 8px;
}
.detail-coords {
    margin-left: auto;
    font-weight: bold;
    font-size: 0.8rem;
    color: rgb(64, 129, 99);
    letter-spacing: -0.06rem;
}
.detail-close {
    position: absolute;
    z-index: 2;
    top: -6px;
    right: -8px;
    padding: 0 4px;
    border-radius: 100%;
    font-size: 0.8rem;
    line-height: 0.8rem;
    background-color: white;
    border: 1px ridge black;
    color: rgb(16, 16, 23);
}
.detail-close:hover {
    background-color: rgb(245, 245, 245);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.col {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
}
