body {
    margin: 0px;
}

img {
    width: inherit;
    height: inherit;
}

.screen {
    position: relative;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title {
    padding: 2%;
    text-align: center;
    font-size: 12vmin;
}

.menu_button {
    padding: 0px;
    background-color: #ff0000;
    border: none;
    transition: background-color 0.5s;
}

.menu_button:hover {
    background-color: #b20000;
}

.menu_text {
    position: absolute;
    width: 40%;
    top: 19.11%;
    left: 49.125%;
    transform: translate(-50%, 0);
    padding: 2% 5% 2% 3%;
    font-family: Helvetica;
    font-size: 3.1vw;
    color: White;
}

#play_button {
    position: absolute;
    width: 16.785%;
    height: auto;
    top: 75%;
    left: 49.125%;
    transform: translate(-50%, -50%);
}

#instruction_button {
    position: absolute;
    width: 30.234%;
    height: auto;
    top: 87%;
    left: 49.125%;
    transform: translate(-50%, -50%);
}

#back_button {
    position: absolute;
    width: 16.889%;
    height: auto;
    top: 87%;
    left: 49.125%;
    transform: translate(-50%, -50%);
}

#level_buttons {
    display: flex;
    position: absolute;
    width: 38%;
    top: 19.11%;
    left: 49.125%;
    transform: translate(-50%, 0);
    padding: 2% 6%;
    flex-wrap: wrap;
    justify-content: center;
}

.level_button {
    width: 5vw;
    height: 5vw;
    margin: 1%;
    padding: 1%;
    background-color: #558000;
    border: none;
    border-radius: 1vmin;
    color: White;
    text-align: center;
    text-decoration: none;
    font-size: 5vmin;
    transition: background-color 0.5s;
}

.level_button:hover {
    background-color: #446600;
}

.level_button.hard {
    background-color: #d80000;
}

.level_button.hard:hover {
    background-color: #b20000;
}

#game_container {
    position: relative;
    width: 100%;
    height: auto;
}

.background {
    width: 100%;
}

.board_container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
}

.background_table {
    border-spacing: 0px;
    padding: 8px;
}

.wall_table {
    position: absolute;
    left: 0px;
    top: 0px;
    border-spacing: 0px;
}

.robot {
    position: absolute;
    left: 8px;
    top: 8px;
    transition: left 0.2s, top 0.2s;
}

.cell {
    width: 128px;
    height: 128px;
    padding: 0px;
}

.horizontal_wall {
    width: 112px;
    height: 16px;
    padding: 0px;
}

.vertical_wall {
    width: 16px;
    height: 112px;
    padding: 0px;
}

.corner {
    width: 16px;
    height: 16px;
    padding: 0px;
}

.wall_gap {
    width: 112px;
    height: 112px;
    padding: 0px;
}

.celltype0 {
    background-color: LightGray;
}

.celltype2 {
    background-color: Lavender;
}

.celltype3 {
    background-color: LightGray;
}

.walltype1 {
    background-color: DimGray;
}

.cornertype1 {
    background-color: DimGray;
}

.battery {
    position: absolute;
    width: 108px;
    height: 8%;
    left: 0px;
    right: 0px;
    top: 16px;
    margin: 0 auto;
}

.battery_base {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 104px;
    height: 100%;
    background-color: #0f82b3;
    border-radius: 1vmin;
}

.battery_base.flashing {
    background-color: #e73c55;
}

.battery_top {
    position: absolute;
    left: 104px;
    top: 16.7%;
    width: 8px;
    height: 66.7%;
    background-color: #ffcc33;
}

.battery_top.flashing {
    background-color: #ff6128;
}

.battery_container {
    position: absolute;
    left: 0px;
    top: 20%;
    height: 60%;
    border-spacing: 8px 0px;
    background-colour: Gold;
    border-radius: 1vmin;
}

.battery_bar {
    width: 16px;
    height: 60%;
    transition: background-color 0.2s;
}

.battery_bar.active {
    background-color: Gold;
}

#close_button {
    position: absolute;
    width: 16.889%;
    height: auto;
    right: 2%;
    bottom: 2%;
}

#win_screen {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 1%;
    transform: translate(-50%, -50%);
    background-color: #669900;
    border: #883600 solid 8px;
    border-radius: 8px;
    font-family: Helvetica;
    font-size: 10vw;
    text-align: center;
    color: White;
}
