/*  GENERAL STYLES */

/* GENERAL COLOR: 
-          #CD3E3E
-          #038948
-          #99E390
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

p {
  line-height: 1.2;
}

span {
  font-size: 13px;
  font-style: italic;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.container {
/*   width: 80%; */
  max-width: 1200px;
  margin: 0 auto;
 /*  padding: 20px; */
}

.hr {
  width: 100%;
}

.section-middle {
  width: 100%;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* MAIN STYLES */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-grow: 1;
  padding: 20px 0;
  position: relative;
}
main::before {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(./assets/tatai-var.jpg);
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
} 
main::-webkit-before {
  background: url(./assets/tatai-var.jpg);
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
}
main h3 {
  text-align: center;
  padding-bottom: 16px;
}
main .single-img-container {
  margin: 0 auto;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;

  .about-btn {
    width: 100px;
  }
}
main .single-img-container img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 1px 2px 4px #777;

  &&:hover {
    transition: transform 0.3s ease-in-out;
    transform: scale(1.2);
  }
}
.section {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  
  #downloadButton {
    background-color: #038948;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
  }
}

.section h2 {
  margin-bottom: 10px;
}

.section .main-img {
  width: 100px;
  height: 150px;
}
.text-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-container .text-img {
  flex-shrink: 0;
}
.text {
  padding-top: 16px;
  flex-grow: 1;
  line-height: 1.4;
  font-size: 16px;
  font-weight: 400;
  text-align: justify;
}

/* FOOTER STYLES */

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
}

.footer {
  padding: 20px;
}

/* HEADER STYLES */

h2 {
  vertical-align: center;
  text-align: center;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #038948;
  color: #fff;
  height: 80px;
  padding: 0 0.8em 0 0.4em;
}
.top-nav .logo-wrapper {
  display: flex;
  align-items: center;
}

.top-nav .logo-wrapper h3 {
  color: #fff;
}
.top-nav .logo {
  width: 80px;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 0.4rem;
  overflow: hidden;
}

.menu > li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    z-index: 11;
    position: absolute;
    top: 0;
    margin-top: 80px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #333;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
  .menu > li a {
    color: #fff;
    text-decoration: none;
  }
}

/*  cula */

.image-container {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;

  >div {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    justify-content: space-between;
    align-items: center;
  }

  img {
    box-shadow: 1px 2px 4px #777;
    border-radius: 8px;
  }
}

.image-container img:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

@media (max-width: 500px) {
  .image-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.image-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.about-btn {
  width: 65%;
  color: #fff;
  background-color: #038948;
  border-radius: 10px;
  border: none;
  box-shadow: 1px 4px 5px;
  padding: 4px 8px;
}

.dialog {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.dialog-content {
  display: flex;
  flex-direction: column;
/*   gap: 16px; */
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 8px;

  em {
    font-weight: 600;
  }
}
.dialog-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-header {
  padding-left: 16px;
}
.dialog-text {
  line-height: 1.4;
  font-size: 16px;
  padding: 16px 16px 0 16px;
  text-align: justify;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
/*  TABLE STYLES */

table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f2f2f2;
}


/* FORM STYLES */

.formcarry-container * {
  box-sizing: border-box;
	font-family: "Inter", sans-serif;

  /* colors */
  --color-blue: #2552d0;
  --color-light-blue: #3266e3;
  --color-gray: #e5e7eb;
  --color-dark-gray: #9da3ae;
  --color-pink: #cd3e3e;
  --color-light-green: #239711;
}

.formcarry-container {
  --c-width: 100%;
  --c-max-width: 500px;

  width: var(--c-width);
  max-width: var(--c-max-width);
  display: block;
  margin: 0 auto 0 auto;
}

.formcarry-form label {
  display: block;
  padding: 12px 0 2px 0;
  letter-spacing: -0.2px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.formcarry-form input,
.formcarry-form textarea {
  font-size: 16px;
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--color-gray);
  border: none;
  border: 4px solid var(--color-gray);
  outline: none;
  border-radius: 8px;
}

.formcarry-form input:focus,
.formcarry-form textarea:focus {
  background-color: #fff;
}

.formcarry-form input:focus:required:invalid {
  border-color: var(--color-pink);
  background-color: #fff;
}

.formcarry-form button {
  display: block;
  margin-top: 12px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
	border-color: transparent;
  background-color: #038948;
  color: #fff;
  font-weight: 700;
  font-size: 18px;

  transition: 300ms all;
}

.formcarry-form button:hover {
  background-color: var(--color-light-green);
}

.formcarry-alert {
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
  display: none;
}

.formcarry-alert.visible {
  display: block;
}

.formcarry-alert.success {
  background: #69cf9d;
}

.formcarry-alert.error {
  background: #de524c;
}

#sendButton:disabled {
  background-color: #ccc; 
}

/* PROGRAM STYLES */

.program-header {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.program-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

}
.program-logo {
  max-width: 120px !important;
}

&&.program-logo-webkit {
  width: 120px;
}
@media screen and (max-width: 415px) {
  .program-header-wrapper {
    flex-direction: column;

    && > div {
      margin-top: -30px;
    }
  }
}

.program-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: justify;
}
.nominees {
  margin-top: -40px;
  ul {
    li {
      list-style-type: none;
      padding-bottom: 4px;
    }
  }
}

.contents {
  padding-bottom: 16px;
  ul {
    li {
      padding-bottom: 8px;
      list-style-type: none;
    }
  }
}

.main-text-wrapper {
  p {
    padding-bottom: 6px;
  }
  span {
    font-size: 15px;
    font-weight: 500;
  }
}

.program-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: justify;
  border-bottom: 1px solid #777;

  &&:last-of-type {
    border-bottom: none;
  }
}
.showMoreBtn {
  width: 80px;
  color: #fff;
  background-color: #038948;
  -webkit-background-color: #038948;
  border: 1px solid #777;
  box-shadow: 1px 2px 4px #777;
  padding: 4px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}

.more-content {
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  opacity: 0;
  transition: height 0.5s ease, opacity 0.5s ease;

  ul {
    li {
      padding-bottom: 4px;
    }
  }
}
.show {
  height: auto;
  opacity: 1;
}
