@import url("https://fonts.googleapis.com/css2?family=Preahvihear&display=swap");

/* Reset CSS */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Preahvihear", sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #042f2e;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto;
}

.title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.left,
.right {
  padding: 20px;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1.8;
  background-color: #042f2e;
  color: #d4d4d8;
  border-radius: 20px;
}

.header {
  width: 100%;
}

.header img {
  width: 100%;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 1.3rem;
  text-align: center;
  line-height: 1;
}

.header h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 100;
}

.header p {
  margin-bottom: 40px;
  /* text-align: center; */
  font-weight: 100;
  font-size: 15px;
}

.skill .skill-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 10px;
}

.skill .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f0f0f0;
  color: #042f2e;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
}

.skill .skill-item i {
  color: #042f2e;
  font-size: 40px;
}

.contact .contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f0f0f0;
  color: #042f2e;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
}

.right {
  flex: 2.5;
}

table .title-column {
  padding-right: 10px;
  font-weight: 600;
}

table .divider {
  padding: 0 5px;
}

.education-list {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 20px;
}

.education-item {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
}

.education-detail .description {
  font-size: 14px;
  margin-top: 5px;
}

.hobby-list {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 20px;
  max-width: 400px;
}

.hobby-item {
  display: grid;
  grid-template-columns: 0.7fr 4fr;
  gap: 10px;
  align-items: center;
}

.hobby-item i {
  color: #042f2e;
  font-size: 25px;
}

.skill,
.personal-data,
.experience,
.education,
.hobby,
.experience {
  margin-bottom: 30px;
}

/* gallery.html */

.container {
  max-width: 1000px;
  margin: 50px auto;
}

.container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 50px;
  margin-bottom: 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery-item p {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: medium;
}

.gallery-item a {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background-color: #042f2e;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }

  .left,
  .right {
    flex: 1;
    margin-bottom: 20px;
  }

  .left {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .contact {
    margin-bottom: 20px;
  }

  .skill .skill-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobby-list {
    max-width: 100%;
  }

  /* gallery.html */

  .container {
    margin: 20px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
