body {
    font-family: Arial, sans-serif;
    margin: 40px;
    line-height: 1.6;
    color: #333;
}

h1,
h2 {
    color: #2c3e50;
}

h1 {
    font-size: 28px;
    margin-top: 5px;
    margin-bottom: 5px;
}

h2 {
    font-size: 20px;
    margin-top: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.contact,
.section {
    margin-bottom: 5px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.job-title {
    font-weight: bold;
    flex: 1 1 60%;
}

.job-company {
    font-style: italic;
}

ul {
    margin-top: 5px;
    padding-left: 20px;
}
.edu-entry{
    margin-bottom: 10px;
}
.edu-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0px;
}

.edu-degree {
  flex: 1 1 65%;
}
.edu-item {
  font-style: italic;
}


.date {
    text-align: right;
    flex: 1 1 35%;
    color: #555;
}

.skills-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px 1px;
}

.skills-table td {
    vertical-align: top;
    padding: 0px;
}

.skills-table td:first-child {
    font-weight: bold;
    white-space: nowrap;
    width: 20%;
}

/* Dark mode using media query */
@media (prefers-color-scheme: dark) {
  
  h1,h2 {
    color: #eee;
  }

  body {
    background-color: #121212;
    color: #eee;
  }

  a {
    color: #9ecbff;
  }

  .section, .edu-item, .skills-table {
    background-color: #1e1e1e;
    border-radius: 6px;
    padding: 12px;
  }
}

@media (max-width: 600px) {

    .skills-table,
    .skills-table tr,
    .skills-table td {
        display: block;
        width: 100%;
    }

    .skills-table td:first-child {
        margin-top: 5px;
        font-weight: bold;
    }

    .skills-table td:last-child {
        padding-bottom: 5px;
    }
    .section-header {
        flex-direction: column;
     }
    .date {
        text-align: left;
    }
    .edu-header {
        flex-direction: column;
    }

}