@font-face {
  font-family: PaperMario; 
  src: url(assets/fonts/paperMario.ttf);
}

@font-face {
  font-family: Deltarune; 
  src: url(assets/fonts/deltarune.woff2);
}

body {
  background-color: #000000;
  font-family: Deltarune;
  /*background-image: url(assets/img/sancline.png);*/
  background-repeat: repeat;
  overflow: hidden;
}

.gridParent {
    /*height: 670px;*/
    height: 62%;
    width: 100%;
    margin-top: 87px;
    margin-left: 200px;
}

.channelGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 13px;
}

.channel {
    width: 389px;
    height: 211px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    scale: 1;
}


.channel > img{
    width : 95%;
    height : 92%;
    z-index: 1;
    object-fit: cover;
    position: absolute;
    border: 0px solid black;
    border-radius: 35px;
    
}


.channel > .borderImage {
    width : 100%;
    height : 100%;
    z-index: 2;
    object-fit: fill;
    position: absolute;
    
}

/*hack here : if i change any size fatros about the dircet grid display of the channel 
then it will fuck the grid layout, so im gonna set it to create a clone above 
the original and that can be manipluated for transtions, 
ensuring the original grid stays the same.*/
.channelOverlayHack {
  position : fixed;
  z-index : 999;
  border-radius: 35px;
  overflow: hidden;
  transition:  
    left .4s ease,
    top .4s ease,
    width .4s ease,
    height .4s ease,
    border-radius .4s ease;
}

.channelOverlayHack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*based on https://www.w3schools.com/css/css3_images_modal.asp*/
.channelPopup {
  display: none;
  z-index: 10;
  position : fixed;
  left : 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #111;
  opacity : 1;
  transition: opacity 1.8s;
}

.channelPopup video{
  width : 100%;
  height: 100%;
  object-fit: cover;
}

.channelBlackFade {
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 9;
  display: none;
  position: fixed;
  top : 0;
  left: 0;
}

.channelPopupContent {
  /*position: relative;*/
  color: blue;
  height: 80%;
  width: 100%;
  background-color: rgb(0, 0, 0);
  position: fixed;
  top: 0;
  left: 0;
  /*add more, probably this will be a container for the mp4?*/
}

.channelPopup.show {
  display: flex;
  opacity: 1;
}

.channelPopupOptions {
  display: flex;
  width: 100%;
  height: 20%;
  position: absolute;
  left : 0;
  bottom : 0;
  justify-content: center;
  align-items: center;
  gap: 98px;
  z-index: 3;
  border-top: 5px solid rgba(138, 241, 255, 0.753);
  background-color: #000000;
  /*background-image: url(assets/img/tempLine3.png);
  background-repeat: repeat;*/
}

.channelPopupOptions button {
  width: 28%;
  height: 70%;
  background-color: rgb(1, 1, 1);
  border: 5px solid #9de6ff;
  color: white;
  border-radius: 90px;
  font-size: 2.5rem;
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  scale: 1;
  transition: scale .2s;
}

.channelPopupOptions button:hover {
  scale: 1.03;
}

