/* filepath: c:\code\webstuff\valenciaGeoguesser\styles.css */

/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    user-select: none;
    -webkit-user-drag: none;
}

/* Centered heading and paragraph */
h1, p {
    text-align: center;
}

.map-container {
    height: auto; /* Full viewport height */
    text-align: center; /* Center text inside the div */
    background-color: #f4f4f4; /* Optional background color */
    margin: 20px auto;
    display:block;
}

/* Scrollable container for the image */
.image-container {
    width: 700px; /* Set the container width */
    height: auto; /* Set the container height */

    overflow: hidden; /* Hide scrollbars */
    border: 2px solid #ccc; /* Optional border */
    margin: 20px auto; /* Center the container */
    cursor: grab; /* Default cursor for dragging */
    display: flex;
}

.image-container img {
    max-width: 100%;
    height: auto;

    user-select: none; /* Prevent image selection */
    
}


.result-container {
    width: 500px;
    height: auto; /* Full viewport height */
    text-align: center; /* Center text inside the div */
    margin: 20px auto;
    display: none;/**/
}

/* Zoomable image styling */
.zoomable-image {
    width: 100%; /* Default width */
    transition: transform 0.2s ease; /* Smooth zoom effect */
}

#map { height: 700px; width: 700px; margin: 20px auto; border: 2px solid #ccc; }
#map { cursor: crosshair; }
.leaflet-marker-icon {
  cursor: crosshair !important;
}


/* Overlay styles */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .overlay-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .overlay input {
            padding: 10px;
            margin: 10px 0;
            width: 80%;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        .overlay button {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .overlay button:hover {
            background-color: #0056b3;
        }

        #textUsernameOverlay {
            color: red;
            /*margin-bottom: 10px;*/
        }


/* Table styling for scoreboard */
thead,
tfoot {
  background-color: #2c5e77;
  color: white;
}

tbody {
  background-color: #e4f0f5;
}

table {
  border-collapse: collapse;
  border: 2px solid rgb(140 140 140);
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  width: 80%;
}

caption {
  caption-side: bottom;
  padding: 10px;
}

th,
td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

td {
  text-align: center;
}


/* Center the scoreboard */
#scoreboard{
    margin: 0px auto;
}


.first{
    width:50%;
    background-color: #c4c4;
    float: left;
    
}

.second {
    width:50%;
    background-color: blueviolet;
    float: right;
    margin: 0px auto;
}



.game-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap; /* makes it responsive */
    }


@media (max-width: 750px) {
      .image-container {
        width: 80%;
      }
      #map {
        width: 80%
      }
      .game-container{
        display: block;
      }
}