/*
© Pacifique Bisimwa Mugisho
pacifiquemugisho@gmail.com
R2208D14995778
UNICAF University 
Project Module (UU-MWD-780-ZM-72176) 
==================================== 
Stylesheet for the main page of the application.
-----------------------------------------------------------------------------------------------------------*/
body, html {
    margin: 0px;
    padding: 0px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
  }
  
  .app {
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  /* Container for buttons */
  .button-container {
      display: flex;
      flex-wrap: wrap; /* Ensures buttons wrap to the next line if needed */
      justify-content: center; /* Centers buttons */
      gap: 10px; /* Adds spacing between buttons */
      padding: 20px;
  }
 
      /* Style for buttons */
      .button {
        background-color: #0056b3; /* Blue background color */
        color: white; /* White text */
        padding: 10px 20px; /* Padding for buttons */
        border: none;
        border-radius: 5px; /* Rounded corners */
        text-align: center;
        cursor: pointer;
        font-size: 16px; /* Font size */
        transition: background-color 0.3s ease; /* Smooth hover effect */
      }  
  
  h1 {
    text-align: center;
    color: #333;
  }
  
  button {
    padding: 5px 5px; /* Padding for buttons */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease; /* Smooth hover effect */    
  }
  
  input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  } 
  .tab {
    display: none;
  }
  
  #message {
    margin-top: 10px;
    text-align: center;
    color: #28a745;
  }

  body { font-family: Arial, sans-serif; background-color: #f4f4f9; margin: 2px; padding: 10px; color: #333; }
  h1, h2 { color: #0056b3; }
  form { background-color: #ffffff; padding: 10px; margin-top: 0px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
  input, button { padding: 10px; margin-top: 8px; border: 1px solid #ddd; border-radius: 4px; width: 100%; box-sizing: border-box; }
  button { background-color: #0056b3; color: white; cursor: pointer; }
  button:hover { background-color: #004494; }
  
  .blinking-marker {
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
#map {
  width: 100%;
  height: 400px; /* Adjust height as needed */
  border: 2px solid #ccc;
  border-radius: 8px;
}
.app {
  max-width: 768px;
  margin: 5 auto;
  padding: 20px;
}

/* Style for the navigation bar */
nav {
  display: flex;
  flex-wrap: wrap; /* Ensures buttons wrap to the next line if needed */
  justify-content: center; /* Centers buttons */
  gap: 2px; /* Adds spacing between buttons */
  padding: 2px;
  box-sizing: content-box; 
}


nav .menu {
  display: flex;  
  flex-direction: row;  /*Stack menu items */
  gap: 5px;/*Add spacing between buttons */
  white-space: nowrap;
  width: 100%;
  box-sizing: content-box;
  margin: 2px 0;   
  justify-content: center; /* Centers buttons */
  gap: 1px; /* Adds spacing between buttons */
  padding: 1px;  
}

.section {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #f7f7f7;
}

.section h2 {
  font-size: 1.2rem;
  margin-top: 0;
  background: #ddd;
  padding: 10px;
  border-radius: 4px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select, text, button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-right: 10px;
}

textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button:hover {
  background-color: #218838;
}

.btn-container {
  display: flex;
  flex-wrap: nowrap; /* Ensures buttons wrap to the next line if needed */
  justify-content: center; /* Centers buttons */
  gap: 10px; /* Adds spacing between buttons */
  padding: 20px;
}

.btn-container button {
  margin-left: 10px;  
}
/* Hide the text input initially */
    #other-org, #other-activity, #other-donor, #other-benef {
      display: none;
      margin-top: 10px;
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      border-radius: 4px;
      border: 1px solid #ccc;
      font-size: 1rem;
      margin-right: 10px;  
    }
    /* Responsive behavior for smaller screens */
    @media (max-width: 768px) {
      .menu {
        flex: 1 1 100%;  /* Buttons take full width on smaller screens */
        flex-wrap: wrap; /* Ensures buttons wrap to the next line if needed */  
        flex-direction: column; /* Stack elements vertically on smaller screens */        
        text-align: center;
        margin: 2px 0; 
      }
    } 
#footer {
      position:relative;
      bottom:0;
      width:100vw;
}