/* ip.checker */
.ip-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 32px 24px;
    background: rgba(0, 0, 0, 0);
    border-radius: 16px;
    color: #ecf0f1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0);
}
.ip-container h2 {
    color: #1abc9c;
    text-align: left;
    margin-bottom: 18px;
    font-size: 1.5em;
    margin-top: 0;
}
.ip-details {
    min-width: 260px;
    max-width: 340px;
    text-align: left;
}
.ip-address, .ip-details p {
    font-size: 1.13em;
    margin-top: 8px;
    color: #e0e0e0;
    margin-bottom: 6px;
}
.ip-details strong {
    color: #1abc9c;
}
#mapContainer {
    margin-top: 0;
    width: 1200px;
    max-width: 100%;
    height: 350px;
    border: 1.5px solid #1abc9c;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0);
}
@media (max-width: 900px) {
    .ip-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 18px 8px;
    }
    #mapContainer {
        width: 100%;
        height: 260px;
    }
}

/* index.html */

.input { 
    max-width: 500px; 
    background-color: #1a1a1a; 
    border: none; 
    padding: 10px; 
    border-radius: 10px; 
    outline: none; 
    color: white; 
  }
  
  @media (max-width: 768px) {
    .input {
      max-width: 400px;
    }
  } 
  
  .input:focus { 
    animation: rotateShadow 2s infinite linear; 
  } 
  
  @keyframes rotateShadow { 
    0% { 
      box-shadow: -2px -2px 8px 1px #aa00ff, 2px 2px 8px 1px #3700ff; 
    } 
    25% { 
      box-shadow: -2px 2px 8px 1px #aa00ff, 2px -2px 8px 1px #3700ff; 
    } 
    50% { 
      box-shadow: 2px 2px 8px 1px #aa00ff, -2px -2px 8px 1px #3700ff; 
    } 
    75% { 
      box-shadow: 2px -2px 8px 1px #aa00ff, -2px 2px 8px 1px #3700ff; 
    } 
    100% { 
      box-shadow: -2px -2px 8px 1px #aa00ff, 2px 2px 8px 1px #3700ff; 
    } 
  }

/* Search */

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-radius: 30px;
    border: none;
    background-color: #1a1a1a;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(170, 0, 255, 0.5), 0 0 15px rgba(55, 0, 255, 0.5);
    transform: scale(1.02);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-results {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .search-container {
        min-height: 40vh;
        padding: 1rem 0.5rem;
        justify-content: center;
        align-items: center;
    }

    .search-box {
        max-width: 90%;
        margin: 0 auto 1rem;
        width: 100%;
    }

    .search-input {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 0.8rem 0.5rem;
    }
    
    .search-box {
        max-width: 95%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
}

/* Qr code */

.qr-container { max-width: 400px; margin: 40px auto; background: #00000000; padding: 2em; border-radius: 16px; box-shadow: 0 2px 16px #0004; }
.qr-form { display: flex; flex-direction: column; gap: 1em; }
.qr-form input[type="text"] { padding: 0.7em; border-radius: 2em; border: 1px solid #333; background: #222; color: #fff; font-size: 1em; width: 11em; }
.btn { 
  border: none; 
  width: 11em; 
  height: 3.5em; 
  border-radius: 2em; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 12px; 
  background: #1C1A1C; 
  cursor: pointer; 
  transition: all 450ms ease-in-out; 
} 
.sparkle { 
  fill: #AAAAAA; 
  transition: all 800ms ease; 
} 
.text { 
  font-weight: 600; 
  color: #AAAAAA; 
  font-size: medium; 
} 
.btn:hover { 
  background: linear-gradient(0deg,#A47CF3,#683FEA); 
  box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), 
  inset 0px -4px 0px 0px rgba(0, 0, 0, 0.2), 
  0px 0px 0px 4px rgba(255, 255, 255, 0.2), 
  0px 0px 180px 0px #9917FF; 
  transform: translateY(-2px); 
} 
.btn:hover .text { 
  color: white; 
} 
.btn:hover .sparkle { 
  fill: white; 
  transform: scale(1.2); 
}
.qr-form { flex-direction: row; align-items: center; }
@media (max-width: 700px) {
  .qr-form { flex-direction: column; }
  .btn { width: 100%; height: 2.5em; border-radius: 1.2em; }
  .qr-form input[type="text"] { width: 100%; padding: 1.1em; font-size: 1.1em; border-radius: 2em; }
}
#qrcode { display: flex; justify-content: center; margin-top: 2em; }
@media (max-width: 500px) { .qr-container { padding: 1em; } }

/* Footer responsive styles */
.copyright {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .copyright {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        margin: 5px 8px;
        font-size: 0.85em;
    }
}