body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.7s ease;
}

h1 {
    text-align: center;
    color: #222;
    font-size: 32px;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
    margin-top: 35px;
    color: #222;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.input-section {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

input[type="date"] {
    padding: 12px;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.moon-phase {
    text-align: center;
    margin: 25px 0;
}

.moon-phase img {
    max-width: 100%;
    height: auto;
    width: 160px;
    transition: transform 0.5s ease;
}

.moon-phase img:hover {
    transform: rotate(10deg);
}

#result {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #444;
}

.info-section,
.faq-section {
    margin-top: 40px;
}

.info-section h2,
.faq-section h2 {
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #007bff;
    color: #fff;
}

table img {
    width: 80px;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

li::before {
    content: "\2714";
    color: #28a745;
    position: absolute;
    left: 0;
}

li strong {
    color: #007bff;
}

.faq-item {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.faq-item p {
    margin: 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
	body {
    padding: 5px;
}

.container {
    padding: /*20px*/ 1rem;
}
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }

    .moon-phase img {
        width: 120px;
    }

    table img {
        width: 60px;
    }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 600px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
    width: /*100%;*/ auto;
    border-radius: 10px;
  }
  .table-responsive thead {
    display: none;
  }
  .table-responsive tr {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
    /*padding: 6px 0;*/
  }
  .table-responsive td {
    border: none;
    position: relative;
    padding-left: 48%;
    min-height: 42px;
    text-align: left;
    background: #f8fafd;
    width: 100%;
    box-sizing: border-box;
  }
  .table-responsive td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 8px;
    white-space: normal;
    font-weight: bold;
    color: #007bff;
    content: attr(data-label);
  }
  .table-responsive img {
    width: 60px !important;
    margin-bottom: 6px;
  }
}


/*mobile cards*/
.mobile-cards {
  display: none;
}

@media (max-width: 600px) {
/*.table-responsive { display: none !important; }*/
  .hemisphere-table { display: none !important; }
  .mobile-cards { display: flex; flex-direction: column; gap: 20px; margin: 12px 0; }
  

  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 12px 0;
  }
  .moon-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: /*14px*/ 0.75rem 0.25rem 0.75rem 0.25rem;
  }
  .moon-phase-name {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
    margin-bottom: 10px;
    text-align: center;
  }
  .moon-hemispheres {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-around;
  }
  .moon-hemisphere {
    flex: 1 1 0px;
    text-align: center;
  }
  .moon-hemisphere-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
  }
  .moon-hemisphere-desc {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
  }
  .moon-hemisphere img {
    width: 52px;
    height: auto;
    margin-bottom: 2px;
  }
}
