 /* Site and Game Specific CSS File */

 /* Copyright © 2005-2021 The Free Video Games Project */

 body {
     color: #fff;
     font-family: 'Press Start 2P', sans-serif;
 }

 .ghost {
     margin: 0;
     position: absolute;
     z-index: 2;
     background-size: contain;
     background-repeat: no-repeat;
     background-position: unset !important;
 }

 .backdrop {
     position: absolute;
     visibility: hidden;
 }

 .fps-display {
     position: absolute;
     right: 10px;
     top: 10px;
     visibility: hidden;
 }

 .preload-div {
     align-items: baseline;
     bottom: 0;
     display: flex;
     flex-wrap: wrap-reverse;
     position: absolute;
     visibility: hidden;
 }

 .header-buttons {
     padding: 18px;
     position: fixed;
     text-align: right;
     width: 100%;
     z-index: 3;
     background-color: #000;
 }

 .header-buttons button {
     background: none;
     border: 0;
     color: #fff;
     cursor: pointer;
     outline: none;
     padding: 0px 20px 0px 0px;
 }

 .header-buttons button .material-icons {
     font-size: 40px;
 }

 .paused-text {
     align-items: center;
     display: flex;
     font-size: 50px;
     height: 100%;
     justify-content: center;
     left: 0;
     position: absolute;
     user-select: none;
     visibility: hidden;
     width: 100%;
     z-index: 1;
 }

 .game-ui {
    z-index: 3;
     width: 100%;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .game-ui .one-up {
     pngmation: blink .6s infinite;
 }

 @keyframes blink {
     0% {
         opacity: 0;
     }
     49% {
         opacity: 0;
     }
     50% {
         opacity: 1;
     }
 }

 .game-ui .row {
     display: flex;
 }

 .game-ui .top ._25 {
     width: 25%;
 }

 .game-ui .top ._50 {
     width: 50%;
 }

 .game-ui .top .column :first-child {
     text-align: center;
 }

 .game-ui .top .column :not(:first-child) {
     margin-right: calc(50% - 3em);
     text-align: right;
 }

 .game-ui .bottom {
     margin-top: 5px;
     justify-content: space-between;
 }

 .game-ui .bottom .extra-lives {
     align-items: flex-start;
     display: flex;
 }

 .game-ui .bottom .fruit-display {
     display: flex;
     flex-direction: row-reverse;
 }

 @media (orientation: landscape) {
     .game-ui {
         height: 100%;
         zoom: 0.9;
     }
 }

 @media (orientation: portrait) {
     .game-ui {
         height: 80%;
         zoom: 1;
     }
 }

 .loading-cover {
     background: #ffdf00;
     height: 100vh;
     position: absolute;
     top: 0;
     width: 50vw;
     z-index: 4;
 }

 .left {
     left: 0;
     transition: left 0.5s 0.5s;
 }

 .right {
     right: 0;
     transition: right 0.5s 0.5s;
 }

 .main-menu-container {
     align-items: center;
     display: flex;
     flex-direction: column;
     height: 100%;
     left: 0;
     opacity: 0;
     position: absolute;
     transition: opacity .25s;
     visibility: hidden;
     width: 100%;
     z-index: 5;
 }

 .logo {
     width: 90vw;
     max-width: 834px;
     margin-top: 25vh;
 }

 .game-start {
     background-color: #fcc73f;
     border: 5px solid #231f20;
     border-radius: 10px;
     box-shadow: 5px 5px #ee2a29;
     color: #231f20;
     cursor: pointer;
     font-size: 48px;
     outline: none;
     padding: 16px;
 }

 .game-start:active {
     box-shadow: none;
     transform: translateX(5px) translateY(5px);
 }

 .game-start:disabled {
     cursor: default;
 }

 .loading-container {
     background-color: #000;
     border: 5px solid #2121ff;
     border-radius: 10px;
     height: 52px;
     left: 50%;
     position: absolute;
     top: 50%;
     transform: translateX(-50%) translateY(-50%);
     transition: opacity 0.5s 1s;
     width: 90vw;
     max-width: 500px;
     z-index: 5;
 }

 .loading-pacman {
     background-color: #000;
     background-image: url("../app/style/graphics/spriteSheets/characters/pacman/pacman_right.svg");
     background-repeat: no-repeat;
     background-size: contain;
     border-radius: 10px;
     height: 100%;
     position: absolute;
     transition: left 1s;
     width: 52px;
     z-index: 6;
 }

 @keyframes loading-pngmation {
     100% {
         background-position: -192px;
     }
 }

 .loading-dot-mask {
     background-color: #000;
     border-radius: 10px;
     height: 52px;
     left: 0;
     position: absolute;
     top: 0;
     transition: width 1s;
     z-index: -1;
 }

 .loading-dot {
     background-image: url("../app/style/graphics/spriteSheets/pickups/powerPellet.svg");
     height: 16px;
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     width: 16px;
     z-index: -2;
 }

 ._5 {
     left: 5%;
 }

 ._10 {
     left: 10%;
 }

 ._15 {
     left: 15%;
 }

 ._20 {
     left: 20%;
 }

 ._25 {
     left: 25%;
 }

 ._30 {
     left: 30%;
 }

 ._35 {
     left: 35%;
 }

 ._40 {
     left: 40%;
 }

 ._45 {
     left: 45%;
 }

 ._50 {
     left: 50%;
 }

 ._55 {
     left: 55%;
 }

 ._60 {
     left: 60%;
 }

 ._65 {
     left: 65%;
 }

 ._70 {
     left: 70%;
 }

 ._75 {
     left: 75%;
 }

 ._80 {
     left: 80%;
 }

 ._85 {
     left: 85%;
 }

 ._90 {
     left: 90%;
 }

 ._95 {
     left: 95%;
 }

 .movement-buttons {
     align-items: center;
     bottom: 15px;
     display: flex;
     flex-direction: column;
     left: 0;
     position: fixed;
     width: 100%;
 }

 .movement-buttons .row {
     display: flex;
     justify-content: space-between;
     margin-bottom: -3px;
 }

 .movement-buttons button {
     background: transparent;
     border: 3px solid #2121ff;
     border-radius: 5px;
     color: #2121ff;
     height: 7vh;
     outline: none;
     padding: 0;
     user-select: none;
 }

 .movement-buttons button:active {
     background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), transparent);
 }

 .movement-buttons .button-up {
     border-bottom: 0;
     border-bottom-left-radius: 0;
     border-bottom-right-radius: 0;
 }

 .movement-buttons .button-left {
     border-bottom-right-radius: 0;
     border-right: 0;
     border-top-right-radius: 0;
     margin-right: calc(7vh - 6px);
 }

 .movement-buttons .button-right {
     border-bottom-left-radius: 0;
     border-left: 0;
     border-top-left-radius: 0;
 }

 .movement-buttons .button-down {
     border-top: 0;
     border-top-left-radius: 0;
     border-top-right-radius: 0;
 }

 .movement-buttons .material-icons {
     font-size: 7vh;
     margin: -3px;
 }

 @media (orientation: landscape) {
     .movement-buttons {
         visibility: hidden;
     }
 }

 .error-message {
     color: #231f20;
     opacity: 0;
     position: absolute;
     top: 30vh;
     transition: opacity 0.5s;
     visibility: hidden;
     width: 50vw;
     z-index: 4;
 }

 .error-message .error-pacman {
     pngmation: error-pngmation 1.5s steps(12) infinite;
     background-image: url("../app/style/graphics/spriteSheets/characters/pacman/pacman_error.svg");
     background-size: 576px;
     height: 48px;
     margin-left: 10px;
     width: 48px;
     z-index: 6;
 }

 @keyframes error-pngmation {
     100% {
         background-position: -576px;
     }
 }

 .error-message .header {
     display: flex;
     font-size: 50px;
     margin-bottom: 30px;
 }

 .error-message .body {
     font-size: 20px;
     line-height: 1.25;
 }

 .maze-cover {
     background: #000;
     height: 100%;
     position: absolute;
     visibility: hidden;
     width: 100%;
     z-index: 3;
 }

 .maze {
     margin: 0 auto;
     position: relative;
 }

 .maze-img {
     user-select: none;
     width: 100%;
 }

 .maze-row {
     display: flex;
 }

 .dot-container {
     height: 100%;
     position: absolute;
     width: 100%;
 }

 .pacman {
     margin: 0;
     position: absolute;
     z-index: 1;
     background-size: contain;
     background-repeat: no-repeat;
     background-position: unset !important;
 }

 .power-pellet {
     pngmation: blink .3s infinite;
 }

 @keyframes blink {
     0% {
         opacity: 0;
     }
     49% {
         opacity: 0;
     }
     50% {
         opacity: 1;
     }
 }
