@font-face {
    font-family: "Noto Sans";
    src: url(../fonts/NotoSans-Regular.ttf);
    font-weight: 400;
  }

  @font-face {
    font-family: "Noto Sans";
    src: url(../fonts/NotoSans-Bold.ttf);
    font-weight: 700;
  }

  @font-face {
    font-family: "Noto Sans";
    src: url(../fonts/NotoSans-SemiBold.ttf);
    font-weight: 600;
  }

  @font-face {
    font-family: "Noto Sans TC";
    src: url(../fonts/NotoSansTC-Regular.ttf);
    font-weight: 400;
  }

  @font-face {
    font-family: "Noto Sans TC";
    src: url(../fonts/NotoSansTC-Bold.ttf);
    font-weight: 700;
  }

  @font-face {
    font-family: "Noto Sans TC";
    src: url(../fonts/NotoSansTC-SemiBold.ttf);
    font-weight: 600;
  }

  @font-face {
    font-family: "Noto Sans SC";
    src: url(../fonts/NotoSansSC-Regular.ttf);
    font-weight: 400;
  }

  @font-face {
    font-family: "Noto Sans SC";
    src: url(../fonts/NotoSansSC-Bold.ttf);
    font-weight: 700;
  }

  @font-face {
    font-family: "Noto Sans SC";
    src: url(../fonts/NotoSansSC-SemiBold.ttf);
    font-weight: 600;
  }

  :root {
    --color-purple-8: #fbf8ff;
    --color-purple-4: #87469c;
    --natural-black: #383838;
    --natural-gray: #d9d9d9;
    --blue-2: #67729d;
    --purple-dark: #6009bc;
  }

  /* Webkit browsers (Chrome, Safari, newer versions of Edge) */
  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: "Noto Sans SC", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--natural-black);
  }

  a {
    text-decoration: none;
    color: var(--natural-black);
  }

  /* header styles */
  header {
    font-size: 16px;
    /* background-color: var(--color-purple-8); */
    box-shadow: 12px 0px 24px 0px rgba(45, 45, 45, 0.1);
    /* padding: 20px 30px; */
  }

  .hide {
    display: none !important;
  }

  .h-l {
    padding: 20px 30px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .h-l img {
    height: 50px;
  }

  .h-l > img {
    margin-right: 24px;
  }

  .h-l > div > img:first-child {
    margin-right: 24px;
  }

  .h-r {
    background: #fafafb;
    display: flex;
    justify-content: flex-end;
    padding: 16px 30px;
  }

  .h-r nav a img {
    display: none;
  }

  .h-r .active {
    color: var(--purple-dark);
    font-weight: 700;
    cursor: default;
  }

  .h-r .lang {
    display: inline-block;
    padding-left: 16px;
    border-left: 2px solid var(--natural-gray);
  }

  .h-r .lang .options {
    display: inline;
  }

  .options a {
    cursor: pointer;
  }

  .h-r .lang a:last-child {
    margin-right: 0;
  }

  .h-r a {
    /* margin-right: 20px; */
    display: inline-flex;
    align-items: center;
  }

  .h-r a:hover {
    text-shadow: 0px 0px 10px rgba(45, 45, 45, 0.2);
  }

  #play-icon {
    width: 16px;
    height: auto;
    margin-left: 3px;
  }

  .toggle-menu {
    display: none;
  }

  .toggle-menu img {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease-in-out;
  }

  .rotate-in {
    transform: rotate(0deg);
  }

  .rotate-out {
    transform: rotate(180deg);
  }

  .h-r nav > a,
  .h-r nav > div {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
  }

  .lang a {
    margin-right: 20px;
  }

  img#women-comission-logo {
    margin-right: 15px;
  }

  img#home-and-youth-logo {
    margin-right: 15px;
  }

  #closeSubMenu {
    display: none;
  }

  #toggle-dropdown {
    display: flex;
    align-items: center;
    color: var(--natural-black);
    cursor: default;
  }

  .dropdown-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
  }

  /* Dropdown container */
  #nav-participate-h {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Dropdown content (hidden by default) */
  #nav-participate-h .dropdown-content {
    display: none;
    position: absolute;
    top: 20px;
    background-color: #f9f9f9;
    /* min-width: 160px; */
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding-top: 3px;
    border-top: 2px solid var(--natural-black);
  }

  /* Links inside the dropdown */
  #nav-participate-h .dropdown-content a {
    min-width: max-content;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
  }

  /* Change color of dropdown links on hover */
  #nav-participate-h .dropdown-content a:hover {
    background-color: #f1f1f1;
  }

  .d-none{
    display:none;
  }
  
  .d-block{
    display: block;
  }
  
  .d-flex{
    display:flex;
  }

  /* Show the dropdown menu on hover */
  @media (min-width: 1000px) {
    #nav-participate-h:hover .dropdown-content {
      display: block;
    }

    #nav-participate-h:hover .dropdown-icon {
      transform: rotate(180deg);
    }
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 1300px) {
    header {
      font-size: 15px;
    }
  }

  @media (max-width: 1250px) {
    header {
      display: block;
      padding: 0;
      background-color: #fff;

      box-shadow: none;
    }
  }

  @media (max-width: 1000px) {
    .flex-animation {
      display: flex !important;
      animation: slideIn 0.5s ease-out;
      background-image: url(../img/bg.png);
    }

    .h-r {
      flex-direction: column-reverse;
      padding: 0;
    }

    .h-r nav {
      display: none;
      flex-direction: column;
      padding: 10px 30px;
      background: #fff;
    }

    .h-r .lang {
      border: none;
      font-size: 18px;
    }

    .h-r nav a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0;
      padding: 15px 0;
      border-bottom: 1px solid var(--natural-gray);
      width: 100% !important;
    }

    .h-r nav > div {
      border-bottom: 1px solid var(--natural-gray);
      margin-right: 0;
    }

    .h-r nav > div {
      padding: 15px 0;
    }

    #nav-participate-h .dropdown-content {
      width: 100%;
      top: 50px;
    }

    /* .h-r nav a img {
            display: block;
            width: 20px;
            height: auto;
        } */

    .h-r nav a:last-child {
      border: none;
    }

    .h-r .lang a:first-child {
      margin-left: 0;
    }

    .h-r .lang a:hover {
      text-shadow: none;
    }

    .toggle-group {
      display: flex;
      justify-content: flex-end;
      padding: 16px 30px;
    }

    .toggle-menu {
      display: flex;
      align-items: center;
      margin-left: 24px;
    }

    .toggle-menu > img {
      cursor: pointer;
    }

    #nav-participate-h {
      display: block;
    }

    #nav-participate-h .dropdown-content.show {
      display: block !important;
    }

    #nav-participate-h .dropdown-content {
      position: static;
      border: none;
      box-shadow: none;
      background-color: #fff;
    }

    #nav-participate-h .dropdown-content a {
      border: none;
      padding: 15px 0 0 15px;
    }

    #toggle-dropdown {
      justify-content: space-between;
      cursor: pointer;
    }

    #nav-participate-h .dropdown-content a:hover {
      background-color: unset;
    }

    .rotate {
      transform: rotate(180deg);
    }
  }

  @media (max-width: 920px) {
    .h-l {
      padding: 20px 20px 16px;
    }
  }

  @media (max-width: 800px) {
    .h-l {
      display: block;
    }

    .h-l > div {
      margin-top: 15px;
    }

    .h-r nav {
      padding: 10px 20px;
    }

    .h-l img {
      height: 40px;
    }
  }

  @media (max-width: 600px) {
    .h-l img {
      height: 30px;
    }
  }

  /* content styles */
  .theme-bg-color {
    background: linear-gradient(90deg, #e0dffe 14.58%, #efe0fd 85.57%);
  }

  .theme {
    position: relative;
    background-image: url(../img/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: bottom;
    padding-bottom: 20vw;
  }

  .theme-box {
    max-width: 960px;
    margin: auto;
    padding: 40px 30px;
  }

  .theme-box > picture > img {
    width: 100%;
    display: block;
  }

  .content {
    padding: 20px 30px 60px;
    max-width: 1400px;
    margin: auto;
  }

  h1 {
    font-size: 32px;
    background: linear-gradient(
      90deg,
      #8f4fd8 0%,
      #a050cd 15%,
      #ff5995 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
  }

  h2 {
    font-size: 24px;
    color: var(--color-purple-4);
  }

  .i-row {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--natural-gray);
  }

  .i-row:last-child {
    border: none;
  }

  hr {
    margin: 40px 0 20px;
    border-top: 1px solid var(--natural-gray);
  }

  ol {
    padding: 0 20px;
    margin: 0;
    line-height: 1.5em;
  }

  .notice {
    margin-top: 40px;
  }

  @media (max-width: 1440px) {
  }

  @media (max-width: 1250px) {
    h1 {
      font-size: 24px;
    }

    h2 {
      font-size: 20px;
    }
  }

  @media (max-width: 920px) {
    .content {
      padding: 20px 20px 60px;
    }

    h1 {
      font-size: 22px;
    }

    h2 {
      font-size: 18px;
    }
  }

  @media (max-width: 600px) {
    .theme {
      background-image: url(../img/mobile-banner.jpg);
      background-size: cover;
      padding-bottom: 43vw;
    }

    .theme-box {
      padding: 30px 20px 20px;
    }

    .content {
      padding: 10px 15px 40px;
    }

    .i-row {
      flex-direction: column;
      padding: 15px 0;
    }
  }

  /* footer styles */
  #scrollToTopBtn {
    display: none;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--purple-dark);
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
  }

  #scrollToTopBtn:hover {
    opacity: 0.9;
  }

  .f-nav {
    padding: 40px 0;
  }

  .f-nav picture {
    width: 45%;
  }

  .f-nav picture img {
    width: 100%;
  }

  .f-nav-right {
    width: 45%;
  }

  .f-nav-right a:first-child {
    padding-top: 0;
  }

  .f-nav-right a:last-child {
    padding-bottom: 0;
    border: none;
  }

  .f-nav-right a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--natural-gray);
  }

  .f-nav-right a img {
    width: 20px;
    height: 20px;
  }

  .f-nav-right a span {
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    color: var(--natural-black);
  }

  footer {
    background-color: var(--blue-2);
    padding: 20px 30px 80px;
  }

  footer a {
    color: #fff;
  }

  .f-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
  }

  .f-top img {
    margin-left: 20px;
  }

  .f-bottom {
    font-size: 15px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
  }

  .f-bottom-left a:nth-child(2) {
    margin: 0 20px;
  }

  .f-bottom-right {
    text-align: right;
  }

  @media (max-width: 1400px) {
    .f-nav-right a span {
      font-size: 16px;
    }

    .f-nav-right a {
      padding: 10px 0;
    }
  }

  @media (max-width: 920px) {
    .f-nav {
      padding: 30px 20px;
    }

    footer {
      padding: 20px 20px 40px;
    }

    .theme-text {
      width: 250px;
    }

    .f-nav-right {
      width: 50%;
    }

    .f-nav-right a span {
      font-size: 15px;
    }

    .f-bottom {
      font-size: 14px;
    }
  }

  @media (max-width: 650px) {
    .f-bottom {
      display: block;
    }

    .f-bottom-left {
      margin-bottom: 20px;
    }
  }

  @media (max-width: 600px) {
    .f-nav {
      display: block;
    }

    .f-nav-right {
      width: 100%;
      margin-top: 40px;
    }

    .f-bottom-left {
      display: flex;
      justify-content: space-between;
    }
  }