body {
    font-family: math;
    color: #444;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px; /* Change base font size */
}

.main-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #eee;
}

.tool-section {
    width: 70%;
    padding: 3.2rem; /* 2rem * 1.6 */
}

.sidebar-section {
    width: 30%;
    /*padding: 3rem;*/
    margin-left: auto;
}

@media (max-width: 979px) {
    .sidebar-section {
        padding: 0px !important;
    }
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
    .tool-section {
        width: 100%;
        order: 1;
        padding: 0.8rem; /* 0.5rem * 1.6 */
        padding-top: 3.2rem; /* 2rem * 1.6 */
        margin-bottom: 3.2rem; /* 2rem * 1.6 */
    }

    .sidebar-section {
        width: 100%;
        order: 2;
    }
}

@media (max-width: 770px) {
    .tool-section,
    .sidebar-section {
        width: 100%;
    }
}

.container {
    margin: 3.2rem auto; /* 2rem * 1.6 */
    padding: 4.8rem; /* 3rem * 1.6 */
    background-color: #ffffff;
    box-shadow: 0 0.96rem 3.2rem rgba(0, 0, 0, 0.1); /* 0.6rem * 1.6 */
    border-radius: 0.8rem; /* 0.5rem * 1.6 */
}

h1, h2 {
    color: black;
    margin-bottom: 3.2rem; /* 2rem * 1.6 */
}

h1 {
    font-size: 4.48rem; /* 2.8rem * 1.6 */
}

h2 {
    font-size: 3.84rem; /* 2.4rem * 1.6 */
}

h3 {
    font-size: 3.2rem; /* 2rem * 1.6 */
}

h4 {
    font-size: 2.88rem; /* 1.8rem * 1.6 */
}

.h1-h2-heading {
    text-align: center;
}

p {
    font-size: 1.92rem; /* 1.2rem * 1.6 */
    color: #555;
}

