body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url("Pictures/bfp_bg.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  justify-content: center;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  position: relative;
}

/*Landing Page*/
.hero{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.4);
    z-index: 1;
}

.bfplogos{
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    z-index: 3;
}

.heading{
    position: absolute;
    top: 7vh;
    left: 5vw;
    color: rgb(248, 246, 246);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bolder;
    line-height: .5;
}

.heading .p1, .p2{
    font-size: clamp(14px, 2vw, 20px);
}

.heading .p3{
    font-size: clamp(10px, 1.2vw, 12px);
}

.logoIII{
    position: absolute;
    right: 5vw;
    top: 5vh;
}

.l1, .l2{
    width: 8vw;
    min-width: 60px;
    height: auto;
}

.l3{
    width: 7vw;
    min-width: 55px;
    height: auto;
}

.text-container P{
    color: white;
    font-size: clamp(12px, 1.5vw, 15px);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1.5;
    margin: 0;
}
.text-container {
    position: relative; /* unchanged */
    color: white;
    margin: 30vh 5vw 0 5vw;
    z-index: 2;
    max-width: 900px;
}

.text-container .button-grid {
    display: grid;
    grid-template-columns: repeat(5 , minmax(334px, 1fr));
    gap: 15px 15px; /* 15px space horizontally and vertically */
    margin-top: 15px;
}

.text-container .button-grid button {
    font-size: clamp(10px, 1.2vw, 12px);
    width: 100%;  /* full width of grid cell */
    height: 200px;
    background-color: rgb(117, 5, 5);
    border: 0.5px solid white;
    color: white;
    box-sizing: border-box; /* ensures padding/border don't break width */
}

.text-container .button-grid button:hover {
    background-color: rgb(75, 8, 8);
    color: black;
}

.button-container{
    position: relative; /* 🔥 changed from fixed */
    margin: 5vh auto;
    width: 90%;
    z-index: 2;
}

.button-container button{
    width: 100%;
    height: 50px;
    background-color: rgb(117, 5, 5);
    color: white;
    border: .5px solid white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-bottom: 10px;
}
.button-container .btn6{
    margin-bottom: 10px;
    width: 100%;
    height: 50px;
    background-color: rgb(117, 5, 5);
    color: white;
    border: .5px solid white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
}



.button-container button:hover{
    background-color: rgb(75, 8, 8);
    color: white;
}


/* ================= MOBILE ================= */
@media (max-width: 600px){

    .heading{
        position: absolute;
        top: 100px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }

    .logoIII{
        position: relative;
        left: 120px;
    }

    .text-container{
        margin-top: 15vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}



@media (max-width: 360px){
     .heading{
        position: absolute;
        top: 80px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }
.logoIII {
    position: absolute;
    top: 20px;        /* 👈 adjust vertically */
    left: 25%; 
    display: flex;
    gap: 10px;
}

    .text-container{
        margin-top: 30vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}


@media (max-width: 375px){
     .heading{
        position: absolute;
        top: 80px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }
.logoIII {
    position: absolute;
    top: 20px;        /* 👈 adjust vertically */
    left: 25%; 
    display: flex;
    gap: 10px;
}

    .text-container{
        margin-top: 32vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}
    
    
@media (max-width: 390px){
     .heading{
        position: absolute;
        top: 80px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }
.logoIII {
    position: absolute;
    top: 20px;        /* 👈 adjust vertically */
    left: 25%; 
    display: flex;
    gap: 10px;
}

    .text-container{
        margin-top: 25vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}
    
/*height*/
   
@media (max-height:640px){
     .heading{
        position: absolute;
        top: 80px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }
.logoIII {
    position: absolute;
    top: 20px;        /* 👈 adjust vertically */
    left: 25%; 
    display: flex;
    gap: 10px;
}

    .text-container{
        margin-top: 30vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}

   
@media (max-height:658px){
     .heading{
        position: absolute;
        top: 80px;
        left: 30px;
        justify-content: center;
        text-align: center;
        line-height: 15px;
    }
.logoIII {
    position: absolute;
    top: 20px;        /* 👈 adjust vertically */
    left: 25%; 
    display: flex;
    gap: 10px;
}

    .text-container{
        margin-top: 32vh;
        padding: 0 5px;
    }

    .text-container .button-grid{
        grid-template-columns: 1fr 1fr;
    }

    .text-container .button-grid button{
        height: 100px;
    }

    .button-container{
        width: 95%;
    }

}

/*Login Page*/

.textarea-container{
    display: flex;
    justify-content: center;
    margin-top: 400px;
}

.textarea-container .txtarea1{
    border: .5 grey;
    border-radius: 50px;
    width: 300px;
    padding: 10px;
}

.txtarea1{
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;

}

.text1{
    display: flex;
    justify-content: center;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: white;
}


/*css for modal adding new unit*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6); /* dark overlay */

  display: none;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(4px); /* optional blur effect */
}

.modal-content {
  background: #fff;
  padding: 25px;
  width: 350px;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

  animation: fadeIn 0.3s ease;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.close:hover {
  color: red;
}

.modal-content h2 {
  margin-bottom: 15px;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-content button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;

  background: #8B0000; /* same red theme */
  color: white;
  border: none;
  border-radius: 6px;

  cursor: pointer;
}

.modal-content button:hover {
  background: #a30000;
}


