:root {
  --green: #54a05a;
  /* --green: #17631e; */

  --white: #eeeeee;
  --black: #000000;
}

* {
  color: var(--black);
}

html,
body {
  height: 100%;
  background-color: var(--green);
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
}

.container {
  position: relative;
  height: 60%;
  overflow: hidden;
  margin-top: 10px;
}

.container img {
  margin-bottom: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.content {
  margin-top: 10px;
  border-radius: 15px;
  background-color: var(--white);
  color: var(--green);
  padding: 20px 20px 20px 10px;
  text-align: center;
  height: 30%;
}

.content-flex {
  display: flex;
  justify-content: space-around;
  height: 100%;
}

.content-flex button {
  background-color: transparent;
  border-style: none;
  cursor: pointer;
  color: var(--black);
}

.content-flex button:hover {
  background-color: var(--green);
  border-radius: 25px;
}

.flex-container img {
  max-width: 50%;
  height: auto;
}

.flex-container div p {
  margin-top: 10px;
  font-size: 40px;
}

.content-detail {
  display: none;
  width: 100%;
  height: 100%;
}

.content-detail .paragraph {
  width: 59%;
}

.header {
  display: flex;
}

.content-detail .back {
  margin-right: auto;
  border: 3px solid var(--black);
  border-radius: 50%;
  height: 50px;
  width: 50px;
}

.content-detail .back:hover {
  background-color: var(--green);
}

.content-detail .text,
.content-detail .loginTable {
  display: none;
}

.text {
  display: inline;
  font-family: Arial, sans-serif;
  word-wrap: normal;
  white-space: wrap;
  text-align: start;
  min-width: 340;
  font-size: 20px;
}

.title {
  flex: 1;
  margin-top: 3px;
  font-size: 40px;
  font-weight: bold;
  text-decoration-thickness: 3px;
  text-decoration-line: underline;
  color: #17631e;
}

.text .undertitle {
  margin-top: -5px;
  color: #009d00;
}

.start {
  margin-top: -5px;
}

.paragraph {
  margin-bottom: 10px;
}

.paragraph .bold {
  font-weight: bold;
}

.paragraph.center {
  width: 100%;
  align-items: center;
  text-align: center;
}

.paragraph .link {
  color: blue;
}

.list {
  margin-bottom: -15px;
}

.content-images {
  max-width: 40%;
  float: right;
  margin-top: -10px;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
}

.gallery-images {
  max-width: 59%;
  max-height: 50%;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
}

.content-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid black;
}

.bigImg {
  float: left;
  margin: 2px;
}

.mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 250px;
  border-radius: 15px;
  border: 2px solid black;
}

.v-stretch {
  grid-row: span 2;
}

.h-stretch {
  grid-column: span 2;
}

.course table {
  align-items: start;
  display: inline-block;
  text-align: left;
  border: 2px solid black;
  border-collapse: collapse;
  border-radius: 15px;
  font-size: 20px;
  width: 600px;
}

.course button {
  background-color: transparent;
  padding: 5px 20% 5px 20%;
  cursor: pointer;
  font-size: 20px;
  background-color: var(--green);
  border-radius: 15px;
}

.course th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: var(--green);
  color: #eee;
}

.course th,
.course td {
  border: none;
  padding: 8px;
}

.course td:nth-child(1) {
  font-weight: bold;
  text-align: right;
}

.course .enroll-btn td,
.course th {
  text-align: center;
}

.course th:last-child {
  border-radius: 15px 15px 0 0 !important;
  -moz-border-radius: 0 15px 0 0 !important;
}

.course tr:last-child td:first-child {
  border-radius: 0 0 0 15px !important;
  -moz-border-radius: 0 0 0 15px !important;
}

.course tr:last-child td:last-child {
  border-radius: 0 0 15px 0 !important;
  -moz-border-radius: 0 0 15px 0 !important;
}

.course td:nth-child(2) {
  width: 100%;
}

.links {
  position: absolute;
  bottom: 7px;
  right: 0;
  margin-right: 15px;
}

.links a {
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
  cursor: pointer;
}

.appointments {
  border: 2px solid black;
  border-radius: 15px;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

.appointments tr,
.appointments th,
.appointments td {
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}

.appointments tr:last-child,
.appointments th:last-child,
.appointments td:last-child {
  border-right: 0;
}

.appointments th,
.appointments td {
  padding: 0.625em;
  text-align: center;
}

.appointments th {
  background-color: var(--green);
  color: #ffffff;
}

.appointments th:first-child {
  border-radius: 15px 0 0 0;
}

.appointments th:last-child {
  border-radius: 0 15px 0 0;
}

.appointments tr:last-child td:first-child {
  border-radius: 0 0 0 15px;
}

.appointments tr:last-child td:last-child {
  border-radius: 0 0 15px 0;
}

.appointments button {
  font-size: 18px;
  height: 40px;
  padding: 0.5em;
  background: var(--green);
  border: none;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.appointments button:hover {
  opacity: 0.9;
}

.appointments button:disabled {
  background: gray;
}

@media only screen and (max-width: 1343px) {
  .v-stretch {
    grid-row: span 1;
  }

  .h-stretch {
    grid-column: span 1;
  }
}

@media only screen and (max-width: 820px) {
  .flex-container div p {
    font-size: 35px;
  }
}

@media only screen and (max-width: 780px) {
  .flex-container div p {
    font-size: 30px;
  }

  .appointments tr,
  .appointments th,
  .appointments td {
    border: 0;
  }

  .appointments {
    border: 0;
    font-size: 20px;
  }

  .appointments thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .appointments tr {
    border: 3px solid #ddd;
    border-radius: 5px;
    display: block;
    margin-bottom: 0.5em;
  }

  .appointments td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 0.8em;
    text-align: right;
  }

  .appointments td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
  }

  .appointments td:last-child {
    border-bottom: 0;
  }
}

@media only screen and (max-width: 680px) {
  .flex-container div p {
    font-size: 25px;
  }
}

@media only screen and (min-width: 601px) {
  .mobile {
    display: none !important;
  }
}

@media only screen and (max-width: 600px) {
  .desktop {
    display: none !important;
  }

  .container {
    margin-top: 0;
    height: 44%;
  }

  .content {
    height: 44%;
  }

  .content-img {
    margin-left: 5px;
    width: 200px;
  }

  .content-flex button {
    width: 8vh;
  }

  .content-flex {
    flex-direction: column;
  }

  .content-flex img {
    max-width: none;
    width: 150%;
    height: 150%;
  }

  .flex-container {
    display: flex;
  }

  .content-detail .back {
    height: 40px;
    width: 40px;
  }

  .flex-container div p {
    display: flex;
    align-items: start;
    margin-top: 0;
    height: 100%;
    width: 100%;
    font-size: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .content-detail .paragraph {
    width: 100%;
  }

  .course table {
    width: 100%;
  }
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 20px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  text-align: justify;
}

.popup.active {
  display: block;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

.popup .close-btn {
  background-color: red;
  color: white;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  float: right;
  text-align: center;
}

.detail {
  text-align: center;
  font-size: 25px;
}

.detail_title {
  font-size: 22px;
}

.details_container {
  font-size: 18px;
}

.details_table {
  width: 100%;
}

.details_title {
  width: 20%;
}

.details_value {
  padding-left: 20px;
  text-align: left;
}

.newLine {
  display: block;
}