* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
    --Header-Outline: hsl(217, 16%, 45%);
    --Dark-Text: hsl(229, 25%, 31%);
    --Score-Text: hsl(229, 64%, 46%);
    font-family: 'Barlow Semi Condensed', sans-serif;

}

body {
    background: radial-gradient(hsl(214, 47%, 23%), hsl(237, 49%, 15%));
    background-repeat: no-repeat;
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border: hsl(217, 16%, 45%) solid;
    margin: 3rem 1rem;
    border-radius: 0.5rem;
}

header .logo {
    color: #fff;
    line-height: 1.2rem;
    font-size: 1.5rem;
}

.score {
    background-color: rgb(255, 255, 255);
    padding: 0.2rem 0.7rem;
    text-align: center;
    color: hsl(229, 25%, 31%);
    border-radius: 0.5rem;
}

.score p {
    color: var(--Score-Text);
}

#game-area {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 4rem;
    width: 20rem;
    margin: auto;
    flex-wrap: wrap;
    background: url(images/bg-triangle.svg) no-repeat center;
    background-size: 95%;
    height: 26rem;
}

#rock,
#paper,
#scissors {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
    cursor: pointer;
}

#rock {
    border: 15px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, hsl(349, 71%, 52%), hsl(349, 70%, 56%)) border-box;
    box-shadow: 1px 5px hsl(349, 71%, 52%),
        inset 0px 5px rgb(196, 196, 196);
}

#paper {
    border: 15px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, hsl(230, 89%, 62%), hsl(230, 89%, 65%)) border-box;
    box-shadow: 1px 5px hsl(230, 89%, 62%),
        inset 0px 5px rgb(196, 196, 196);
}

#scissors {
    border: 15px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, hsl(39, 89%, 49%), hsl(40, 84%, 53%)) border-box;
    box-shadow: 1px 5px hsl(39, 89%, 49%),
        inset 0px 5px rgb(196, 196, 196);
}

main p {
    color: hsl(217, 16%, 45%);
    text-align: center;
    margin: 12rem auto;
    font-weight: 700;
    font-size: 20px;
    border: 3px solid hsl(217, 16%, 45%);
    padding: 1rem 4rem;
    width: max-content;
    border-radius: 1rem;
    cursor: pointer;
}

#result-view {
    width: 22rem;
    height: 20rem;
    margin: auto;
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.you-picked,
.cp-picked {
    color: #fff;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.you-picked h1 {
    font-size: 1rem;
    margin: 2rem 0;
}

.cp-picked h1 {
    font-size: 1rem;
    margin: 2rem 0;
}

.result h1 {
    font-size: 50px;
    color: #fff;
}

#result-view .result {
    order: 3;
    margin: 8rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result button {
    background: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 0.7rem;
    cursor: pointer;
    font-size: 18px;
}

#result-view img {
    width: 40%;
}

#rules {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#rules #rule {
    margin-top: 2rem;
}

#rules #close {
    margin-bottom: 2rem;
    cursor: pointer;
}

@media screen and (min-width: 760px) {
    header {
        width: 30rem;
        margin: 3rem auto;
    }

    header .logo {
        color: #fff;
        line-height: 1.5rem;
        font-size: 2rem;
    }

    main p {
        margin-top: 2rem;
        margin-right: 2rem;

    }

    #rules {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: 14rem;
        width: 24rem;
        height: 25rem;
        border-radius: 1rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #rules #close {
        margin-top: 2rem;
        cursor: pointer;
    }
    #rules #rule{
        order: 1;
    }
    #rules h1{
        font-size: 2rem;
        font-weight: 600;
        color: hsl(229, 25%, 31%);
    }
}