@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

:root {
  --color1: #ff6c2c;
  --color2: white;
  --main-border: 4px solid var(--color1);
}

html {
  min-height: 100vh;
  min-height: fill-available;
	min-height: -webkit-fill-available;
	/* Mozilla-based browsers will ignore this. */
	min-height: -moz-available;
	/* WebKit-based browsers will ignore this. */
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 100%;

  font-weight: bold;
  text-transform: uppercase;

  color: var(--color1);
  background-color: #efea45;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 12px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* cf> http://curry.cafe/  */

.app {
  flex-grow: 1;
  
  display:grid;
  grid-template-columns: 50px 1fr 50px;
  grid-template-rows: 50px 1fr 1fr 50px;
}

.cs-chat {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 5;
  color: var(--color2);
  background-color: var(--color1);
  border-radius: 8px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cs-chat .fa-comment {
  font-size: 20px;
}

.top-banner {
  grid-column: 1 / -1;
  grid-row: 1 / span 1;
}

.left-banner {
  grid-column: 1 / span 1;
  grid-row: 2 / -2;

  border: var(--main-border);
  border-top: none;
  border-bottom: none;

  display: flex;
  flex-direction: column;
}

.center-banner {
  grid-column: 2 / -2;
  grid-row: 2 / -2;

  background: transparent;

  display: flex;
  position: relative;
  content-type: inline-size;
}

.right-banner {
  grid-column: -2 / span 1;
  grid-row: 2 / -2;

  border: var(--main-border);
  border-top: none;
  border-bottom: none;

  background-color: #40ac49;

  display: grid;
  grid-auto-rows: minmax(0, 1fr);
}

.bottom-banner {
  grid-column: 1 / -1;
  grid-row: -2 / span 1;

  z-index: 1;
}

.top-banner,
.bottom-banner {
  border: var(--main-border);
  background-color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;

  content-type: inline-size;
  font-style: italic;
}

.top-banner p,
.bottom-banner p {
  white-space: nowrap;
  font-size: 1.2cqw;
}

.left-banner__top {
  writing-mode: vertical-rl;
  text-orientation: upright;

  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 20px 0;

  color: var(--color2);
  background-color: var(--color1);
}

/* The website's text is actually tilted (slanted) towards left */
.left-banner__top > span:nth-child(odd) {
  font-style: italic;
}

.left-banner__top,
.left-banner__center {
  border-bottom: var(--main-border);
}

.left-banner__center {
  flex-grow: 1;

  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;

  padding: 20px 0;
}

.left-banner__center > span:first-child {
  display: block;
  
  writing-mode: tb-rl;
  transform: rotate(-180deg);
  font-style: italic;
  
  white-space: nowrap;
  overflow: hidden;
}

.left-banner__center,
.left-banner__bottom {
  background-color: var(--color2);
}

.left-banner__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;

  padding: 10px 0;
}

.center-banner .center-banner__img {
  width: 50%;
}

.center-banner .center-banner__img > img {
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.center-banner__title {
  display: flex;
  flex-direction: column;
  color: var(--color2);
  font-size: 15cqw;
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* @media screen and (max-width: 670px) {
  .center-banner__title {
    font-size: 50px;
  }
}
 */
.right-banner__top,
.right-banner__bottom {
  color: var(--color2);
  writing-mode: vertical-rl;
  text-orientation: upright;

  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.right-banner__top > span:not(:first-child, :last-child),
.right-banner__bottom > span:not(:first-child, :last-child) {
  font-style: italic;
}

.right-banner__top {
  border-bottom: var(--main-border);
}
