.mobile-nav {
  display: none;
}

.mobile-page-header {
  display: none;
}

.mobile-content-frame {
  display: none;
}

.mobile-nav button {
  -webkit-appearance: none;
  appearance: none;
}

.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 3px solid #1f5a96;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.cookie-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-banner-text {
  color: #222222;
  font-size: 15px;
  line-height: 1.4;
}

.cookie-banner-text a {
  color: #1f5a96;
  font-weight: bold;
  text-decoration: underline;
}

.cookie-banner-button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: #1f5a96;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 88px;
}

.privacy-footer {
  padding: 18px 12px 28px 12px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.privacy-footer-inline {
  padding: 2px 12px 0 12px;
}

.privacy-footer a {
  color: #0000ff;
  font-size: 12px;
  font-weight: bold;
  text-decoration: underline;
}

.privacy-footer-link-inline {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px !important;
}

@media (max-width: 768px) {
  html,
  body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-image: none;
  }

  center,
  div[align="center"] {
    display: block;
    width: 100%;
  }

  .page-layout,
  .content-box,
  .footer-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .page-layout > tbody > tr > td,
  .footer-table > tbody > tr > td {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .old-side-menu {
    display: none !important;
  }

  .mobile-nav {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #1f5a96;
    color: #ffffff;
    padding: 0;
    margin: 0 0 12px 0;
    font-family: Arial, Helvetica, sans-serif;
  }

  .mobile-page-header {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 8px 8px 8px;
    text-align: center;
  }

  .mobile-page-header-label {
    padding-top: 4px;
  }

  .mobile-page-header-label img {
    max-width: 122px !important;
    width: auto !important;
  }

  .mobile-page-header-logo {
    padding: 8px 0 6px 0;
  }

  .mobile-page-header-logo img {
    max-width: 120px !important;
    width: auto !important;
  }

  .mobile-page-header-banner img {
    width: 100% !important;
    max-width: 550px !important;
    height: auto !important;
  }

  .mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
  }

  .mobile-nav-bar:focus,
  .mobile-nav-bar:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
  }

  .mobile-nav-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
  }

  .mobile-nav-toggle {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    margin: 0;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .mobile-nav-links {
    display: none;
    background: #7363b5;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-links a {
    display: block;
    padding: 11px 14px;
    color: #ffffff;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    line-height: 1.3;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus,
  .mobile-nav-links a[aria-current="page"] {
    background: #5e50a6;
  }

  .mobile-nav-links.open {
    display: block;
  }

  .main-content-cell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    box-sizing: border-box;
  }

  .main-content-cell > table {
    display: none !important;
  }

  .main-content-cell > .mobile-content-frame {
    display: block !important;
  }

  .content-box td {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  img[src="spacer.gif"] {
    max-width: none !important;
  }

  img[src="spacer.gif"][width="40"],
  img[src="spacer.gif"][width="200"],
  img[src="spacer.gif"][width="114"],
  img[src="spacer.gif"][width="19"] {
    display: none !important;
  }

  img[width="550"],
  img[width="800"],
  img[width="770"] {
    width: 100% !important;
    height: auto !important;
  }

  td[width="530"],
  td[width="300"],
  td[width="250"],
  td[width="200"] {
    width: auto !important;
  }

  p,
  td,
  font,
  span,
  a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
  }

  p[align="justify"] {
    text-align: left !important;
    line-height: 1.45 !important;
  }

  .content-box p,
  .content-box td,
  .content-box font,
  .content-box span,
  .content-box a {
    font-size: 16px;
    max-width: 100%;
  }

  .content-box .ptitle {
    display: inline-block;
    font-size: 19px;
    line-height: 1.25;
    text-align: center;
  }

  #contentFrame {
    display: none !important;
  }

  .mobile-content-frame {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 0 20px 0;
    background: transparent;
    border-collapse: separate !important;
  }

  .mobile-content-frame:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background:
      url("table_first/corn_lu.gif") left top / 20px 20px no-repeat,
      url("table_first/corn_ru.gif") right top / 20px 20px no-repeat,
      linear-gradient(#008080, #008080) center top / calc(100% - 40px) 2px no-repeat,
      linear-gradient(#d6ffd6, #d6ffd6) center bottom / calc(100% - 40px) 18px no-repeat;
    pointer-events: none;
  }

  .mobile-content-frame:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    background:
      url("table_first/corn_ld.gif") left bottom / 20px 20px no-repeat,
      url("table_first/corn_rd.gif") right bottom / 20px 20px no-repeat,
      linear-gradient(#d6ffd6, #d6ffd6) center top / calc(100% - 40px) 18px no-repeat,
      linear-gradient(#008080, #008080) center bottom / calc(100% - 40px) 2px no-repeat;
    pointer-events: none;
  }

  .mobile-content-title,
  .mobile-content-body {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    background:
      linear-gradient(
        to right,
        #008080 0,
        #008080 2px,
        #d6ffd6 2px,
        #d6ffd6 20px,
        transparent 20px,
        transparent calc(100% - 20px),
        #d6ffd6 calc(100% - 20px),
        #d6ffd6 calc(100% - 3px),
        #008080 calc(100% - 3px),
        #008080 100%
      );
  }

  .mobile-content-title {
    padding: 0;
  }

  .mobile-content-title-inner,
  .mobile-content-body-inner {
    display: block;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    margin: 0 20px;
  }

  .mobile-content-body {
    padding: 0 0 20px 0;
    overflow: visible;
    text-align: left;
  }

  .mobile-content-title-inner {
    background: #ffffff;
    padding: 0 10px 8px 10px;
  }

  .mobile-content-title-inner p {
    margin: 0 !important;
  }

  .mobile-content-body-inner {
    background: #cfcfcf;
    padding: 0;
  }

  .mobile-content-body,
  .mobile-content-body td,
  .mobile-content-body p,
  .mobile-content-body font,
  .mobile-content-body span,
  .mobile-content-body a {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .mobile-content-body .myMenu2 {
    color: #000080 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    line-height: 1.35 !important;
  }

  body[data-page="util"] .mobile-content-body .myMenu2 {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .mobile-content-body .myMenu,
  .mobile-content-body .myRef {
    font-size: inherit !important;
  }

  .mobile-content-title,
  .mobile-content-title td,
  .mobile-content-title span {
    font-size: 19px !important;
    line-height: 1.25 !important;
  }

  .mobile-content-body td,
  .mobile-content-body table,
  .mobile-content-body img,
  .mobile-content-body p,
  .mobile-content-body font,
  .mobile-content-body span,
  .mobile-content-body a,
  .mobile-content-title-inner,
  .mobile-content-body-inner {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-content-body *,
  .mobile-content-title * {
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
  }

  .mobile-content-body p[align="justify"] {
    text-align: left !important;
  }

  .mobile-content-body-inner > :first-child,
  .mobile-content-body-inner p:first-child {
    margin-top: 0 !important;
  }

  .mobile-content-body table,
  .mobile-content-body tbody,
  .mobile-content-body tr,
  .mobile-content-body td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body[data-page="pace4"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr,
  body[data-page="etacha"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr,
  body[data-page="gemini"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr,
  body[data-page="topics"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body[data-page="pace4"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child,
  body[data-page="etacha"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child,
  body[data-page="gemini"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child,
  body[data-page="topics"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child {
    flex: 0 0 18px !important;
    width: 18px !important;
    max-width: 18px !important;
    padding-right: 4px !important;
  }

  body[data-page="pace4"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child:last-child,
  body[data-page="etacha"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child:last-child,
  body[data-page="gemini"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child:last-child,
  body[data-page="topics"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td:first-child:last-child {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }

  body[data-page="pace4"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td + td,
  body[data-page="etacha"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td + td,
  body[data-page="gemini"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td + td,
  body[data-page="topics"] .mobile-content-body table[cellpadding="3"][cellspacing="3"] tr > td + td {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 18px) !important;
  }

  body[data-page="moter"] .mobile-content-body-inner > p:first-of-type {
    margin-top: 0 !important;
  }

  body[data-page="register"] .mobile-content-body form {
    margin: 0 !important;
  }

  body[data-page="register"] .mobile-content-body input[type="text"],
  body[data-page="register"] .mobile-content-body input[type="email"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
    margin: 4px 0 0 0 !important;
  }

  body[data-page="register"] .mobile-content-body input[type="submit"] {
    width: auto !important;
    min-height: 44px !important;
    padding: 8px 16px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin-top: 8px !important;
  }

  body[data-page="register"] .mobile-content-body .g-recaptcha {
    margin: 12px 0 8px 0 !important;
    transform-origin: left top !important;
  }

  body[data-page="register"] .mobile-content-body .g-recaptcha > div {
    max-width: 100% !important;
  }

  .footer-table {
    background-image: none !important;
  }

  .privacy-footer a {
    font-size: 12px;
  }

  .cookie-banner-inner {
    display: block;
  }

  .cookie-banner-button {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
}