.table-wrapper {
    overflow-y: auto;
    margin-top: 24px;
    border: 1px solid #ccc;
    border-radius: 0.64rem; /* 0.4rem * 1.6 */
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

th, td {
    padding: 32px; /* 20px * 1.6 */
    text-align: center;
    font-size: 2.08rem; /* 1.3rem * 1.6 */
    border-bottom: 0.1rem solid #bababa; /* 0.0625rem * 1.6 */
    font-weight: normal;
    background-color: #fff;
}

thead {
    position: sticky;
    top: 0;
    background-color: #f0f2f5;
    z-index: 1;
}

@media (max-width: 800px) {
    th, td {
        padding: 16px; /* 10px * 1.6 */
        font-size: 1.76rem; /* 1.1rem * 1.6 */
    }
}

@media (max-width: 800px) {
    th, td {
        white-space: nowrap;
    }
}

th {
    font-size: 2.4rem; /* 1.5rem * 1.6 */
    font-weight: 600;
}

.top-div {
    text-align: center;
}

.highlight-today {
    background-color: #d1ecf1;
    font-weight: bold;
    color: #155724;
    border-radius: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 24px; /* 15px * 1.6 */
    margin: 16px 0; /* 10px * 1.6 */
    box-shadow: 0 3.2px 8px rgba(0, 0, 0, 0.1); /* 2px * 1.6 */
    transition: background-color 0.3s;
    font-size: 2.4rem; /* 1.5rem * 1.6 */
    display: inline-block;
}

.centered-list {
    list-style-type: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-list li {
    background-color: #e9ecef;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 24px; /* 15px * 1.6 */
    margin: 16px 0; /* 10px * 1.6 */
    width: 40%; /* 25% * 1.6 */
    box-shadow: 0 3.2px 8px rgba(0, 0, 0, 0.1); /* 2px * 1.6 */
    transition: background-color 0.3s;
    font-size: 2.4rem; /* 1.5rem * 1.6 */
}

.result-p {
    font-size: 2.88rem; /* 1.8rem * 1.6 */
}

.centered-list li:hover {
    background-color: #d1ecf1;
}

@media (max-width: 600px) {
    h1 {
        font-size: 3.2rem; /* 2rem * 1.6 */
    }

    h2 {
        font-size: 2.4rem; /* 1.5rem * 1.6 */
    }

    p {
        font-size: 1.6rem; /* 1rem * 1.6 */
    }

    .highlight-today {
        padding: 16px; /* 10px * 1.6 */
        width: auto;
        font-size: 1.92rem; /* 1.2rem * 1.6 */
    }
    .container {
        padding: 1.8rem;

    }
}

@media screen and (max-width: 800px) {
    .centered-list li {
        width: 80%; /* 50% * 1.6 */
    }
}


/* Info Content */
.info-content {
    padding: 3rem 0;
    margin-top: 5rem;
    transition: all 0.3s ease;
}


.info-content section {
    margin-bottom: 2rem;
}

.info-content h2 {
    font-size: 3.6rem;
    color: #242145;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.info-content h3 {
    font-size: 2.8rem;
    color: #242145;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.info-content li {
    font-size: 1.8rem;
    color: #555;
    letter-spacing: 0.05rem;
    line-height: 1.5;
    padding: 1rem 0;
    text-align: justify;
}
.info-content ul {
    padding-left: 2rem;
    list-style-type: disc;
}

/* for days from today */
.top-result {
    text-align: center;
}

input[type="number"] {
    padding: 16px; /* 10px * 1.6 */
    font-size: 1.6rem; /* 1em * 1.6 */
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 80px; /* 50px * 1.6 */
    margin: 16px 0; /* 10px * 1.6 */
}

button {
    padding: 16px 32px; /* 10px * 1.6 and 20px * 1.6 */
    font-size: 1.6rem; /* 1em * 1.6 */
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.result {
    font-size: 2.24rem; /* 1.4em * 1.6 */
    color: #333;
    margin-top: 32px; /* 20px * 1.6 */
}

.highlight {
    background-color: #d1ecf1;
    font-weight: bold;
    color: #155724;
    border-radius: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 24px; /* 15px * 1.6 */
    margin: 16px 0; /* 10px * 1.6 */
    box-shadow: 0 3.2px 8px rgba(0, 0, 0, 0.1); /* 2px * 1.6 */
    transition: background-color 0.3s;
    display: inline-block;
}

label {
    font-weight: bold;
    margin-right: 16px; /* 10px * 1.6 */
}

p, label {
    font-size: 1.92rem; /* 1.2em * 1.6 */
    color: #555;
}

/* for friday left page */
.highlight-week-day {
    background-color: #d1ecf1;
    font-weight: bold;
    color: #155724;
    border-radius: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 24px; /* 15px * 1.6 */
    margin: 16px 0; /* 10px * 1.6 */
    box-shadow: 0 3.2px 8px rgba(0, 0, 0, 0.1); /* 2px * 1.6 */
    transition: background-color 0.3s;
}

tr.highlight-today-friday td {
    background-color: #d1ecf1;
    font-weight: bold;
    color: #155724;
    border-radius: 4px;
}

.inner-post-ads {
    width: 100%; 
    margin: 20px auto;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .inner-post-ads {
        max-width: 100%;
    }
}


.custom-date-selector {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(36, 33, 69, 0.1);
    text-align: center;
  }
  
  .custom-date-selector h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #242145;
  }
  
  .custom-date-selector form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .custom-date-selector select,
  .custom-date-selector input[type="number"] {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 30%;
    transition: border-color 0.3s ease;
  }
  
  .custom-date-selector select:focus,
  .custom-date-selector input[type="number"]:focus {
    border-color: #242145;
    outline: none;
  }
  
  .custom-date-selector button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #242145;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .custom-date-selector button:hover {
    background-color: #3a3478;
  }
  
  @media screen and (max-width: 480px) {
    .custom-date-selector form {
      flex-direction: column;
      gap: 10px;
    }
  
    .custom-date-selector select,
    .custom-date-selector input[type="number"],
    .custom-date-selector button {
      width: 100%;
    }
  }
  