body {
  background-color : #f5f6ff;
  background-image: url("fish.jpg");
  color: black;
  font-family: Verdana;
  margin: 0;
  padding: 0;
}

.menubar {
    z-index: 1;
}

p {
    margin: 0;
    margin-left: 10px;
    color: #40531a;
    font-weight: 800;
}

#mazeCanvas {
    position: relative;
    top: 50px;
    left: 50%;
    background-color: #8099D1;
    border: 5px solid #4E5E82;
    border-radius: 10px;
}

.msgbox {
    position: absolute;
    height: 200px;
    width: 200px;
    border-radius: 15px;
    border: 5px solid #FFD700;
    background-color: #1E90FF;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    visibility: hidden;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.msgbox h1 {
    color: #FFD700;
    margin-top: 20px;
}

.msgbox h2 {
    color: #ffffff;
    margin-top: 10px;
}

.msgbox button {
    background-color: #FFD700;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.msgbox button:hover {
    background-color: #FFC125;
}

.startbtn {
    background-color: #af4c91;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.5s ease;
}

.startbtn:hover {
    background-color: #64035f;
}

#btnUp,
#btnDown,
#btnRight,
#btnLeft {
    background-color: #85A5FF;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

#btnUp:hover,
#btnDown:hover,
#btnRight:hover,
#btnLeft:hover {
    background-color: #445D9E;
}

@keyframes blinkBorder {

    0%,
    100% {
        box-shadow: 0 0 20px #c01826;
    }

    50% {
        box-shadow: none;
    }
}

.startbtn.blink {
    animation: blinkBorder 2s linear infinite;
}

@media screen and (max-width: 568px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -165px;

    }

    #arrowMessage {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .background li {
        width: 15px;
        height: 15px;
    }

}

@media screen and (max-width: 360px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -130px;

    }
}

@media screen and (max-width: 328px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -120px;

    }
}

@media screen and (max-width: 278px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -100px;

    }

}

@media screen and (max-width: 580px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -165px;
    }
}

@media screen and (max-width: 400px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -130px;
    }

    .msgbox {
        width: 50%;
        height: 35%;
    }
}

@media screen and (max-width: 280px) {
    body {
        flex-direction: column;
    }

    #mazeCanvas {
        width: 70%;
        margin-left: -100px;
    }

    .msgbox {
        width: 40%;
        height: 38%;
    }

    .msgbox button {
        padding: 5px 10px;
    }
}