:root {
  --main-bg-color: #1b212f;
  --main-fg-color: #ffffff;
  --pop-color-1: #f8b800;
  --pop-color-2: #112a62;
  --pop-color-3: #eed3c5;
  color: white;
}

body, html{
  height: 100%;
  overflow: hidden;
  background-color: var(--main-bg-color);
}
.container_left{grid-area: xleft;}
.container_right{grid-area: xright;}
.container_bottom{grid-area: xbot;}
.tcontainer{grid-area: ticker;}
.about {grid-area: xabout;}
.container {
  margin: 0rem 1rem 1rem 0rem;
  height: 100%;
  display: grid;
  grid-template-rows: 0.2fr 1fr 1fr 0.15fr;
  grid-template-columns: 25% auto;
  grid-template-areas:
  "ticker ticker"
  "xleft xright"
  "xleft xbot"
  "xabout xabout";
}

.container_left{
  display: grid;
  grid-template-rows: 1fr 1fr;
  font-size: 1.2rem;
}
.header {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  background-color: var(--pop-color-1);
  color: var(--main-bg-color);
  padding: 1rem;
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 700;
}
.trial {
  background-color: none;
}

.container_right{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.container_bottom{
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  font-size: 2rem;
  background-color: var(--main-fg-color);
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 500;
  color: var(--main-bg-color);
}

.about {
  display: flex;
  padding: 1rem;
  font-size: 2rem;
  background-color: var(--pop-color-1);
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--main-bg-color);
}

.homebutton{
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 500;
  background-color: transparent;
  padding: 1em;
  width: 100%;
  height: 100%;
  border: none;
  color: var(--main-fg-color);
  font-size: 1.5rem;
  white-space: nowrap;
}

.homebutton:hover{
  background-color: var(--pop-color-1);
  transition: 1s;
  cursor: pointer;
}

@media screen and (max-width: 1100px) {
  body, html{
    overflow: scroll;
  }
  .nestbox1 { grid-area: n1; width :  100%;}
  .nestbox2 { grid-area: n2;}
  .nestbox3 { grid-area: n3;}
  .nestbox4 { grid-area: n4;}
  .nestbox5 { grid-area: n5;}

  .container {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 38.2% auto;
    grid-template-areas:
    "xleft xright"
    "xbot xright"
    "xbot xbot"
    "xabout xabout";
  }
  .container_left {
    grid-template-rows: 1fr 1fr;
    font-size: 28px;
  }
  .container_right{
    display: grid;
    grid-template-areas:
    "n1 n1 n1 n1 n1"
    "n2 n2 n2 n2 n2"
    "n3 n3 n3 n3 n3"
    "n4 n4 n4 n4 n4"
    "n5 n5 n5 n5 n5";
  }
  .container_bottom{
    display: grid;
  }
  .homebutton{
    height: 100%;
    font-size: 2.1rem;
  }
}


/* OUTER CONTAINER */
.tcontainer {
  width: 100%;
  height: 24px;
  overflow: hidden; /* Hide scroll bar */
}

/* MIDDLE CONTAINER */
.ticker-wrap {
  width: 100%;
  padding-left: 100%; /* Push contents to right side of screen */
  background-color: red;
}

/* INNER CONTAINER */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-move {
  /* Basically move items from right side of screen to left in infinite loop */
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-name: ticker;
  animation-duration: 20s;
}
.ticker-move:hover{
  animation-play-state: paused; /* Pause scroll on mouse hover */
}

/* ITEMS */
.ticker-item{
  display: inline-block; /* Lay items in a horizontal line */
  padding: 0 2rem;
  height: 30px;
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 700;
}
