
@font-face {
    font-family: 'nightmare_pillsregular';
    src: url('nightmarepills-bv2w-webfont.woff2') format('woff2'),
         url('nightmarepills-bv2w-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0px;
    padding: 0px;
    height: 100vh;
}

.page-container {
    display: flex;
    flex: auto;
    flex-direction: column;
    height: 120%;
    width: 100%;
    background-color: inherit;
    background-image: url("thresh.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Header */

.header {
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex: auto;
    justify-content: center;
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #282b2f;
    color: #d31f37;
    font-size: max(2vw, 20px);
    font-weight: bold;
    border-bottom: 2px solid black;
}

h1 {
    justify-content: center;
    display: flex;
    flex: 0 2 auto;
    margin: 1rem;
    animation: headerAnimation 3s;
    text-align: center;
}

/* Content */

.choice-container,
.result-container,
.display-winner-container {
    animation: transitionIn 3s;
}

.content-container {
    font-size: 30px;
    color: white;
    display: flex;
    flex: auto;
    flex-direction: column;
    align-items: center;
    margin-left: 0%;
    margin-right: 0%;
    background-color: rgba(0, 0, 0,0.6);
    height: 110%;
}

.display-winner-container {
    display: flex;
    flex: auto;
    flex-direction: row;
    gap: 1.5rem;
    max-width: 620px;
    width: 100% ;
}

#player-choice-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: auto;
    transform: rotateY(90deg);
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    height: 100%;
    width: 100%;
}

#player-choice-img {
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    height: 100%;
    width: 100%;
}

#computer-choice-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: auto;
    transform: rotateY(90deg);
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    height: 100%;
    width: 100%;
}

#computer-choice-img {
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    height: 100%;
    width: 100%;
}

.winner-announcer-container {
    max-width: 270px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

.choice-container{
    display: flex;
    flex: auto;
    flex-direction: row;
    justify-content: center;
    gap: 8%;
    padding: 3% 8%;
    width: 80%;
}

.choice-img-container-rock,
.choice-img-container-paper,
.choice-img-container-scissors {
    border: 2px solid red;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: auto;
    height: 100%;
    width: 100%;
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    border: 0.2rem solid #ff0000;
    border-radius: 2rem;
    box-shadow: 0 0 .2rem #ff0000,
            0 0 .1rem #ff0000,
            0 0 1rem rgb(254, 19, 54),
            0 0 0.4rem rgb(254, 19, 54),
            0 0 1.4rem rgb(254, 19, 54),
            inset 0 0 0.7rem rgb(254, 19, 54); 
    background-color: rgb(0, 0, 0, 0.3);
}

button {
    background-color: inherit;
    border: 0rem;
    border-radius: inherit;
    box-sizing: inherit;
}

.choice-img-rock,
.choice-img-paper,
.choice-img-scissors {
    min-width: 50px;
    max-height: 150px;
    min-height: 50px;
    max-width: 150px;
    height: 100%;
    width: 100%;
    opacity: 0.7;
}

.choice-img-rock:hover {
    animation: imgAnimation 0.5s forwards;
    cursor: pointer;
}

.choice-img-paper:hover {
    animation: imgAnimation 0.5s forwards;
    cursor: pointer;
}

.choice-img-scissors:hover {
    animation: imgAnimation 0.5s forwards;
    cursor: pointer;
}

.choice-img-container-rock:hover {
    animation: hoverEffects 0.5s forwards;
}


.choice-img-container-paper:hover {
    animation: hoverEffects 0.5s forwards;
}

.choice-img-container-scissors:hover {
    animation: hoverEffects 0.5s forwards;
}

p {
    display: flex;
    flex: auto;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
   
}

#winner-announcement {
    display: flex;
    flex-wrap: wrap;
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    font-size: calc(1rem + 2vw);
    font-weight: bold;
    text-align: center;
    justify-content: center;
    margin: 0px;
    width: 100%;
}

