/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'EMprint';
  src: url('fonts/EMprint-Regular.woff2') format('woff2'),
      url('fonts/EMprint-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Rounded';
  src: url('fonts/GothamRounded-Bold.woff2') format('woff2'),
      url('fonts/GothamRounded-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  text-align: left;
  font-family: 'Gotham Rounded', sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  font-family: 'EMprint', sans-serif;
}

/* Styles for the fixed header */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f9f9f9;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 18em;
}

.fixed-header .logo {
  display: flex;
  align-items: center;
}

.fixed-header .logo img {
  height: 30px; /* Adjust the height as needed */
}

.fixed-header .mobile-logo {
  display: none; /* Hide the mobile logo by default */
}

.fixed-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.fixed-header ul li {
  margin-right: 10px;
}

.fixed-header ul li a {
  text-decoration: none;
  color: #333;
}

.fixed-header ul li a:hover {
  color: #000;
}

.title-container {
  margin-bottom: 3rem;
}

.guide-container {
  max-width: 1200px;
  min-width: 320px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 100px;
}

.guide-container ul, p {
  max-width: 700px;
}

.guide-container h2 {
  margin-top: 50px;
}

.step-container {
  background-color: #F1F1F1;
  padding: 2rem;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  min-width: 320px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.container h2 {
  text-align: center;
}

.non-editable-input {
  border: none;
  background-color: inherit;
  pointer-events: none;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  text-align: center;
}

table td input, table td select {
  padding: 0.1rem;
  width: calc(70% - 0.5rem); /* Subtracting 0.5rem to account for the padding */
}

th {
  font-family: 'Gotham Rounded', sans-serif;
}

.tables-container table tr td:first-child {
  font-size: 0.8rem;
  text-align: left;
  width: 70%;
}

td {
  font-family: 'EMprint', sans-serif;
  font-size: 0.8rem;
}

table th,
table td {
  border: 0px solid #ccc;
  padding: 0.5rem;
  text-align: center;
}

#addItemBtn {
  margin-top: 0.5rem;
  font-family: 'Gotham Rounded', sans-serif;
}

#calculateBtn {
  margin-top: 1rem;
  font-family: 'Gotham Rounded', sans-serif;
}

button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background-color: #0B1E49;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #FFB100;
  transition: 300ms ease-in-out;
}

.result {
  background-color: #ddd;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
}

.responsive-table {
  table-layout: fixed;
  width: 100%;
}

.responsive-table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tables-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.table-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 auto;
}

.appreciation-container {
  text-align: center;
  margin: 0 auto;
}

.appreciation-container p {
  text-align: left;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.google-form {
  text-align: left;
}

/* Media Queries */
@media screen and (max-width: 600px) {
  .fixed-header nav {
    padding: 1em 10px; /* Adjust the padding as needed */
  }

  .fixed-header .logo {
    justify-content: flex-start; /* Align the logo to the left */
  }

  .fixed-header ul {
    justify-content: flex-end; /* Align the home link to the right */
  }

  .fixed-header ul li {
    margin-left: 10px; /* Add spacing between the logo and home link */
  }

  .fixed-header .desktop-logo {
    display: none; /* Hide the desktop logo on mobile devices */
  }

  .fixed-header .mobile-logo {
    display: flex; /* Show the mobile logo on mobile devices */
  }

  .non-editable-input {
    border: none;
    background-color: inherit;
    pointer-events: none;
    text-align: left;
  }

  #table2 {
    background-color: #e2eafc;
    padding: 10px;
  }

  #table3 {
    background-color: #e2eafc;
    padding: 10px;
  }

  #table4 {
    background-color: #e2eafc;
    padding: 10px;
  }
  
  .table thead th {
    display: none;
  }

  .tables-container {
    display: grid;
    justify-content: space-around;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
  }

  table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    grid-gap: 0.5rem;
    text-align: left;
  }

  table tr {
    display: contents;
  }

  table th,
  table td {
    display: grid;
    padding: 0.5rem;
    text-align: left;
    grid-gap: 0.5rem;
    padding: 0.35rem;
    font-size: 1.2rem;
  }

  table td:before {
    content: attr(data-label);
    font-size: 1rem;
  }

  table td input, table td select {
    display: inline-block;
    width: 100%;
  }

  .mobile-visible {
    display: table-cell !important;
  }

  .mobile-hidden {
    display: none;
  }

  body {
    font-size: 1.2rem;
  }

  .table-col-1 tbody tr td:first-child {
    display: none;
  }
}

