body{
    background-color: rgb(241, 237, 227);
    max-width: 1000px; 
    margin: auto;
}

h1{
    color: black;
    text-align: center;
}

hr{
    border-top: 2px solid #661616;
}

.center{
    margin: auto;
    width: 80%;
    padding: 10px;
}

.topnav {
    overflow: hidden;
    /*background-color: #333;*/
}

.topnav a {
    float: left;
    display: block;
    color: #000000;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #661616;
    color: white;
}

.topnav .icon {
    display: none;
    color: #000000;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    
    float: none;
    display: block;
    text-align: left;
  }
}

.measure-button{
    background-color: #ffffff;
    border: none;
    color: rgb(0, 0, 0);
    padding: 15px 32px;
    text-align: left;
    text-decoration: none;
    font-size: clamp(9px, 2.5vw, 16px);
    margin: 4px 2px;
    cursor: pointer;
    width: 95%;
    height: 100px;
    white-space: nowrap;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-button{
    border: none;
    background-color: #ffffff;
    padding: 32px 32px;
    text-align: left;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

.left-right-button{
    background-color: #ffffff;
    border: none;
    color: rgb(0, 0, 0);
    /*padding: 15px 32px;*/
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    width: 5%;
}

.container {
    display: flex; /* Enables Flexbox for the container */
    justify-content: space-around; /* Distributes space evenly around items */
    align-items: top; /* Vertically centers items within the container */
    width: 100%; /* Ensures container takes full width */
    height: 200px; /* Example height for the container */
}

.section {
    flex: 1; /* Allows sections to grow and shrink proportionally */
    padding: 10px;
    margin: 5px;
    color: rgb(0, 0, 0);
    text-align: center;
    border: #661616 solid 1px;
}

#map { 
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


.page-header {
    text-align: center;
    margin: 20px 0;
}

.page-header h2 {
    margin: 0;
    color: #000000;
}

/* Authentication Container */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.auth-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d4b8b8;
    box-shadow: 0 2px 4px rgba(102, 22, 22, 0.1);
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #661616;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #d4b8b8;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f9f7f3;
}

.auth-form input:focus {
    border-color: #661616;
    outline: none;
    background-color: #ffffff;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.auth-switch a {
    color: #661616;
    text-decoration: none;
    font-weight: bold;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn-primary, .btn-success, .btn-danger {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.btn-primary {
    background-color: #661616;
    color: white;
}

.btn-primary:hover {
    background-color: #4a1010;
}

.btn-success {
    background-color: #2d5016;
    color: white;
}

.btn-success:hover {
    background-color: #1f3610;
}

.btn-danger {
    background-color: #8b4513;
    color: white;
    width: auto;
    padding: 8px 16px;
}

.btn-danger:hover {
    background-color: #654321;
}

/* Message Styles */
.message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #e8f5e8;
    color: #2d5016;
    border: 1px solid #c8e6c9;
}

.message.error {
    background-color: #ffebee;
    color: #661616;
    border: 1px solid #ffcdd2;
}

/* Responsive adjustments for authentication */
@media screen and (max-width: 600px) {
    .auth-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .auth-form, .auth-dashboard {
        padding: 20px 15px;
    }
    
    .btn-danger {
        width: 100%;
    }
}

button:disabled {
    background-color: lightgrey;
    cursor: not-allowed;
}

.legend {
    line-height: 18px;
    color: #555;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.info {
    padding: 6px 8px;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.info h4 {
    margin: 0 0 5px;
    color: #777;
}

.measure-div{
    display: flex;
}