* {
    box-sizing: border-box;
}

:root {
    --hoover-button: blue;
    --font-button: 'Balsamiq Sans';
    --font-size-button: 18px;
}

body {
    font-family: 'Balsamiq Sans', cursive;
    font-size: 30px;
}

p {
    margin: 2px;
}

h1 {
    margin: 10px;
    font-size: 30px;
    text-transform: uppercase;
}

.ru,
.en {
    cursor: pointer;
}

.ru:hover {
    font-weight: bold;
}

.en:hover {
    font-weight: bold;
}

.activetext {
    text-decoration: underline;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu {
    padding-bottom: 20px;
}

.players-two-button, .ai-game-button, .monkey-game-button {
    width: 95px;
    height: 30px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
}

.ai-game-button:hover {
    background-color: var(--hoover-button);
}

.players-Two-button:hover {
    background-color: var(--hoover-button);;
}

.monkey-game-button:hover {
    background-color: var(--hoover-button);;
}

.active {
    background-color: red;
}

.hiden{
    display: none;
    width: 400px;
    height: 400px;
    position: absolute;
    background-color: lightgray;
    border: 1px solid;
    border-radius: 30px;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.player-choice {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.choose-button-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.player-choice-button {
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-button);
    font-size: 64px;
}

.player-choice-button:hover {
    background-color: var(--hoover-button);;
    }

.new-game-button {
    width: 300px;
    height: 30px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    line-height: 3px;
    margin-bottom: 20px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
}

.new-game-button:hover {
    background-color:  var(--hoover-button);
}

.game-area {
    width: 300px;
    height: 300px;
    display: flex;
    flex-wrap: wrap;
    transition: 0.3s;
}

.game-box {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    font-size: 64px;
}

.info {
    margin: 10px 0;
    border-radius: 10px;
}

.history-button {
    width: 250px;
    height: 25px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
}

.history-button:hover {
    background-color: var(--hoover-button);;
    }

.history {
    display: none;
    width: 500px;
    height: 500px;
    position: absolute;
    background-color: white;
    border: 1px solid;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-size: 14px;
    overflow: hidden;
}

.exit-history-button {
    width: 400px;
    height: 40px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 30px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
}

.exit-history-button:hover {
    background-color: var(--hoover-button);;
    }

.players {
    width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player1,
.player2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-info{
    font-size: 18px;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.playerNameInput{
    width: 100px;
    height: 25px;
}

.playerNameButton {
    width: 70px;
    height: 20px;
    background-color: white;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
}

.playerNameButton:hover {
    background-color: var(--hoover-button);
    }

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 30px;
    font-size: 18px;
  }

.gitlink {
    color:black;
    cursor: pointer;
    text-decoration: none;
    transition: .3s;
    padding-right: 90px;
  }

.gitlink:hover {
    color:grey;
}

.rslogo {
    width: 95px;
    height: 35px;
    transition: .3s;
    padding-left: 10px;
  }

.rslogo:hover {
    filter: invert(76%) sepia(15%) saturate(138%) hue-rotate(7deg) brightness(92%)
    contrast(87%);
  }

.winStyle {
    background-color: aquamarine;
}

.fatality {
    display: none;
    width: 700px;
    height: 700px;
    position: absolute;
    background-color: white;
    z-index: 7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-size: 96px;
    overflow: hidden;
}