/* Define the Crackman font */
@font-face {
    font-family: 'PacmanFont';
    src: url('Crackman\ Front.otf') format('opentype');
  }
@font-face {
    font-family: 'PacmanFont2';
    src: url('Crackman\ Back.otf') format('opentype');
}
@font-face {
    font-family: 'PacmanFont3';
    src: url('Crackman.otf') format('opentype');
}
  
  /* Style for the Pacman curved text */
  .curved-text {
    display: flex;
    justify-content: center;
    position: absolute;
  }
  
  .curved-text svg text {
    font-family: 'PacmanFont', sans-serif;
    font-size: 8rem; /* Adjust size as needed */
    letter-spacing: 0px;
    fill: #fcc73f; /* Text color */
    stroke: red; /* Outer red stroke */
    stroke-width: 10px;
    paint-order: stroke fill;
    letter-spacing: 0; /* No spacing between letters */
    text-shadow: -2px -2px 0px black, 2px 2px 0px black, 4px 4px 0px #76cbda; /* Black shadow + cyan glow */
  }

  .enter-name {
    background-color: #fcc73f;
    border: 5px solid #231f20;
    border-radius: 10px;
    box-shadow: 5px 5px #ee2a29;
    color: #231f20;
    cursor:text;
    font-size: 48px;
    outline: none;
    padding: 16px;
}
.enter-name-wrapper{
    display: flex;
    gap: 25px;
    padding-top: 300px;
}

