* {
    box-sizing: border-box;
    margin: 0;
}

body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../images/marble.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

main {
    background-color: rgba(255, 255,  255, 0.33);
    margin-top: 5vmin;
    margin-bottom: 5vmin;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    order: 2
};

header {
    font-size: 6vmin;
    letter-spacing: 1vmin;
}

header span:nth-of-type(even) {
    color: black;
}

header span:nth-of-type(odd) {
    color: red;
}

h1 {
    color: black;
    font-size: 2vmin;
    text-align: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(8, 10vmin);
    grid-template-rows: repeat(8, 10vmin);
    gap: 0;
    border: 1vmin solid black;
}

.black-piece {
    border-radius: 50%;
    background-color: black;
    height: 7vmin;
    width: 7vmin;
    display: inline-block;
}

.black-king {
    border: 4px solid red;
    border-radius: 50%;
    background-color: black;
    height: 7vmin;
    width: 7vmin;
    display: inline-block;
}

.red-piece {
    border-radius: 50%;
    background-color: red;
    height: 7vmin;
    width: 7vmin;
    display: inline-block;
}

.red-king {
    border: 2px solid black;
    border-radius: 50%;
    background-color: red;
    height: 7vmin;
    width: 7vmin;
    display: inline-block;
}

#board > div {
    display: flex;
    justify-content: center;
    align-items: center;   
}

#board > div:hover {
    border: 0.25vmin solid blue;
    transition: 0.2s ease-out;
}

.gold {
    background-color: #827cda;
}

.white {
    background-color: rgba(255, 255,  255, 0.66);
    
}

#black-graveyard, #red-graveyard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    margin: 20px;
    gap: 3px;
    min-width: 14vmin;
}

#black-graveyard {
    order: 1;
}

#red-graveyard {
    order: 3;
}


button {
    border: 0.1vmin solid grey;
    color: grey;
    transition: 0.2s ease-out;
}

button:hover {
    color: white;
    background-color: darkgrey;
}