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

.modalContainer {
    display: none;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: rgba(190, 190, 190, 0.835);

}

.modal {
    color: white;
    padding-right: 20px;
    padding-left: 30px;
    padding-top: 20px;
    padding-bottom: 5px;
    border-radius: 20px;
    max-width: 700px;
    height: 420px;
    
    margin: auto;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgb(5, 5, 5);
}



.modal .infoSection {
    max-height: 60%;
    overflow-y: auto;
    scrollbar-width: thin;
    overflow-y: auto;
    height: 75%;
    margin-top: 25px;
    margin-bottom: 20px;
    word-spacing: 2px;
    padding-right: 5px;
    padding-left:5px ;
  }

.modal .infoSection::-webkit-scrollbar {
    width: 10px;
  }
  
  .modal .infoSection::-webkit-scrollbar-track {
    background-color: rgb(235, 235, 235);
  }
  
  .modal .infoSection::-webkit-scrollbar-thumb {
    background-color: rgb(150, 150, 150);
    border-radius: 5px;
    transition: .2s;

  }
  
  .modal::-webkit-scrollbar-thumb:hover {
    transition: .2s;
    background-color: rgb(120, 120, 120);
  }
.modalHeadingContainer{
    display: flex;
    align-items: flex-end;
    margin-top: 10px;
}
  
  .modalElementSymbol{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    width: 75px;
    height: 60px;
    padding-top: 5px;
    padding-left: 2px;
    padding-right: 2px;
    border: 5px solid white;
    border-radius: 10px;
    border-bottom-right-radius: 0;
    font-family: 'Comfortaa', cursive, 'Courier New', Courier, monospace;

  }

  .modalHeading{
    width: 75%;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding-bottom:10px;
    padding-left: 30px;
    border-bottom: 5px solid white;
    transform: translateX(-15px);
    font-family: 'Comfortaa', cursive, 'Courier New', Courier, monospace;
  }

  .modalLabel{
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
  }

  .modalInfo {
    color: rgb(190, 190, 190);
    font-size: 1.1rem;
    font-weight: 100;
    margin-left: 10px;

  }

  .elementHistory,
  .elementFacts{
    margin-top: 5px;
    padding-right: 10px;
  }

  .modalButton{
    font-family: 'Comfortaa', cursive;
    font-weight: 600;
    width: 150px;
    padding: 3px;
    padding-right: 10px;
    padding-left: 10px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 50px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    transition: .2s;
  }
  .modalButton:hover{
    box-shadow: 3px 3px 5px blue;
    background-color: rgb(139, 136, 136);
  }

  .moreButton{
    background-color: rgba(146, 213, 171, 0.893) ;
  }

  .moreButton:hover{
    background-color: rgba(41, 194, 97, 0.9);
  }
  .modalButton:active{
    background-color: rgb(225, 225, 225);
  }

  .closeButton {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    color: #fff;
    font-size: 18px;
    text-align: center;
    line-height: 30px;
    background-color: rgb(254, 39, 20);
    cursor: pointer;
    transition: .2s;
}

.closeButton:hover{
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.closeButton:active{
    background-color: rgb(237, 35, 17);
    box-shadow: 0 0 5px rgba(115, 115, 115, 0.9);

}


@media (max-width: 767px) {
  .modal {
    width: 70%;
    max-width: none;
    height: 80vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(5, 5, 5);
  }

   .modalFactLabel{
margin-top: 20px;
  }

  .modalInfo {
    color: rgb(190, 190, 190);
    font-size: .95rem;
    font-weight: 100;
    margin-left: 6px;

  }

  .elementFacts,
  .elementHistory {
    margin-left: 0;
  }

  .modalButton {
    display: flex;
    justify-content: center; /* Add this line */
    align-items: center; /* Add this line */
    width: 180px;
    padding: 4px;
    padding-right: 10px;
    padding-left: 10px;
    margin: 0 auto;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    transition: 0.2s;
  }

  .previousButton{
    margin-top: 40px;
    margin-bottom: 10px;
  }

  .closeButton {
    top: 25px;
    right: 25px;
}
  
}

/* serach by filter styling  */

.filterSection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: nowrap;
}

/* Container for search bar with embedded dropdown */
.searchWithDropdown {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #00ffff;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0a0a0a;
}

/* Text input */
#elementSearch {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #00ffff;
    background-color: #0a0a0a;
    color: white;
    flex: 1;
    outline: none;
    width: 140px;
    
    
}
#elementSearch:focus{
   border-color: #1e90ff;
}

/* Embedded select styled like #groupFilter */
#searchTypeSelector {
    font-size: 16px;
    border: 2px solid #00ffff;
    background-color: #0a0a0a;
    color: white;
    padding: 12px 20px;
    border-left: 2px solid #00ffff;
    border-bottom: 0px;
    border-top: 0px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px;
    cursor: pointer;
}

/* Hover and focus matching #groupFilter */
#searchTypeSelector:focus {
    border-color: #1e90ff;
}

#groupFilter {
    width: 180px;
    padding: 12px 40px;
    padding-left: 12px;
    font-size: 16px;
    border: 3px solid #00ffff;
    border-radius: 8px;
    background-color: #0a0a0a;
    color: white;
    outline: none;
    transition: 0.3s;
   
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#groupFilter:focus {
    border-color: #1e90ff;
}

.searchbar{
  position: absolute;
  left: 400px;
  top: 90px;
}

header {
  position: absolute;
  top: 10px;
}

/* ---- Neon button style ------------------------------------ */
.neon2-btn{
  --glow: #028cff;           /* core neon color */
  --bg:   #0d6efd;           /* inner button fill (slightly darker) */
  --radius: 0.35rem;

  
  padding:0.55rem 1.7rem;
  font:600 1rem/1.2 "Segoe UI",sans-serif;
  color:#fff;
  text-decoration:none;
  text-align:center;
  background:var(--bg);
  border:none;
  border-radius:var(--radius);
  cursor:pointer;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
      0 0 0   2px var(--glow) inset,       /* inner stroke */
      0 0 6px 0   var(--glow),             /* soft halo */
      0 0 6px 2px var(--glow);            /* outer glow */
}

.neon2-btn:hover,
.neon2-btn:focus-visible{
  transform:translateY(-2px);
  box-shadow:
      0 0 0   2px var(--glow) inset,
      0 0 10px 0  var(--glow),
      0 0 40px 4px var(--glow);
      color: black;
      
}

.neon2-btn:active{
  transform:translateY(0);
  box-shadow:
      0 0 0   2px var(--glow) inset,
      0 0 6px 0  var(--glow),
      0 0 14px 3px var(--glow);
}

