
/*
    Author: Yui Nguyen
    CST 336 - Lab 02
    Date Created: 07-03-2025
    Last update: 07-05-2025 
*/

body{
    margin: 0;
    padding: 0;
}

h1, h2{
    text-align: center;
    font-size: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1.0) 0%, rgba(255, 0, 0, 1.0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main_container{
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: fit-content;
    border: 5px solid red;
    padding: 5px 10px 20px 10px;
    background-color: antiquewhite;
}

.background_image{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    height: 100%;
}

.text_input{
    font-size: 24px;
    gap: 1.5%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.pop-up{
    position: absolute;
    width: 30%;
    height: 35%;
    background: black;
    left: 60%;
    top: -50%;
    transform: translate(-50%, -50%);
}

.pop-up-image{
    width: 100%;
    height: 100%;
}

.pop-up-message{
    position: relative;
    height: fit-content;
    bottom: 45%;

    font-size: 36px;
    color: white;
    text-align: center;
    text-shadow: 5px 5px 5px black;
}

.button{
    width: 90px;
    height: 30px;
    border: 0;
    padding: 0;

    box-shadow: 5px 5px 5px black;
    background-color: transparent;
    overflow: hidden;
}

.button_child {
    transform: translateY(0px);
    width: 100%;
    
    font-size: 16px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s cubic-bezier(.16,1,.3,1);
}

.button_child:nth-child(1){
    width: 100%;
    height: 100%;
    background-color: red;
    color: black;
}

.button_child:nth-child(2){
    width: 100%;
    height: 100%;
    background-color: black;
    color: red;
}

.button:hover .button_child {
    transform: translateY(-100%);
}

#score{
    font-size: 24px;
    text-align: center;
}

#feedback{
    font-size: 24px;
}

#resetBtn{
    position: relative;
    bottom: 25%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 28px;
    color: white;

    background: linear-gradient(to top, rgba(0, 0, 0, 1.0) 0%, rgba(255, 0, 0, 1.0) 100%);    
    border-radius: 10px;
}

@keyframes dropIn{
    0% {
    top: -50%;
    opacity: 0%;
  }
    100% {
    top: 50%;
    opacity: 100%;
  }
}

.pop-up.show {
  animation: dropIn 0.6s ease forwards;
}
