html{
    margin: 0;
    padding: 0;
}

body{
    margin: 0;
    max-height: 100vh;
    /* animation: background 3s infinite linear; */
    /* background-color: orange; */
    /* transition: background-color 3s ease; */
    justify-content:start;
    background-color: black;
    /* animation-name: background;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count:infinite;
    animation-fill-mode: forwards; */
}

.container{
    margin: 1rem;
    width: 1300px;
    height: 600px;
    /* display: flex;
    flex-wrap: wrap;
    flex-direction: column; */
    display: grid;
    grid-template-columns: repeat(13,100px);
    grid-template-rows: repeat(6,100px);
    padding: 0;
    /* flex-direction: column; */
    /* align-items:flex-start; */
    /* align-content: stretch; */
}

.box{
    width: 100px;
    height: 100px;
    padding: 0;
    margin: 0;
    background-color: white;
    margin: 0;
    padding: 0;
    /* border: 1px solid #000; */
    /* flex: auto; */
    
}

.box:nth-child(2n){
    background-color: black;
    animation-name: spin_black;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.box:nth-child(2n-1){
    background-color: white;
    animation-name: spin_white;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    visibility: hidden;
}

@keyframes background {
    0% {
        background: blue;
    }
    50%{
        background: green;
    }
    100%{
        background: yellow;
    }
}

@keyframes spin_white {
    0% {
        transform:rotate(0deg);
        visibility: visible;
    }
    50%{
        transform: rotate(90deg);
        visibility: hidden;
    }
    100%{
        transform: rotate(180deg);
        visibility: hidden;
    }
}

@keyframes spin_black {
    0% {
        transform:rotate(0deg);
        visibility: hidden;
    }
    50%{
        transform: rotate(90deg);
        visibility: hidden;
    }
    100%{
        transform: rotate(180deg);
        visibility: visible;
    }
}