
body {
    font-family: veranda, sans-serif;
    text-align: center;
    background-color: #DAD9D9 !important;
}


#welcome-message {
    font-size: 50px;
    margin-top: 20px;
    text-align: center;
    color: #004B98;
    text-shadow: 2px 2px 4px #3DB5E6;
    /* font-family: 'RetroGamingFont', sans-serif; */
    font-family: 'GameplayFont', sans-serif;
}

/* Gaming font implementation */
@font-face { 
    /*font-family: 'RetroGamingFont'; src: url('fonts/Retro Gaming.ttf');*/
    font-family: 'GamePlayFont'; src: url('fonts/GamePlay.ttf');
  }

#logo {
    height: 80px;
    width: 150px;
}


.navbar {
    background-image: linear-gradient(to right, #fff, #C8C8C8, #3DB5E6, #004B98);
    text-align: center;
    padding: 10px;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    margin: 0 10px;
}


#game-select {
    margin-top: 20px;
    text-align: center;
    
}

select {
    font-size: 18px;
    padding: 5px;
}

label {
    font-weight: bold;
    margin-right: 10px;
    color: #0A2240;
}

select {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 200px;
}

.hidden {
    display: none;
}

/* path Ghost and Pac-Man move on */

.path {
    position: relative;
    width: 95%;
    height: 150px;
    padding: 20px;
    box-sizing: border-box;
    background: #DAD9D9;
    overflow: hidden;
    margin: 0 5%;
    /* box-shadow: 0 5px 5px DAD9D9; */
}

.path::after {
    content: '';
    display:block;
    width: 90%;
    position: absolute;
    height:0;
    border: 50%;
    /* border-bottom: 14px dotted blue; */
    left: 5%;

}

/*Pacman css */
.pacman {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #efce29;
    position: absolute;
    margin-top: 20px;
    animation: move 7s linear infinite;
    animation-delay: 1s;
    left: -20%;

}

.pacman_eye {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top:20px;
    right: 40px;
    background: #333333;

}

.pacman_mouth {
    background: #DAD9D9;
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 74%, 44% 48%, 100% 21%);
    animation-name: eat;
    animation-duration: 0.7s;
    animation-iteration-count: infinite;
}

/* Ghost css */

.ghost {
    position: absolute;
    top: 50%;
    z-index: 99;
    left: 20%;
    height: 70px;
    width: 60px;
    background: red;
    margin-top: -35px;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    animation: move 7s linear infinite, blinky 0.4s linear infinite; 
}

.ghost::before, .ghost::after {
    position: absolute;
    z-index: 99;
    content: '';
    top: 15px;
    left: 4px;
    height: 25px;
    width: 20px;
    border-radius: 50%;
    background: white;
}

.ghost::after {
    left: 28px;
}

.eyes::before, .eyes::after {
    position: absolute;
    content: '';
    height: 10px;
    width: 10px;
    background: blue;
    border-radius: 100%;
    top: 25px;
    left: 5px;
    z-index: 99;
    animation: eyeLeft 0.7s linear infinite;
}

.eyes::after {
 animation: eyeRight 0.7s linear infinite;
    z-index: 100;
    left: 30px;
}

.skirt, .skirt::before, .skirt::after {
    position: absolute;
    height: 0;
    width: 0;
    border: 10px solid #DAD9D9;
    border-top-color: transparent;
    bottom: -10px;

}
.skirt::before {
    content: '';
    left: 10px;
}

.skirt::after {
    content: '';
    left: 30px;
}

/* amination keyframes for ghost and pac-man!! */ 

@keyframes eat {
    0% {
      clip-path: polygon(100% 74%, 44% 48%, 100% 21%);
    }
    25% {
      clip-path: polygon(100% 60%, 44% 48%, 100% 40%);
    }
    50% {
      clip-path: polygon(100% 50%, 44% 48%, 100% 50%);
    }
    75% {
      clip-path: polygon(100% 59%, 44% 48%, 100% 35%);
    }
    100% {
      clip-path: polygon(100% 74%, 44% 48%, 100% 21%);
    }
  }

  @keyframes move {
    0% {
         left: -20%;
     }

    100% {
         left: 100%;
    }
    
}

@keyframes blinky {
    50% {
        background: hotpink;
    }
 
}

@keyframes eyeLeft {
    0%, 100% {
        left: 5px; 
    }
    50% {
        left: 10px;
    }
}

@keyframes eyeRight {
    0%, 100% {
        left: 30px;
    }
    50% {
        left: 35px;
    }
}


/* Mario Blocks (with a potential bluejay??) */

* {
    box-sizing: border-box
}
    
.main-container {
    display: block;
    margin: 20px auto;
    text-align: center;
}
.mario-block {
    display: inline-block;
    height: 80px;
    margin-right: -7px;
    position: relative;
    width: 80px;
    
}
.mario-block input {
    position: absolute;
    visibility: hidden;
    z-index: -1;
}
.mario-block label {
    background: #F88D2E;
    border: 4px solid #070000;
    box-shadow: inset -4px -4px 0 #965117, inset 4px 4px 0 #FAB89B;
    display: block;
    height: 100%;
    position: relative;
    width: 100%;
    
    
}
.mario-block input:checked + label {
    background: #885818;
    box-shadow: inset -4px -4px 0 #68400B, inset 4px 4px 0 #FAB89B;
    
}
.mario-block input:checked + label .dot,
.mario-block input:checked + label .question-mark {
    display: none;
}
.mario-block input:checked + label:before,
.mario-block input:checked + label:after {
    content: '';
    height: 20px;
    position: absolute;
    transform: rotate(45deg);
    width: 20px;
    
}
.mario-block input:checked + label:before {
    border-right: 4px solid #070000;
    right: 18px;
    top: 15px;
    transform: rotate(45deg);
    
}
.mario-block input:checked + label:after {
    border-left: 4px solid #070000;
    left: 18px;
    top: 15px;
    transform: rotate(-45deg);
    
}
.mario-block .dot {
    background: #070000;
    height: 5px;
    position: absolute;
    width: 5px;
}
.mario-block .dot:nth-child(1) {
    left: 4px;
    top: 4px;
}
.mario-block .dot:nth-child(2) {
    right: 4px;
    top: 4px;
}
.mario-block .dot:nth-child(3) {
    bottom: 4px;
    left: 4px;
}
.mario-block .dot:nth-child(4) {
    bottom: 4px;
    right: 4px;
}
.mario-block--question label {
    cursor: pointer;
    
}
.mario-block--question .question-mark {
    background-image: url("data:image/svg+xml,%3Csvg width='277px' height='380px' viewBox='0 0 277 380' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Path' fill='%23000000' points='30 168 30 65 63 65 63 30 195.910156 30 238 65 277 65 277 204 207 204 207 274 137 274 137 204 170 204 170 168 207 168 207 65 101 65 101 168'%3E%3C/polygon%3E%3Cpolygon id='Path-2' fill='%23000000' points='137 312 137 380 207 380 207 312'%3E%3C/polygon%3E%3Cpolygon id='Path' fill='%23FFFFFF' points='0 138 0 35 33 35 33 0 208 0 208 35 247 35 247 174 177 174 177 244 107 244 107 174 140 174 140 138 177 138 177 35 71 35 71 138'%3E%3C/polygon%3E%3Cpolygon id='Path-2' fill='%23FFFFFF' points='107 282 107 350 177 350 177 282'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}
