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

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px;
    gap: 80px;  
}

.scrolling-title {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 20px 0; 
}

.game-title {
    font-size: 90pt;
    font-weight: bold;
    white-space: nowrap;
    background: linear-gradient(90deg, 
        #ff0000, 
        #ffa200, 
        #ffc800, 
        #ffe100, 
        #f6fe86, 
        #f4ff8d,
        #ff0000
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scroll 12s linear infinite, gradient 3s ease infinite;
    margin: 0;
    display: inline-block;
    padding-left: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

h1 {
    margin: 0;  
}

.card-pack {
    width: 600px;
    height: 840px;
   
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;  
    background-image: url('Cardpack.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.revealed-card {
    display: none;
    text-align: center;
}

.revealed-card.show {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  
    gap: 25px;
}

.single-card {
    display: flex;
    justify-content: center;
    animation: spin 0.6s ease;  
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(360deg);
        opacity: 1;
    }
}

.card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.open-another {
    padding: 0;
    margin: 0;  
    cursor: pointer;
    display: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    font-weight: normal;
    border: none;
    background: none;
    color: black;
}

.open-another.show {
    display: block;
}

.bodytext{
    font-size: 24pt;
}





/* Make images and videos fit their containers */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Make the overall container flexible */
body {
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

/* If you have a fixed-width container, make it flexible */
.container, #wrapper, .content {
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

/* Make tables scrollable on mobile */
table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}