#base-content {
    text-align: unset !important;
}

debug {
    display: none;
}

#map {
    /* width: 100%;  */
    height: 100%;
    margin: 0;
    padding: 0;
}

gmp-map-3d {
    min-height: 50vh;
    /* width: 100vw; */
    margin: 0;
    padding: 0;
}

/* :host > div > canvas {
    width: auto !important;
} */

/* main {
    flex: auto;
    overflow:auto
} */

#marks {
    height: 80px;
    overflow-y: scroll;
}

.container {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

form.coord {
    display: inline-grid;
    grid-auto-flow: row;
    grid-template-columns: 130px 60px 60px 90px;
    gap: 10px;
}
form#send {
    display: inline-grid;
    grid-auto-flow: row;
    grid-template-columns: 140px 80px;
    gap: 10px;
}
form#debug {
    display: inline-grid;
    grid-auto-flow: row;
    grid-template-columns: 130px 130px 30px 30px;
    gap: 10px;
}

#coords {
    display: inline-grid;
    grid-auto-flow: row;
    grid-template-columns: 140px 100px;
    gap: 0px;
}

form#sync {
    display: inline-grid;
    grid-auto-flow: row;
    grid-template-columns: 140px 140px;
    gap: 10px;
}

form#sync > #userCount {
    text-align: right;
}

form > .small {
    grid-column:span 1;
    width: 50px;
}

form > .big {
    grid-column:span 2;
}

div.hr {
    border-top: 1px solid white;
    margin: 5px 0px;
}

#banner {
    background-color: #fdd; /* Light red */
    border: 1px solid #faa; /* Lighter red */
    color: #a00; /* Dark red */
    padding: 10px;
    text-align: center;
    display: none; /* Initially hidden */
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    background-color: lightblue;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Ensure it's on top */
    cursor: pointer;
    border-width: medium;
}

.popup > .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

ul#marks > li {
    cursor: pointer;
}

.grayed-out {
    filter: grayscale(100%); /* Apply grayscale filter */
    pointer-events: none; /* Disable pointer events */
}

.grayed-out-50 {
    filter: grayscale(50%); /* Apply grayscale filter */
    pointer-events: none; /* Disable pointer events */
}

#pixelInfo > img {
    max-height: 200px;
    float: left;
    padding-right: 20px;
}

/* BUY */

#buyPixel {
    float: right;
    background-color: #4CAF50 !important;
}
#removePixel {
    float: right;
    background-color: #e26060 !important;
}
#buyPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it's on top */
  }
  #popup-title { /* Style for the title */
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center; /* Center the title */
  }
  #buyPopup input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
  }
  #buyPopup input[type="file"] {
    margin-bottom: 10px;
  }
  #buyPopup button, .popup button {
    padding: 8px 15px;
    background-color: #e26060;
    color: white;
    border: none;
    cursor: pointer;
  }

#buyPopup > #submitButton {
    float: right;
    background-color: #4CAF50;
}

#loginPopup {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    /* Only use flex when visible, not always */
}
#loginPopup[style*="display: flex"] {
    display: flex !important;
}

#loginPopup > .login-popup-inner {
    background: #fff;
    padding: 32px 24px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 90vw;
    margin: auto;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Remove top/left/transform for proper centering */
}

div.login-popup-inner button {
    cursor: pointer;
}


.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#cart-content {
    display: none;
}

div.cart {
    cursor: pointer;
}

#userDisplay {
    cursor: pointer;
}