@import "https://unpkg.com/open-props/easings.min.css";

@layer demo.view-transition {
  ::view-transition-group(*) {
    animation-duration: .5s;
    animation-timing-function: var(--ease-5);
  }
  
  .hub > * {
    @media (prefers-reduced-motion: no-preference) {
      &:nth-child(1) {
        view-transition-name: gallery-item-1;
      }
      &:nth-child(2) {
        view-transition-name: gallery-item-2;
      }
      &:nth-child(3) {
        view-transition-name: gallery-item-3;
      }
      &:nth-child(4) {
        view-transition-name: gallery-item-4;
      }
      &:nth-child(5) {
        view-transition-name: gallery-item-5;
      }
      &:nth-child(6) {
        view-transition-name: gallery-item-6;
      }
      &:nth-child(7) {
        view-transition-name: gallery-item-7;
      }
    }
}

@layer demo.layout {
  .hub {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 15vw);
    grid-template-rows: repeat(3, 15vw);
    
    &.portrait {
      grid-template-columns: repeat(3, 20vw);
      grid-template-rows: repeat(5, 20vw);
    }
    
    /* selected promotion */
    > :has(:checked) {
      grid-column: 1 / 4;
      grid-row: 1 / 4;
    }
    
    /* pile the label, input and image */
    > * {
      display: grid;
      
      > * {
        grid-area: 1/1;
      }
      
      > label {
        opacity: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
      }
      
      > input {
        border-radius: 0;
        outline-offset: 5px;
        outline-color: deeppink;
        outline-color: color(display-p3 1 0 1);
      } 
    }
  }
}

@layer demo.support {
  * {
    box-sizing: border-box;
    margin: 0;
  }

  html {
    block-size: 100%;
    color-scheme: dark light;
  }

  body {
    min-block-size: 100%;
    font-family: system-ui, sans-serif;

    display: grid;
    place-content: center;
  }
  
  fieldset {
    border: none;
    padding: 0;
    margin: 0;
  }
  
  img {
    max-inline-size: 100%;
  }
  
  html {
    view-transition-name: none;
  }
}
/*____________________________________________________________
# Social links
____________________________________________________________*/
/*---- Social Sidebar --- */

.social-icons{
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: white;
}

.icon{
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: coral;
  transition: width .5s ease;
  cursor: pointer;
}

.icon:first-child{
  border-top-right-radius: 5px;
}

.icon:last-child{
  border-bottom-right-radius: 5px;
}

.icon:hover{
  width: 60px;
}

.icon.fb{
  background-color: #orange;
}

.icon.tw{
  background-color: #000;
}

.icon.pt{
  background-color: #CD1C1F;
}

.icon.in{
  background-color: #0077B5;
}

.icon.gp{
  background-color: #DD4B39;
}
.social-icons a {
  text-decoration: none; /* Removes the underline on all anchor tags */
}

/* Styling the top bar */
/* Styling the top bar */
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed; /* Fix the top bar at the top of the page */
  top: 0; /* Align it to the top */
  left: 0;
  width: 100%; /* Ensure it spans the full width */
  z-index: 9999; /* High z-index to ensure it's on top of other content */
  padding: 1px 0; /* Adjust padding as needed */
}

/* Styling the labels (AiFlock and CA) */
.top-bar label {
  font-size: 36px;
  font-family: 'Press Start 2P', cursive;
  font-weight: bold;
  color: #fcb700;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
  margin: 10px 0;
  animation: fadeIn 2s ease-out;
}

/* Styling the input and button section */
.copy-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0px;
  margin-left: 0px;
  animation: scaleIn 1.5s ease-out;
  padding: 1px;
  border-radius: 1px;
}

/* Scale-in animation for the copy section */
@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Styling the input field */
.copy-section input {
  font-size: 20px;
  font-family: 'Press Start 2P', cursive;
  padding: 12px 20px;
  margin-right: 15px;
  width: 250px;
  border-radius: 10px;
  outline: none;
  text-align: center;
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

/* Input hover effect */
.copy-section input:hover {
  background-color: #333;
  border-color: #fcb700;
}

/* Styling the copy button */
.copy-btn {
  cursor: pointer;
  padding: 12px 25px;
  background-color: #fcb700;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-family: 'Press Start 2P', cursive;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Copy button hover effect */
.copy-btn:hover {
  background-color: #ff0066;
  transform: translateY(-4px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.5);
}
