* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Playwrite';
    letter-spacing: 1px;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    min-height: 100%;

    font-size: 20px;
    display: flex;
    flex-direction: column;
    background-color: #81b8ce;
}

canvas, .after-game-part {
    display: none;
}

.container {
    display: flex;
    gap: 15vw;

    margin: auto;
    padding: 0 50px;
}

.game {
    margin: auto;
    background-image: url('./assets/img/bg.png');
    height: 70%;
    width: 20vw;
}

.menu {
    margin-top: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 170px;
}

.menu-text {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 200px;
    text-align: center;
}

.after-game-part{
    position: absolute;
    left: 50%;
    transform: translate(-50%, -40%);

    flex-direction: column;
    gap: 20px;
    z-index: 105;
}

.menu-text h2 {
    margin-bottom: 20px;

    text-shadow: 
    1px 1px 0 #8f9742,
    -1px -1px 0 #8f9742,
    -1px 1px 0 #8f9742,
    1px -1px 0 #8f9742;
}

.game-text {
    display: none;
    justify-content: space-around;
    font-size: 23px;
    align-items: center;
    font-weight: 700;
}

.after-game-part {
    top: 45%;

    justify-content: center;
}

.menu-icons {
    display: flex;
    justify-content: space-between;
    gap: 80px;

    margin-top: -65px;
    margin-bottom: 20px;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.icon:hover {
    color: grey;
}

button {
    background-color: #dde96e;
    padding: 10px;
    border: 1px solid #c5c33b;
    border-radius: 5px;

    font-family: 'Anton';

    cursor: pointer;
}

button:hover {
    border: 3px solid #fff;
}

#after-text {
    color: #dde96e;
    text-align: center;

    text-shadow: 
    1px 1px 0 black,
    -1px -1px 0 black,
    -1px 1px 0 black,
    1px -1px 0 black;
}

.rules, .results {
    width: 30%;
}

.rules p, .results p{
    padding: 20px 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.no-visible {
    display: none;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 10px;
    position: relative;
    z-index: 5;
}

footer img {
    width: 2vw;

    transition: transform 0.3s ease-in-out;
}

footer img:hover {
    transform: scale(1.3);
}
