/* responsive.css */
/* 반응형 디자인 미디어 쿼리 */

/* 기본 반응형 */
@media (max-width: 768px) {
  .text-inputs {
    grid-template-columns: 1fr;
  }
  .speed-results {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 1px solid #dee2e6;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 2000;
  }
  
  .menu-toggle:hover {
    background-color: #e9ecef;
  }
  
  #menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background-color: white;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 998;
    padding: 15px;
    overflow-y: auto;
    margin-top: 100px;
  }
  
  #menu.menu-open {
    top: 0;
  }
  
  main {
    margin-left: 0;
    padding-top: 120px;
  }
  
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 997;
  }
  
  .menu-overlay.active {
    display: block;
  }
  
  #menu button {
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    text-align: left;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
  }
  
  #menu button:hover {
    background-color: #e9ecef;
  }
  
  #menu button.active {
    background-color: #007bff;
    color: white;
  }
  
  footer {
    margin-left: 0;
    width: 100%;
  }
  
  .search-links {
    gap: 10px;
  }
  
  .search-link {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .search-link i {
    font-size: 16px;
  }
  
  .section {
    padding: 20px;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

/* 작은 화면용 */
@media screen and (max-width: 480px) {
  main {
    padding: 120px 15px 80px 15px;
  }
  .section {
    padding: 15px;
  }
  
  .btn {
    width: 100%;
  }
}
