@font-face {
  font-family: ATF;
  src: local("ATF"),
    url("../fonts/American-Typewriter-Font/american-typewriter-light.ttf")
      format("woff2");
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(+100%);
  }
}

section#MainNewsCenter div#SlideNews a#SlideLink img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

section#MainNewsCenter div#SlideNews a#SlideLink p span {
  position: absolute;
  animation: scroll-right 14s linear infinite;
}

section#MainNewsCenter div#SlideNews a#SlideLink p {
  display: none;
  height: 33px;
  width: 313px;
  text-wrap: nowrap;
  background-color: black;
  font-size: 110%;
  color: #fff;
  position: absolute;
  top: 22px;
  left: 22px;
  transform: translate(calc((cos(45deg) - 1) * 100%), -100%) rotate(-45deg);
  border: 1px red solid;
}

section#MainNewsCenter div#SlideNews a#SlideLink {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: block;
}

section#MainNewsCenter div#SlideNews div#SlideText a#MoreLink {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  width: 22%;
  background-color: var(--MainGreen);
  border-radius: 14px;
  text-decoration: none;
  position: absolute;
  top: 33px;
  left: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--MainBlue);
}

section#MainNewsCenter div#SlideNews div#SlideText strong.L2{
  font-size: 19px;
}

section#MainNewsCenter div#SlideNews div#SlideText strong.L1{
  font-size: 24px;
}

section#MainNewsCenter div#SlideNews div#SlideText {
  padding: 14px 0px;
  position: relative;
}

section#MainNewsCenter div#SlideNews {
  width: 66%;
}

section#MainNewsCenter div#TitrNews > h2 {
  font-size: 200%;
  padding: 8px 14px 4px 8px;
}

section#MainNewsCenter div#TitrNews a.NewsTitle:hover {
  background-image: linear-gradient(to left, var(--MainGreen), white);
}

section#MainNewsCenter div#TitrNews a.NewsTitle img {
  border-radius: 14px;
}

section#MainNewsCenter div#TitrNews a.NewsTitle div#NewsText h2 {
  color: black;
}

section#MainNewsCenter div#TitrNews a.NewsTitle div#NewsText h3 {
  color: var(--MainBlue);
}

section#MainNewsCenter div#TitrNews a.NewsTitle div#NewsText {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-right: 14px;
}

section#MainNewsCenter div#TitrNews a.NewsTitle {
  border-radius: 14px;
  background-image: linear-gradient(to right, var(--MainGreen), white);
  margin: 0px 14px 27px 14px;
  text-decoration: none;
  display: flex;
}

section#MainNewsCenter div#TitrNews a.NewsTitle:last-child {
  margin: 0px 14px 0px 14px;
}

section#MainNewsCenter div#TitrNews {
  width: 33%;
  min-width: 400px;
  position: relative;
  top: -57px;
}

section#MainNewsCenter {
  display: flex;
}

section#VideoIntroCenter video {
  border-radius: 14px;
  width: 33%;
}

section#VideoIntroCenter div div h1 {
  text-align: center;
}

section#VideoIntroCenter div div p#VideoIntro span {
  position: absolute;
  opacity: 0.33;
}

section#VideoIntroCenter div div p#VideoIntro {
  text-align: justify;
  min-height: 207px;
  position: relative;
}

section#VideoIntroCenter div div {
  width: 100%;
  position: relative;
  top: -4px;
}

section#VideoIntroCenter div {
  width: 66%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

section#VideoIntroCenter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

section#CollegeCenter a::after {
  position: absolute;
  content: attr(data-text);
  width: 100%;
  height: 100%;
  background-color: var(--MainGreen);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: max(2vw, 33px);
  color: var(--MainBlue);
  border-radius: 14px;
}

section#CollegeCenter a:hover span:nth-child(1) {
  color: white;
  width: 100%;
  text-align: center;
}

section#CollegeCenter a:hover::after {
  opacity: 0.66;
  transform: translateY(-44px);
}

section#CollegeCenter a:hover {
  color: var(--MainBlue);
}

section#CollegeCenter a span:nth-child(1) {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--MainYellow);
}

section#CollegeCenter a span:nth-child(2) {
  font-weight: bold;
  font-size: max(2vw, 33px);
}

section#CollegeCenter a {
  width: 22%;
  min-width: min(180px, 44vw);
  margin: 4px;
  aspect-ratio: 1 / 1;
  background-color: var(--MainBlue);
  border-radius: 14px;
  color: var(--MainGreen);
  text-decoration: none;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

section#CollegeCenter {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

section#RegisterCenter a:hover {
  background-color: var(--MainBlue);
  color: white;
  transform: scale(1.14);
  transform-origin: center;
}

section#RegisterCenter a span {
  font-size: 22px;
}

section#RegisterCenter a span:nth-child(3) {
  font-weight: 900;
}

section#RegisterCenter a {
  margin: 14px;
  flex-basis: min(313px, 100vw);
  width: 22%;
  aspect-ratio: 1.618 1;
  display: block;
  text-decoration: none;
  text-align: center;
  background-color: var(--MainYellow);
  border-radius: 14px;
}

section#RegisterCenter {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

section#EventsCenter h2 {
  text-align: center;
}

section#EventsCenter div#Events:has(a:hover) a:not(:hover) {
  filter: blur(4px);
  transform-origin: center;
  transform: rotate(2deg);
}

section#EventsCenter div#Events a.EventNews:hover {
  transform: scale(1.04);
}

