/* ####################################################################### */
/* vars */
/* ####################################################################### */

:root{
    --col1: hsl(289.01, 100%, 86.08%);
    --col2: hsl(224.17, 100%, 85.88%);
    --col3: hsl(198.46, 100%, 74.51%);
    --col4: hsl(188.44, 82.82%, 68.04%);
    --col5: hsl(168.41, 57.14%, 69.8%);
    --col6: hsl(122.73, 37.29%, 76.86%);
    
    --gradient: linear-gradient(
        45deg,
        var(--col1),
        var(--col2),
        var(--col3),
        var(--col4),
        var(--col5),
        var(--col6)

        );
}

/* ####################################################################### */

body{
    background-color: lightblue;
    margin: 1rem;
    text-align: center;
}

.app{
    max-width: 1200px;
    margin: 0 auto;
}

.panel{
    display: inline-block;
    margin-bottom: 1rem;
}

h1{
    font-size: 3rem;
    position: relative;
}

#status{
    font-size: 1.5rem;
    font-weight: bold;
}

.panel > *{
    margin-block: 3rem; 
}

.reset{
    font-size: 1.5rem;
    border: 3px solid  black;
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0;
}

.reset > i{
    margin-right: 0.5rem;
}

.choice > i{
    font-size: 3rem;
    padding: 1rem;
}

.choice{
    border-radius: 2rem;
}

.game{
    background-color: hsl(0, 0%, 24%);
    border-radius: 2rem;
}

.options{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

/* ####################################################################### */
/* hover stuff */

.hoverable:hover{
    background-position: right;
    cursor: pointer;
}

.reset:hover{
    background-color: #000000;
    color: white;
    cursor: pointer;
    border: 3px solid white;
}

/* ####################################################################### */
/* game states */

.default{
    background-image: var(--gradient);
    background-size: 300%;
    background-position: left;
    transition: background-position 1s;
}
.computerchoice{
    background-color: red;
}

.playerchosen{
    background-color: rgb(85, 255, 85);
}

.draw{
    background-color: rgb(249, 252, 87);
}

/* ####################################################################### */
/* media queries */

@media screen and (max-width: 400px){
  .options{
    grid-template-columns: repeat(1, 1fr);
  }

}
