@import url('https://fonts.googleapis.com/css2?family=Palette+Mosaic&display=swap');

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

canvas {
    position: absolute;
    z-index: -1 ;
}

body {
    height: 100vh;
    width: 100vw;
    background-color: beige;
    background: linear-gradient(
        60deg,
        hsl(224, 100%, 50%),
        hsl(165, 85%, 66%),
        hsl(184, 85%, 66%),
        hsl(202, 85%, 66%),
        hsl(0, 0%, 100%),
        hsl(90, 9%, 82%),
        hsl(207, 85%, 66%),
        hsl(179, 85%, 66%)
        );
    background-size: 300% 300%;
    background-position: 0 50%;
    animation: moveGradient 60s alternate infinite;
}

@keyframes moveGradient {
    50% {
    background-position: 100% 50%;
    }
}

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

.title {
    font-family: 'Palette Mosaic', cursive;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem;
}

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

.board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75%;
    max-width: 100%;
    gap: 5rem;
    flex-wrap: wrap;
}

.player p {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    font-weight: 700;
}

.computer p {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    font-weight: 700;
}

.player-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
}

.player-grid {
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0px;
}

.computer-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
}

.computer-grid {
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0px;
}

.button-container {
    margin: 1rem;
}

.reset-btn {
    height: 2rem;
    width: 6rem;
    font-size: 1.2rem;
    font-weight: 1000;
    border: 1px solid red;
    border-radius: 25px;
    background-color: white;
    background: none;
}

.reset-btn:hover {
    transform: translateY(-3px);
}

.start-btn {
    height: 2rem;
    width: 6rem;
    font-size: 1.2rem;
    font-weight: 1000;
    border: 1px solid red;
    border-radius: 25px;
    background-color: white;
    background: none;
}

.start-btn:hover {
    transform: translateY(-3px);
}

.random-btn {
    height: 2rem;
    width: 6rem;
    font-size: 1.2rem;
    font-weight: 1000;
    border: 1px solid red;
    border-radius: 25px;
    background-color: white;
    background: none;
}

.random-btn:hover {
    transform: translateY(-3px);
}

.against-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin:2rem 0 2rem 0; */
}

.againstcpu-btn {
    min-height: 2rem;
    width: 9rem;
    font-size: 1.2rem;
    font-weight: 1000;
    border: 1px solid blue;
    border-radius: 25px;
    background-color: white;
    margin-left: 1rem;
    background: none;
}

.againstcpu-btn:hover {
    transform: translateY(-3px);
}

.againstplayer-btn {
    min-height: 2rem;
    width: 8rem;
    font-size: 1.2rem;
    font-weight: 1000;
    border: 1px solid blue;
    border-radius: 25px;
    background-color: white;
    margin-right: 1rem;
    background: none;
}

.againstplayer-btn:hover {
    transform: translateY(-3px);
}

.game-info-container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    min-width: 80%;
    margin-top: 1rem;
    min-height: 100%;
}
.game-status{
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 5px ridge burlywood;
    min-width: 25%;
    min-height: 120px;
}

.game-status > h3 {
    background-image: linear-gradient(
        -225deg,
        black 0%,
        black 29%,
        black 67%,
        white 100%);
        background-size: auto auto;
        background-size: 200% auto;
        color: #fff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textclip 2s linear infinite;
        font-size: 1.3rem;
}

@keyframes textclip {
    to {
        background-position: 200% center;
    }
}

.game-status h2 {
    margin: 0.4rem;
}

.log {
    background-image: linear-gradient(
        -225deg,
        black 0%,
        brown 29%,
        black 67%,
        white 100%);
        background-size: auto auto;
        background-size: 200% auto;
        color: #fff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textclip 2s linear infinite;
        font-size: 1.3rem;
}

.log-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 5px ridge burlywood;
    min-width: 25%;
    height: 120px;
}

.log-list {
    height:100%;
    width: 100%;
    overflow-y: scroll;
}
.log-list p {
    border-top: 1px solid black;
    margin-top: 0.3rem;
}

.instruction-container{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.instruction {
    padding-top: 0.8rem;
}

.game-started {
    color: blue;
}

.press-start {
    color: blue;
}

.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.water-container{
    margin-top: 14rem;
    width: 100vw;
    height: 20vh;
}

img {
    width: 100%;
    height: 100%;
}

#animation{
    transition: 250ms ease-in-out;
}
#animation:hover {
    transform: translateY(-5px);
}

#animation-2 {
    transition: 500ms ease-in-out;
}

#animation-2:hover{
    transform: translateY(-50px);
}