section#EventsCenter div#Events a.EventNews img.EventImage {
  width: 100%;
  border-radius: 14px;
}

section#EventsCenter div#Events a.EventNews div img.EventDate {
  border-radius: 14px;
  width: 66px;
  height: 66px;
}

section#EventsCenter div#Events a.EventNews div div h3 {
  font-size: 96%;
}

section#EventsCenter div#Events a.EventNews div div p {
  font-size: 77%;
  text-align: justify;
}

section#EventsCenter div#Events a.EventNews div div {
  display: inline-block;
  position: absolute;
  top: 14%;
  right: 66px;
}

section#EventsCenter div#Events a.EventNews div {
  height: 66px;
  position: relative;
}

section#EventsCenter div#Events a.EventNews {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-basis: min(256px, 100vw);
  margin: 4px;
}

section#EventsCenter div#Events {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

section#EventsCenter {
  background-color: #65dbb5;
}

section#SystemsCenter div#EduDef a {
  width: 44%;
  display: block;
}

section#SystemsCenter div#EduDef {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 44%;
}

section#SystemsCenter div#Sys div#SysLinks ul li a:hover {
  background-image: linear-gradient(
    to left,
    var(--MainYellow),
    rgba(255, 255, 255, 0.33)
  );
  text-align: Center;
  transform: scale(1.14);
}

section#SystemsCenter div#Sys div#SysLinks ul li a {
  display: block;
  border-radius: 4px;
  text-decoration: none;
  background-image: linear-gradient(
    to right,
    var(--MainYellow),
    rgba(255, 255, 255, 0.33)
  );
}

section#SystemsCenter div#Sys div#SysLinks ul li {
  margin: 8px;
  padding: min(6px, 2vw);
  font-size: min(4vw, 150%);
}

section#SystemsCenter div#Sys div#SysLinks ul {
  list-style: none;
  width: 200px;
}

section#SystemsCenter div#Sys div#SysLinks {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
}

section#SystemsCenter div#Sys {
  width: 44%;
  display: block;
  position: relative;
  container: SysCon / inline-size;
}

section#SystemsCenter img {
  border-radius: 14px;
  width: 100%;
  display: block;
}

section#SystemsCenter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

section#CounterCenter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section#CounterCenter div.Flag {
  width: 20%;
  position: relative;
}

section#CounterCenter div.Flag div.IronR {
  width: 88%;
  margin: auto;
  background: var(--accent-color);
  background:var(--MainBlue);
  height: 72px;
  z-index: 1;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

section#CounterCenter div.Flag div.Iron {
  border-radius: 14px;
  position: absolute;
  top: 22px;
  width: 100%;
  height: 14px;
  background: grey;
  z-index: -1;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.4)
  );  
}

section#CounterCenter div.Flag div.Content {
  width: 88%;
  height: 202px;
  margin: auto;
  text-align: center;
  background:var(--MainYellow);

  clip-path: polygon(
    calc(2rem / -2 - 5px) 0,
    calc(100% + 2rem / 2 + 5px) 0,
    calc(100% + 2rem / 2 + 5px) calc(100% - 2rem),
    50% 100%,
    calc(2rem / -2 - 5px) calc(100% - 2rem)
  );
}

section#CounterCenter div.Flag div.Content img {
  border-radius: 14px;
  width: 44%;
  margin-top: 4px;
}

section#CounterCenter div.Flag div.Content .counter {
  font-size: 3.14vw;
  color:var(--MainBlue);
  font-family: ATF, monospace;
  font-weight: 800;
}

@media only screen and (max-width: 1226px) {
  section#MainNewsCenter div#TitrNews a.NewsTitle:last-child {
    display: none;
  }
}

@media only screen and (max-width: 1040px) {
  section#MainNewsCenter div#SlideNews div#SlideText a#MoreLink {
    font-size: 16px;
  }

  section#MainNewsCenter div#SlideNews div#SlideText {
    padding: 14px 4px;
  }

  section#MainNewsCenter div#SlideNews {
    width: 100%;
  }

  section#MainNewsCenter div#TitrNews a.NewsTitle {
    margin: 0px 14px 14px 14px;
  }

  section#MainNewsCenter div#TitrNews a.NewsTitle:last-child {
    display: flex;
  }

  section#MainNewsCenter div#TitrNews {
    width: 100%;
    position: initial;
  }

  section#MainNewsCenter {
    display: initial;
  }

  section#VideoIntroCenter video {
    width: 88%;
  }

  section#VideoIntroCenter div div p#VideoIntro {
    min-height: 414px;
  }

  section#VideoIntroCenter div {
    padding-top: 14px;
    width: 88%;
  }

  section#VideoIntroCenter {
    flex-direction: column;
    align-items: center;
  }

  section#SystemsCenter div#EduDef a {
    width: 44%;
  }

  section#SystemsCenter div#EduDef {
    width: 100%;
  }

  section#SystemsCenter div#Sys div#SysLinks ul li {
    padding: 4px;
  }

  section#SystemsCenter div#Sys {
    width: 100%;
  }

  section#SystemsCenter {
    flex-direction: column;
  }
  section#CounterCenter div.Flag div.IronR {
    height: 44px;
  }
  
}

@media only screen and (max-width: 768px) {
    section#CounterCenter div.Flag div.Content .counter {
        writing-mode: vertical-rl;
        text-orientation: mixed;  
        margin:auto;
        font-size:36px;
      }
}
