body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url("./assets/labuu-20210630xx.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Gaegu', Arial, sans-serif;;
}

.gaegu-light {
    font-family: "Gaegu", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .gaegu-regular {
    font-family: "Gaegu", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .gaegu-bold {
    font-family: "Gaegu", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  

.mainGame {
    position: relative;
    background-image: url('./assets/bg7.gif');
    background-size: cover;
    background-position: center;
    border: 3px solid #ffffffce; 
    
}

.middle {
    margin-top: 6rem;

}

.victoryPiplup {
    height: 9rem;
}

#gameCanvas {
    z-index: 2;
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 20px;
}

.cardSelect {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 3;
}

.bigCard {
    margin-top: 30%;
    z-index: 10;
    width: 45vh;
    height: 60vh;
    margin: 10px;
    padding: 10px;
    background: #333;
    border: 13px solid #ffffff;
    background-size: cover;
    background-position: center;
    background-image: url('./assets/cards/pikalup.png');
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.bigCardArea {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 100vw;
    height: 100vh;
    z-index: 5;
}

.powerup-card:hover {
    transform: scale(1.1);
}

.victoryScreen {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 3;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #666;
}

/* CRT pixel effect */
.mainGame::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 4;
    background-size: 100% 2px, 4px 100%;
    pointer-events: none;
}






#displayCardL {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.315);
}
#displayCardR {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.315);
}



.holder-variant {
    display: flex;
    flex-direction: row-reverse;
    border-radius: 0 0 0 20px;
}

.cardHolderHolder {
    overflow-y: scroll !important;
    max-height: 80vh;
    scrollbar-width: none;
}

.cardHolderHolder::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.cdRight>.Title{
    text-align: right;
}

.cardTypeLarger {
    font-size: 2rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
}
.cardDescLarger {
    font-size: 1.5rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
}
.cardTitleLarger {
    font-size: 4rem;
    font-weight: bolder;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
}

.cardTitle {
    font-size: 2.2rem;
    font-weight: bolder;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.cardType {
    font-size: 1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.typeImg {
    margin-right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    text-shadow: 1px 1px 8px rgb(0, 0, 0);
}

.typeImg2 {
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
}

.cardDesc {
    font-size: 0.9rem;
    background: rgb(230,230,246);
    background: linear-gradient(40deg, rgba(230,230,246,0.95) 35%, rgba(208,216,218,1) 100%); 
    width : 100%;
    padding: 0.2rem;
    color: #000000bf;
    text-align: left;
    /* font-weight: bold; */
    display: flex;
    flex-direction: row;
    align-items: center;
}

.topBottomCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bigCard::before  {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    transition: transform 0.3s;
    transform: translate(var(--shine-x, 0%), var(--shine-y, 0%));
    pointer-events: none;
}

.powerupChooseTitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.powerupChooseSubtitle {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.Title {
    font-size: 2rem;
    /* margin-bottom: 1rem; */
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: rgb(239,239,255);
    background: linear-gradient(40deg, rgba(251, 251, 255, 0.9) 35%, rgba(252, 255, 255, 0.99) 100%); 
    padding: 0.3rem;
    padding-left: 0.56rem;
    padding-right: 1rem;
}

.RightHolder {
    display: flex;
    flex-direction: row-reverse; 
    overflow: visible;
}

.powerup-card {
    display: inline-block;
    width: 200px;
    height: 260px;
    margin: 10px;
    background: #333;
    border: 3px solid #ffffff;
    background-size: cover;
    background-position: center;
    background-image: url('./assets/cards/pikalup.png');
    border-radius: 5px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.powerup-card-holder {
    position: relative;
    overflow: visible;
    padding: 0.7rem;
    min-height: 283px;
    /* min-width: 255px;
    max-width: 302px; */
    background-color: #3333335d;  
}

.cardDisplay {
    position: fixed;
    top: 0;
    scrollbar-width: none;
    min-width: 255px;
    overflow: visible;
}


.cdRight {
    right: 0;
    max-width: 302px;
}
.cdLeft {
    left: 0;
    white-space: nowrap;
    max-width: 260px;
    overflow-y: scroll!important;
    border-radius: 0 0 20px 0;
}



.crimbyTitle {
    /* border-radius: 2rem 0 0 2rem; */
    border-radius: 1.6rem 0 0 0;
    margin-top: 2rem;
}
.powerTitle {
    border-radius: 0 1.6rem 0 0;
    margin-top: 2rem;
}

.TitleSubtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-left: auto;
    text-align: right;
    padding-right: 1rem;
    box-sizing: border-box;
    width: 100%;
    background: rgb(239,239,255);
    color: #050016bf;
}

.typeDisplay {
    height: 2rem;
    margin-right: 0.5rem;
}

.boringFont {
    font-family: Arial, Helvetica, sans-serif;
}
.sizer1 {
    font-size: 1rem;
}

.logo {
    position: absolute;
    /* horizontal centre */
    left: 50%;
    transform: translateX(-50%);
    top: 0.4rem;
    z-index: 3;
    height: 13rem;
}

#playerSprite {
    display: block;
    position: absolute;
    visibility: visible;
    z-index: 1;
    pointer-events: none; /* Make sure the GIF doesn't interfere with canvas interactions */
    width: 80px; /* Match the player width in game state */
    height: 60px; /* Match the player height in game state */
}