html {
  scroll-behavior: smooth;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.7em;
  display: inline;
  font-weight: 600;
}

h3 {
  font-size: 1.4em;
  font-weight: 500;
}

h4 {
  font-size: 1.3em;
  display: inline;
  font-weight: 500;
}

hr {
  margin-top: 1ex;
}

body {
  height: 100%;
  padding-left: 0;
  padding-right: 0;
  font-family: 'Niramit', sans-serif !important;
}

.row {
  margin: 0% !important;
  width: auto !important;
}

.left {
  float: left;
  width: 12%;
}

.main {
  width: 70%;
  margin-bottom: 1em;
}

.right {
  float: right;
  width: 12%;
}

.menu {
  display: flex;
  overflow: hidden;
  padding-top: 1rem;
  padding-left: 10%;
  padding-right: 10%;
  justify-content: space-evenly;
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #DDA15E;
}

.menu a {
  padding: 0% 1%;
  font-weight: 700;
  font-size: 2.1em;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;


  --fill: #CC7528;
  -webkit-text-stroke: 1.5px var(--fill);
  background: linear-gradient(var(--fill) 0 100%) left/0 no-repeat;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  transition: 0.3s linear;
}

.menu a:hover {
  background-size: 100%;
}

.menu a.active {
  color: #CC7528;
  -webkit-text-stroke: none;
}

#themeSwitch {
  position: fixed;
  top: 1%;
  right: 1%;
}

#dark_theme,
#light_theme {
  background-color: transparent;
  border: none;
}

#dark_theme {
  display: none;
}

.navigation {
  position: fixed;
  top: 14%;
  right: 0;
  width: 150px;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0%);
}

.navigation.hidden {
  transform: translateX(100%);
}

.navigation ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.navigation ul li {
  text-align: right;
  padding: 3% 10%;
}

.navigation ul li a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5em;
}

.navigation ul li a:hover {
  color: #CC7528;
}

.navigation ul li a.current {
  color: #CC7528;
}

#navigationToggle {
  position: fixed;
  top: 50%;
  right: 1%;
  cursor: pointer;
  z-index: 1;
}

#navigationToggle svg {
  width: 24px;
  height: 24px;
  fill: #CC7528;
  transition: transform 0.3s ease-in-out;
}

#navigationToggle.collapsed svg {
  transform: rotate(180deg);
}

#author {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-self: center;
  padding-top: 3%;
  padding-bottom: 3%;
}

#author h1 {
  font-size: 2.5em;
  font-weight: 600;
}

#author h2 {
  font-size: 2em;
  font-weight: 500;
  display: block;
}

#index_thesis {
  padding-top: 2%;
  padding-bottom: 2%;
}

#index_thesis a {
  font-size: 1.2em;
  font-style: oblique;
  text-transform: uppercase;
}

#topic {
  text-align: center;
}

#topic_title {
  padding-top: 3%;
  padding-bottom: 2%;
  text-transform: uppercase;
  font-size: 3em;
  font-weight: 700;
}

#topic_name {
  padding-top: 3%;
  font-style: oblique;
  font-size: 2em;
}

#topic_description {
  padding-top: 3%;
  padding-bottom: 2%;
  font-size: 1.4em;
}

#topic_description h4 {
  font-size: 1.3em;
  display: inline;
  font-weight: 500;
}

.subsection {
  padding-top: 5%;
  padding-bottom: 5%;
}

.subsection h4 {
  display: block;
  text-align: center;
  font-size: 3em;
  font-weight: 700 !important;
}

.heading-section h1.big {
  position: absolute;
  top: 0px;
  left: 0;
  font-size: 4em;
  /* font-size: 6vw; */
  color: rgba(255, 135, 30, 0.144);
  z-index: -1;
  font-weight: 900;
}

.heading-section h1.big.big-2 {
  right: 0;
}

.subsection p,
ul,
li,
tbody {
  text-align: left;
}

.table thead th {
  border-bottom: 2px solid #DDA15E;
}

.table td,
.table th {
  border-top: 1px solid #DDA15E;
}

footer {
  bottom: 0px;
  width: 100%;
  height: 3.2em;
  font-style: oblique;
  text-align: center;
  padding-bottom: 5px;
}

.btn-outline-light {
  display: none;
  color: #CC7528;
  font-size: 1em !important;
  border-color: #DDA15E;
  border-width: 2px;

  position: fixed;

  bottom: 6%;
  right: 7%;
  width: 35px;
  height: 35px;
  border-radius: 15px;
}

.btn-outline-light:hover,
.btn-outline-light:active,
.btn-outline-light:visited {
  color: white !important;
  background-color: #CC7528 !important;
  border-color: #CC7528 !important;
}

#btn_arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 860px) {
  .menu {
    flex-direction: column;
  }

  .menu a {
    padding: 1% 0% !important;
  }
}

@media (max-width: 1200px) {
  p, tr, td, footer {
    font-size: 1.1rem !important;
  }

  .left,
  .right {
    width: 100%;
  }

  .main {
    width: 92% !important;
    margin-right: 4% !important;
    margin-left: 4% !important;
  }

  .order-md-1 {
    order: 2;
  }

  .order-md-2 {
    order: 1;
  }

  .navigation {
    transform: translateX(0%) !important;
    position: relative;
    height: auto;
    width: auto;
    margin: 0% !important;
    margin-bottom: 1rem !important;
  }

  .navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .navigation ul li {
    text-align: center;
    padding: 0% 1% !important;
  }

  #navigationToggle {
    display: none;
  }

  .hr-before-topic {
    display: block !important;
  }
}


.splide{
  max-width: 80%;
  margin: 0 auto;
}

.splide__arrow {
  background: transparent !important;
}

.splide__arrow svg{
  fill: #CC7528 !important;
}

.splide__pagination__page.is-active {
  background: #CC7528 !important;
}

/* Carousel Track and Slide Adjustments */
.splide__track {
  max-width: 85%;
  height: auto;
  padding: 10px;
  margin: 0 auto;
}

.splide__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splide__slide img {
  max-width: 95%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.splide__slide .description {
  font-size: 1rem;
  margin-top: 10px;
  margin-left: 2%;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column; 
}

.modal-content {
  display: block;
  width: 95%;
  max-width: 1200px;
  max-height: 80%; 
  object-fit: contain; 
}

/* Caption of Modal Image */
#caption {
  margin-top: 10px;
  display: block;
  width: 60%;
  max-width: 700px;
  text-align: center;
}

.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.2s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.02);
}