.community-block{
    display: grid;
    justify-content: center;
    gap: 30px;
    padding-top: 100px;
}

.community-title{
    text-align: center;
    font-family: 'PacmanFont', sans-serif;
    font-size: 5rem; /* Adjust size as needed */
    letter-spacing: 0px;
    color: #fcc73f; /* Text color */
    stroke: red; /* Outer red stroke */
    stroke-width: 10px;
    paint-order: stroke fill;
    letter-spacing: 0; /* No spacing between letters */
    text-shadow: -2px -2px 0px black, 2px 2px 0px black, 4px 4px 0px red; /* Black shadow + cyan glow */
  }
  
.CA-bar {
    background-color: #fcc73f;
    border: 5px solid #231f20;
    border-radius: 10px;
    box-shadow: 5px 5px #ee2a29;
    color: #231f20;
    cursor: pointer;
    outline: none;
    padding: 20px;

	width: fit-content;
	margin: 0 auto;
	
  }

.CA-bar:active {
    box-shadow: none;
    transform: translateX(5px) translateY(5px);
}
.CA-bar:disabled {
    cursor: default;
}


  .CA-bar:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

  .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -30px; /* Position above the black bar */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
  }

.icons {
	display: flex;
	justify-content: center;
	gap: 20px;
  }
  
  .icons img {
	width: 80px;
	cursor: pointer;
	transition: transform 0.2s ease;
  }
  
  .icons img:hover {
	transform: scale(1.2);
  }


  #leaderboard-container {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 30px;
    margin-top: 20px;
    text-align: center;
    color: #fab9b0; /* Pink for any container text */
}

#leaderboard-container h2 {
    font-size: 2rem;
    color: #fab9b0; /* Pink for the heading */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000; /* Shadow for retro effect */
}

#leaderboard {
    width: 100%;
    max-width: 800px; /* Optional: limit width for better alignment */
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #000000; /* Black background for the table */
    color: #fab9b0; /* Pink text */
}

#leaderboard th, #leaderboard td {
    border: 2px solid #ffffff; /* White borders for contrast */
    padding: 15px;
    text-align: center;
}

#leaderboard th {
    color: #fff; /* Black text for the header */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px; /* Slight spacing for better readability */
}

#leaderboard tr {
    background-color: #000000; /* Black background for all rows */
    color: #fab9b0; /* Pink font for the rows */
}

#leaderboard tr:nth-child(even) {
    background-color: #000000; /* Keep all rows black */
}

#leaderboard tr:hover {
    background-color: #000000; /* No hover effect */
    color: #fab9b0; /* Ensure font remains pink on hover */
}


  
  .game-screen{
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  @media screen and (max-width: 991px) {
    .curved-text svg text{
        font-size: 4rem;
    }
    .enter-name {
        font-size: 18px;
    }
    .game-start{
        font-size: 28px;

    }
    .enter-name-wrapper{
        display: grid;
        padding-top: 200px;
    }
    .community-block{
        padding-top: 50px;
    }
    .community-title{
        font-size: 3rem;
    }

    .game-screen{
        grid-template-columns: 1fr;
    }
    .game-screen :nth-child(3) {
        display: none;
    }
    #leaderboard-container{
        display: none;
    }
  }
  