html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


/* For normal pages, not for the map */
.background-wrapper {
    background: #228B22 url('/static/bg.png') center center no-repeat;
    background-size: cover;
    font-family: sans-serif;
    text-align: center;
    padding-top: 10%;
    color: white;
    min-height: 100vh;
}
.btn {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 250px;
    text-decoration: none;
}
.btn:hover {
    background-color: #45a049;
}
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    text-decoration: none;
}

/* For Map */


#map {
    height: 100vh;
    width: 100%;
}

#formPopup,
#filterMenu {
    position: absolute;
    background: white;
    color: black;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 5;
    font-family: sans-serif;
    font-size: 14px;
}

#formPopup {
    top: 10px;
    left: 10px;
    display: none;
}

#filterMenu {
    top: 10px;
    right: 10px;
}

#notesList {
    margin: 5px 0;
    padding-left: 16px;
}

#formPopup input,
#filterMenu input {
    margin-bottom: 6px;
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
}

#formPopup button,
#filterMenu button {
    margin-top: 4px;
    margin-right: 4px;
    padding: 6px 10px;
    cursor: pointer;
}


#backHome {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 5;
}


/* Normal webpages, others */
.webpage-text-content {
    background-color: rgba(0, 60, 0, 0.7);  /* darker green + transparent */
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    font-size: 1.1em;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.webpage-text-content a {
    color: #f5f5f5;
    text-decoration: underline;
}

.webpage-text-content a:visited {
    color: #e0e0e0;
}

.webpage-text-content a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}


.webpage-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    text-decoration: none;
}