
#instructions {
    padding: 10px;
}

ul {
    padding-left: 20px;
    padding-right: 5px;
}

li {
    font-size: small;
    cursor: normal;
}

#window_top,
#help_top {
    background-image: url('img/taskbar_middle.png');
    color: rgb(235, 232, 218);
    padding: 5px;
    height: 20px;
}

#icon {
    max-width: 20px;
    margin-right: 5px;
    margin-top: 1px;
    float: left;
}

.window_title {
    margin: 1px;
}

#window_menu {
    background-color: rgb(233, 230, 211);
    height: 20px;
}


#window_menu>button {
    border: none;
    background-color: transparent;
    font-family: sans-serif;
    float: left;
    height: 20px;
    padding-bottom: 0px;
    color: black;
    max-width: fit-content;
}

#window_menu>button:hover {
    background-color: rgb(46, 95, 224);
    color: white;
}

.window_button {
    float: right;
    margin-top: -3px;
    height: 25px;
}

#cross,
#help_cross {
    margin-right: -3px;
}



#white_margin {
    border-top: solid white 4px;
    border-left: solid white 3px;
}

#game_panel {
    background-color: rgb(184, 184, 184);
    margin-bottom: 0;
    padding-bottom: 5px;
    width: 320px;
}
#game_menu {
    border-top: solid rgb(117, 117, 117) 2px;
    border-left: solid rgb(117, 117, 117) 2px;
    border-bottom: solid white 2px;
    border-right: solid white 2px;
}

#flags_left {
    position: absolute;
    margin-top: 7px;
    margin-left: 10px;
}

#flags_left>img,
#timer>img {
    margin: -2px;
    height: 25px;
}

#face {
    text-align: center;
}

#timer {
    float: right;
    margin-top: -28px;
    margin-right: 10px;
}

#face>button {
    background-color: rgb(192, 192, 192);
    border-left: solid white 2px;
    border-top: solid white 2px;
    border-bottom: solid rgb(117, 117, 117) 2px;
    border-right: solid rgb(117, 117, 117) 2px;
    margin: 5px;
    padding: 2px;
}

#face>button:active {
    border-left: solid rgb(117, 117, 117) 2px;
    border-top: solid rgb(117, 117, 117) 2px;
    border-bottom: solid white 2px;
    border-right: solid white 2px;
    margin: 5px;
    padding: 2px;
}

#face>button:active>img {
    transform: translate(0.5px, 0.5px);
}

#grid {
    border-top: solid rgb(117, 117, 117) 2px;
    border-left: solid rgb(117, 117, 117) 2px;
    border-bottom: solid white 2px;
    border-right: solid white 2px;
    border-collapse: collapse;
    width: 100%;
    margin-top: 5px;
}

/* common for all buttons on the field */
.field_button {
    padding: 9px;
    width: 100%;
    border-top: solid white 2px;
    border-left: solid white 2px;
    border-bottom: solid rgb(117, 117, 117) 2px;
    border-right: solid rgb(117, 117, 117) 2px;
    background-color: rgb(192, 192, 192);
    height: 34px;
}

.field_button:active {
    border-top: solid rgb(117, 117, 117) 1px;
    border-left: solid rgb(117, 117, 117) 1px;
    border-bottom: solid transparent 3px;
    border-right: solid transparent 3px;
}

td {
    padding: 0px;
}

.field_button_mine,
.field_button_mine:active {
    background-image: url("img/mine.png");
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    padding-top: 10.5px;
    padding-bottom: 10.5px;
    border: none;
    border-left: solid rgb(117, 117, 117) 1px;
    border-top: solid rgb(117, 117, 117) 1px;
}

.field_button_flagged {
    background-image: url("img/flag.png");
    background-size: 20px;
    background-position: center;
}

.field_button_empty {
    background-color: rgb(192, 192, 192);
    border: none;
    border-left: solid rgb(117, 117, 117) 1px;
    border-top: solid rgb(117, 117, 117) 1px;
    padding: 10px;
    padding-top: 11px;
    padding-left: 11px;
    margin: 0px;
    width: 27px;
  height: 27px;
}

.field_button_img {
    background-color: rgb(192, 192, 192);
    border: none;
    border: none;
    border-left: solid rgb(117, 117, 117) 1px;
    border-top: solid rgb(117, 117, 117) 1px;
    padding: 2.5;
    margin: 0;
    background-repeat: no-repeat;
    background-position: center;
    width: 27px;
  height: 27px;
}

footer>img,
#taskbar_right>img {
    max-height: 30px;
}

#taskbar_right {
    float: right;
}

footer>a>img {
    max-height: 30px;
}

.hidden {
    display: none;
}

.difficulty {
    display: inline-block;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    background-color: white;
    border: solid gray 1px;
    box-shadow: 2px 2px 1px darkslategray;
    position: absolute;
    left: 0%;
    top: 48.5px;
    overflow: auto;
    z-index: 2;
}

.show {
    display: block;
}

.dropdown-content button {
    cursor: pointer;
    border: none;
    background-color: transparent;
    display: block;
    min-width: 120px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: smaller;
    margin: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 15px;
}

.dropdown-content button:enabled {
    color: black;
}

.checkmark {
    background-image: url('img/checked.png');
    background-position-x: 3px;
    background-position-y: center;
    background-size: 7px;
    background-repeat: no-repeat;
}

.dropdown-content button:hover {
    background-color: rgb(46, 95, 224);
    color: white;
}

#unlucky {
    color: blue;
    cursor: pointer;
}