body {
    background: #04003b;
    background: linear-gradient(90deg, rgba(4, 0, 59, 1) 0%, rgba(1, 70, 106, 1) 10%, rgba(6, 171, 204, 1) 51%, rgba(1, 70, 106, 1) 90%, rgba(4, 0, 59, 1) 100%);
    align-items: center;
    justify-content: center;
}


nav {
    text-align: center;
    display: flex;
    justify-content: center;
    font-family: "Pixelify Sans", sans-serif;
    background-color: rgb(210, 252, 255);
    height: 60px;
}

#instructions {
    position: absolute;
    background-color: rgba(25, 0, 85, 0.7);
    border-style: solid;
    border-radius: 20px;
    border-width: 0px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);

    align-content: center;

    opacity: 0;
    pointer-events: none;

    top: 200px;
    left: 30%;

    width: 40%;
    height: 500px;
    z-index: 10;

    transform: translateY(100px);
    transition: all 1s ease;
}

#instructions p {
    text-align: center;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 40px;
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

#instructions button {
    cursor: pointer;
    position: relative;
    left: 80%;
    height: 40px;
    width: 100px;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 20px;
    border-radius: 10px;
}

#instructions button:hover {
    background-color: rgb(96, 179, 182);
}

.insheader {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 10%;
    background-color: rgba(6, 171, 204, 0.8);
    border-radius: 20px 20px 0 0;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 40px;
    text-align: center;
    align-content: center;
    color: bisque;
}

.insfooter {
    position: absolute;
    bottom: 0px;
    height: 10%;
    width: 100%;
    background-color: rgba(6, 171, 204, 0.8);
    border-radius: 0px 0px 20px 20px;
}

#instructions.active {
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0);
}

.heading {
    font-size: 40px;
    text-align: center;
    font-family: "Pixelify Sans", sans-serif;
    color: rgb(255, 191, 107);
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 1);
}

.main {
    background: #EEAECA;
    background: radial-gradient(circle, rgb(174, 230, 238) 0%, rgba(148, 187, 233, 1) 100%);
    margin-top: 2%;
    height: 100vh;
    justify-content: center;
}

.Homebtn {
    color: white;
    cursor: pointer;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 20px;
    background-color: darkblue;
    position: absolute;
    top: 130px;
    left: 20px;
    height: 40px;
    width: 100px;
    border-style: solid;
    border-radius: 20px;
    transition: background-color 0.2s ease;
    transition: transform 0.1s ease;
}

.Homebtn:hover {
    background-color: blue;
}

.Homebtn:active {
    transform: scale(0.8);
}

.games {
    background: #EEAECA;
    background: radial-gradient(circle, rgb(174, 230, 238) 0%, rgba(148, 187, 233, 1) 100%);
    margin-top: 2%;
    height: 100vh;
    justify-items: center;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.games button {
    cursor: pointer;

    width: 200px;
    height: 200px;
    background-color: rgb(250, 216, 154);
    border-style: solid;
    border-radius: 20px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);

    white-space: normal;
    word-wrap: break-word;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 30px;

    transition: transform 0.1s ease;
}

.games button:hover {
    transform: scale(1.1);
    transform: rotate(-5deg);
    background-color: rgb(255, 243, 220);
}

.games button:active {
    transform: scale(0.8);
}

#opp {
    padding-top: 3%;
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: center;
    justify-content: center;
    filter: grayscale(060%);
}

#opp img {
    box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

#plr {
    padding-top: 3%;
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: center;
    justify-content: center;
}

#plr button {
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

#rockbtn,
#paperbtn,
#scissorbtn {
    width: 200px;
    height: 200px;
    background-color: transparent;
    background-size: cover;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

#rockbtn:hover,
#paperbtn:hover,
#scissorbtn:hover {
    transform: rotate(20deg);
    background-color: rgb(134, 183, 184);
    filter: brightness(70%);
}

#rockbtn:active,
#paperbtn:active,
#scissorbtn:active {
    transform: scale(0.9);
    background-color: rgb(65, 90, 90);
    filter: brightness(50%);
}

#rockbtn {
    background-image: url("../images/Rock.png");
}

#paperbtn {
    background-image: url("../images/Paper.png");
}

#scissorbtn {
    background-image: url("../images/Scissor.png");
}

.move {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

#oppmove {
    border-style: solid;
}

#plrmove {
    border-style: solid;
}

#timer {
    font-size: 40px;
    font-family: "Pixelify Sans", sans-serif;
    color: rgb(255, 102, 0);
    position: absolute;
    right: 5%;
    border-style: ridge;
    border-radius: 3px;
    border-width: 4px;
    border-color: black;
}

.ScoreText {
    position: absolute;
    background-color: rgb(255, 124, 244);
    
    border-style: groove;
    border-radius: 5px;
    border-color: #070070;

    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);

    height: 50px;
    width: 150px;

    left: 75%;

    font-family: "Pixelify Sans", sans-serif;
    font-size: 30px;
    
    align-content: center;
}

#oppScore {
    top: 300px;
}
#plrScore{
    top: 600px;
}

#gameLog {
    position: absolute;
    padding: 15px;

    overflow-y: auto;

    height: 300px;
    width: 450px;

    top: 550px;
    left: 30px;

    background-color: rgba(83, 107, 134, 0.6);
    border-style: solid;
    border-width: 1px;
    border-color: rgb(0, 126, 126);

    font-family: "Pixelify Sans", sans-serif;
    font-size: 20px;
    text-align: left;
    color: wheat;
}



#popup {
    position: fixed;
    top: 250px;
    left: 750px;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 112, 231, 0.9);
    border-style: solid;
    border-radius: 10px;
    border-color: gray;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);

    display: flex;
    justify-content: center;

    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.1s ease;
}

#popup button {
    position: relative;
    height: 40px;
    width: 50px;
    left: 90%;
    top: 3%;

    border-style: solid;
    border-radius: 10px;
    border-width: 1px;
    background-color: rgb(255, 106, 106);

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

    -webkit-text-stroke-width: 2px;
}

#popup p {
    text-align: center;

    font-family: "Pixelify Sans", sans-serif;
    font-size: 70px;
}

#popup button {
    cursor: pointer;
    transition: all 0.2 ease;
}

#popup button:hover {
    background-color: rgb(184, 65, 65);
}

#popup button:active {
    transform: scale(0.9);
}

#popup.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}