.result-container {
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.num-of-rounds {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wins-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.wins-tracker {
    display: flex;
    flex-direction: column;
    align-items: center;

/* Footer */

}
.footer-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 7rem;
    background-color: #282b2f;
    border-top: 2px solid black;
}

.newbie-href {
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    background-color: #282b2f;
    border: 2px solid black;
    color: #da2f47;
    font-size: 24px;
    padding: 1rem;
    text-decoration: none;
}

.newbie-href:hover {
    color: white;
}

/* End game / Game restart prompt window */

.restartContainer {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 25%;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 30px;
    user-select: none;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 2px solid white;
    box-shadow: 0 0 .2rem #ff0000,
            0 0 .1rem #ff0000,
            0 0 1rem rgb(254, 19, 54),
            0 0 0.4rem rgb(254, 19, 54),
            0 0 1.4rem rgb(254, 19, 54),
            inset 0 0 0.7rem rgb(254, 19, 54); 
    background-color: rgb(0, 0, 0, 1);
}

.end-game-message {
    display: flex;
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    font-size: calc(2rem + 1.5vw);
    font-weight: bold;
}

p.end-game-message {
    display: flex;
    justify-content: center;
}

.btn-restart {
    font-size: inherit;
    font-family: nightmare_pillsregular, Verdana, Geneva, Tahoma, sans-serif;
    padding: 10px 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: white;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 .2rem #ff0000,
            0 0 .1rem #ff0000,
            0 0 1rem rgb(254, 19, 54),
            0 0 0.4rem rgb(254, 19, 54),
            0 0 1.4rem rgb(254, 19, 54),
            inset 0 0 0.7rem rgb(254, 19, 54);
}

.btn-restart:hover {
    animation: restartBtnHover 0.3s forwards;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    opacity: 0.8;
    background-image: url("thresh.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Animations */

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

@keyframes hoverEffects {
    from {
        border: 0.2rem solid #ff0000;
        box-shadow: 0 0 .2rem #ff0000,
            0 0 .1rem #ff0000,
            0 0 1rem rgb(254, 19, 54),
            0 0 0.4rem rgb(254, 19, 54),
            0 0 1.4rem rgb(254, 19, 54),
            inset 0 0 0.7rem rgb(254, 19, 54); 
        background-color: rgb(0, 0, 0, 0.3);
    }
    to {
        border: 0.2rem solid white;
        box-shadow: 0 0 .4rem #ff0000,
            0 0 .2rem #ff0000,
            0 0 2rem rgb(254, 19, 54),
            0 0 0.8rem rgb(254, 19, 54),
            0 0 2.8rem rgb(254, 19, 54),
            inset 0 0 1.4rem rgb(254, 19, 54);
            background-color: rgb(0, 0, 0, 0.8);
    }
}

@keyframes imgAnimation {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

@keyframes headerAnimation {
    from {
        opacity: 0;
        transform: rotateX(-10deg);
        text-shadow: 0 0 .2rem #ff0000,
    0 0 .1rem #ff0000,
    0 0 1rem rgb(254, 19, 54),
    0 0 0.4rem rgb(254, 19, 54),
    0 0 1.4rem rgb(254, 19, 54);
    }
    to {
        opacity: 1;
        transform: rotateX(0);
        text-shadow: 0 0 .2rem #ff0000;
    }
}

@keyframes choiceAnimation {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

@keyframes restartBtnHover {
    from {
        border: 2px solid #ff0000;
        box-shadow: 0 0 .2rem #ff0000,
            0 0 .1rem #ff0000,
            0 0 1rem rgb(254, 19, 54),
            0 0 0.4rem rgb(254, 19, 54),
            0 0 1.4rem rgb(254, 19, 54),
            inset 0 0 0.7rem rgb(254, 19, 54); 
    }
    to {
        border: 2px solid white;
        box-shadow: 0 0 .4rem #ff0000,
            0 0 .2rem #ff0000,
            0 0 2rem rgb(254, 19, 54),
            0 0 0.8rem rgb(254, 19, 54),
            0 0 2.8rem rgb(254, 19, 54),
            inset 0 0 1.4rem rgb(254, 19, 54);
    }
}

@keyframes restartBtnHoverAngel {
    from {
        border: 2px solid #00fff2;
        box-shadow: 0 0 .2rem #00fff2,
            0 0 .1rem #00fff2,
            0 0 1rem #00fff2,
            0 0 0.4rem #00fff2,
            0 0 1.4rem #00fff2,
            inset 0 0 0.7rem #00fff2; 
    }
    to {
        border: 2px solid white;
        box-shadow: 0 0 .4rem #00fff2,
            0 0 .2rem #00fff2,
            0 0 2rem #00fff2,
            0 0 0.8rem #00fff2,
            0 0 2.8rem #00fff2,
            inset 0 0 1.4rem #00fff2;
    }
}