/* styles.css */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.site-header .logo {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
}

.site-header .logo img {
  max-width: 300px;
  height: auto;
}

@media screen and (max-width: 600px) {
  .site-header .logo img {
    max-width: 250px;
    height: auto;
  }
}

.nav-menu {
  text-align: center; 
  padding: 0.1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-menu a {
  margin-right: 15px; /* Add spacing between links */
  text-decoration: none; /* Remove underline */
  color: inherit; /* Use the inherited text color */
}

/* Change the color of links on hover */
.nav-menu a:hover {
  color: #ddd;
  color: black;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the nav-menu.nav-menu (.icon) */
@media screen and (max-width: 600px) {
  .nav-menu a {display: none;}
}

.nav-menu-one {
  text-align: center; 
  padding: 0.1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-menu-one a {
  margin-right: 15px;
  text-decoration: none; /* Remove underline */
  color: inherit; /* Use the inherited text color */
}

/* Hide the icon menu on desktop */
.icon-menu,
.icon-label {
  display: none; /* Hide by default */
}

/* Show the icon menu on mobile */
@media screen and (max-width: 765px) {
  .icon-menu {
    display: flex; /* Show the icon menu on mobile */
    justify-content: center; /* Center the icons horizontally */
    gap: 10px; /* Add spacing between the icons */
  }
  .icon-label {
    display: block; /* Show the label on mobile */
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Ring image */
.icon-img {
  width: 100%;
  height: auto;
  max-width: 50px;
  margin: 0 auto 0.5rem;
}

/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .site-header .logo {
    text-align: center;
    float: none;
  }
}
  
  h1, h2 {
    text-align: center;
  }
  
  .converter {
    margin-top: 30px !important;
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  #input-container {
    display: flex;
    flex-direction: column;
  }

   /* Default (mobile-first): Stack the input and select elements */
#measure-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Add spacing between elements */
}

#measure-input-container input {
  width: 94%; /* Full width on mobile */
  padding: 8px; /* Add some padding for better usability */
  font-size: 1rem; /* Adjust font size */
}

#measure-input-container select {
  width: 100%; /* Full width on mobile */
  padding: 8px; /* Add some padding for better usability */
  font-size: 1rem; /* Adjust font size */
}

/* Desktop: Inline layout */
@media (min-width: 768px) {
  #input-container {
    flex-direction: row;
    gap: 15px;
  }

  #entry-select-container {
    flex: 2;
  }

  #size-select-container {
    flex: 2;
  }

  #measure-input-container {
    flex: 2;
    flex-direction: row;
    align-items: center; /* Align items vertically */
    gap: 15px; /* Add spacing between elements */
  }

  #measure-input-container input {
    flex: 3; /* 80% of the space */
    max-width: 66%; /* Remove max-width to allow flex to control size */
  }

  #measure-input-container select {
    flex: 1; /* 20% of the space */
    max-width: 28%; /* Remove max-width to allow flex to control size */
  }
}
  
label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

select, input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.measure-box {
  display: flex;
  gap: 0.5rem;
}

.measure-box input, .measure-box select {
  flex: 1;
}

.results {
  margin-top: 2rem;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
}

  /* Grid container */
#ring-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual ring card */
.ring-card {
  background-color: #fff;
  padding: 0.5rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
}

/* Ring image */
.ring-img {
  width: 100%;
  height: auto;
  max-width: 100px;
  margin: 0 auto 0.5rem;
}

/* Size label */
.ring-size-label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* Closest match badge */
.closest-badge {
  background-color: #ffcc00; /* Highlight color */
  color: #000; /* Text color */
  font-weight: bold;
  padding: 10px 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px; /* Add spacing below the badge */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow */
}

.info {
  font-size: 0.8rem;
  font-style: italic;
}

.content {
  display: block;
  max-width: 1200px; /* Match the max-width of the table */
  margin: 0 auto; /* Center the content horizontally */
  padding: 1rem; /* Add some padding for spacing */
  text-align: left; /* Align text to the left */
}

.table-wrapper {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  min-width: 800px;
  table-layout: fixed;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
}

th {
  background-color: #eee;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .converter {
    padding: 1rem;
  }

  input, select {
    font-size: 1rem;
  }
}

.match-block {
  margin-bottom: 1.5rem;
}
.match-block hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 1rem;
}

.closest-badge {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5em;
}
  

 
  