/* GLOBAL FIX */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  padding: 15px;
}

/* HEADER */

#content {
  justify-items: center;
}

#head {
  background-color: var(--e-global-color-17a726c);
  width: 100%;
  border-radius: 15px;
  padding: 31px;
}

h1 {
  color: #212529;
  padding: 31px;
  margin-bottom: 0;
  font-size: 45px !important;
  font-weight: 700 !important;
  padding-bottom: 0;
  text-align: center;
}

.sub-title {
  color: darkgray;
  font-size: large;
  padding-bottom: 10px;
  text-align: center;
}

/* INPUT SECTION */

.input-section {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
      background: #e7e7e9;
  padding: 20px;
  border-radius: 12px;
}

/* FLEX FIX (RESPONSIVE) */
.input-group {
  flex: 1 1 150px;
  min-width: 120px;
}

/* LABEL */
.input-group label {
	color:black;
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}
h3{
	color:black !important;
}

/* INPUT */
input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* DISTANCE */
.distance-box {
  width: 100%;
  margin-top: 15px;
}

.distance-box label {
	
    color: black;

  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* PREVIEW */

.preview-section {
  margin-top: 20px;
}

/* INPUT COLOR BOX */

.input-color-box {
  display: flex;
  gap: 20px;
 background: #6a4eb9;
  padding: 20px;
  border-radius: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.color-preview {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

/* INFO */

.color-info {
  flex: 1 1 250px;
}

.color-info h3 {
  margin-bottom: 10px;
}

.color-info p {
  margin: 5px 0;
	    color: black;
}

/* MATCHES */

.matches-section {
	   background-color: #6a4eb9;
  margin-top: 20px;
	    padding: 12px;
    border-radius: 21px;
}

.matches-section h3 {
	text-align:center;
  margin-bottom: 10px;
}

/* GRID */

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

/* CARD */

.match-card {
     background: #38304e;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #5f2dee;
}

.match-color {
  height: 50px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.match-card h4 {
  margin-bottom: 5px;
  font-size: 16px;
}

.match-card p {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================= */
/* TABLET FIX */
/* ========================= */

@media (max-width: 1024px) {
  h1 {
    font-size: 32px !important;
  }

  .input-group {
    flex: 1 1 45%;
  }
}

/* ========================= */
/* MOBILE FIX */
/* ========================= */

@media (max-width: 768px) {

  .container {
    padding: 10px;
  }

  h1 {
    font-size: 26px !important;
    padding: 20px;
  }

  .sub-title {
    font-size: 14px;
  }

  .input-section {
    flex-direction: column;
  }

  .input-group {
    flex: 1 1 100%;
  }

  .input-color-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .color-preview {
    width: 100%;
    height: 100px;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* SMALL MOBILE */
/* ========================= */

@media (max-width: 480px) {

  .preview-section {
    margin-top: 15px;
  }

  .match-card {
    padding: 12px;
  }

}