@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');

.borel-regular {
    font-family: "Borel", cursive;
    font-weight: 400;
    font-style: normal;
  }
:root {
    --primary-color: #53599A;
    --secondary-color: #6D9DC5;
    --accent-color1: #068D9D;
    --accent-color2: #80DED9;
    --passive-color: #f5f7fa;
}

/* Global layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "borel", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--passive-color);
    color: #333;
}

/* Header */
header {
    background-color: var(--primary-color);
    font-weight: bold;
}

header ul {
    display: flex;
    justify-content: center;
    gap: 2em;          
    padding: 10px 0;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
}

header ul li {
    list-style: none;
}

.nav-wrapper {
    background-color: var(--primary-color); 
    border-radius: 1em;
    overflow: hidden;   
    display: inline-block;
}

header a {
    text-decoration: none;
    color: white;
    padding: .5em 1em;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.5em;
}

header a:hover {
    background-color: var(--accent-color1);
    transform: scale(1.3);                     
    box-shadow: 2px 4px 8px rgba(0,0,0,0.2);  
}


/* Main content grows to fill space */
main#main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Map container */
#map {
    width: 90%;
    max-width: 1200px;
    height: 600px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Add pin button */
#addPinBtn {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent-color1);
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    z-index: 10001;
    transition: transform 0.2s, background-color 0.2s;
}
#addPinBtn:hover {
    background-color: var(--accent-color2);
    transform: scale(1.1);
}

/* Message popup */
#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* Pin Modal */
#pinModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.45);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

#pinForm {
    background-color: white;
    padding: 30px 35px;
    border-radius: 15px;
    width: 320px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}
#pinForm:hover {
    transform: scale(1.02);
}

#pinForm h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--primary-color);
}

#pinForm input, #pinForm button {
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

#pinForm input:focus {
    outline: none;
    border-color: var(--accent-color1);
    box-shadow: 0 0 5px var(--accent-color1);
}

#pinForm button {
    margin-top: 18px;
    background-color: var(--accent-color1);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.2s;
}
#pinForm button:hover {
    background-color: var(--accent-color2);
    transform: scale(1.05);
}

/* Footer */
footer {
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

footer a:hover {
    text-decoration: underline;
}

footer img {
    max-height: 36px;
    max-width: 36px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    header ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }
    #map {
        width: 95%;
        height: 500px;
    }
    #pinForm {
        width: 90%;
    }
}
