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

body {
    background-color: black; /* Keep background black */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Billboard container */
.container {
    width: 600px; 
    height: 250px; 
    perspective: 1000px;
    position: relative;
}

/* Billboard screen */
.card {
    height: 100%;
    width: 100%;
    position: relative;
    transition: transform 1.2s ease-in-out;
    transform-style: preserve-3d;
}

/* Flip on hover */
.container:hover .card {
    cursor: pointer;
    transform: rotateY(180deg);
}

/* White glowing billboard effect */
.front, .back {
    height: 100%;
    width: 100%;
    border-radius: 15px;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    background-color: white; /* Billboard stays white */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 
                0 0 40px rgba(255, 255, 255, 0.6),
                0 0 60px rgba(255, 255, 255, 0.4);
}

/* Digital text effect */
.text-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    text-align: center;
    color: rgb(41, 99, 214); 
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

/* flickering effect */
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

.front, .back {
    animation: flicker 0.3s infinite alternate; 
}

.front{
    font-family: "Poppins", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem;
}
/* Back of the billboard */
.back {
    background-color: white; 
    transform: rotateY(180deg);
    font-family: "Nanum Brush Script", serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(41, 99, 214);
    font-size: 1.5rem;
}

/* Previous link styling */
.previous-link {
    font-family: "Poppins", serif;
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 1rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: opacity 0.5s ease-in-out;
    z-index: 3;
}

.next-link {
    font-family: "Poppins", serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: opacity 0.5s ease-in-out;
    z-index: 3;
}

.star-link {
    font-family: "Poppins", serif;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: opacity 0.5s ease-in-out;
    z-index: 3;
}
  
  .previous-link:hover, .next-link:hover, .star-link:hover {
    color: #e1e1e1;
    text-shadow: 0 0 10px rgb(215, 223, 254), 0 0 15px rgb(148, 148, 148), 0 0 20px rgb(122, 122, 122); /* Stronger glow on hover */
  }