*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(45deg,#000000,#153677, #4e085f, #000000) no-repeat fixed; 
}
#caption{
    text-align: center;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #ffffff;
    filter: drop-shadow(2px 2px 4px rgb(113, 3, 90));
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 70px;
}
#o{
    color: #ff3e3e;
    transition: 0.3s ease-in-out;
}
#e{
    color: #fcbf49;
    transition: 0.3s ease-in-out;
}
#four{
    color: #ff3e3e;
    transition: 0.3s ease-in-out;
}

#board {
    background: url("space3.jpg") no-repeat center center / cover;
    position:absolute; 
    margin: 20px auto auto 250px; 
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    user-select: none;
    padding-left: 2%;
    padding-top: 2%;
    padding-bottom:2%;
    height: 80vh;
    width: 100vw;
    max-width: 650px;
    max-height: 550px;
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    border: 3px solid #ffffff;
    filter: drop-shadow(2px 4px 4px rgb(255, 255, 255));
    background-size: 150% 150%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#scoreboard{
    color: #ffffff;
    top: 35%;
    right:18%;
    position: absolute;
    padding: 20px;
    font-size: 20px;
    border: 3px solid #ffffff;
    border-radius: 20px;
    cursor: pointer;
    filter: drop-shadow(2px 4px 4px rgb(255, 255, 255));
    background: url("space3.jpg") no-repeat center/cover;
    transition: 0.3s ease-in-out;
}

#scoreboard:hover{
    transform: scale(1.1);
}

#name{
    font-size: 40px;
}
p{
    font-size: 30px;
    filter: drop-shadow(2px 4px 4px rgb(0, 0, 0));
}


#button{
    color: #ffffff;
    bottom: 28%;
    right: 18%;
    width: 240px;
    position: absolute;
    padding: 20px 60px 20px 60px;
    font-size: 20px;
    border: 3px solid #ffffff;
    border-radius: 20px;
    cursor: pointer;
    background: url("space3.jpg") no-repeat center/cover;
    filter: drop-shadow(2px 4px 4px rgb(255, 255, 255));
    transition: 0.3s ease-in-out;
}
button:hover{
    transform: scale(1.1);
}


#winner{
    border-radius: 20px;
    transition: 0.3s ease-in-out;
    text-align: center;
    justify-content: center;
    font-size: 35px;
    margin-top: 10px;
    margin-bottom: 0px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing:2px;
    filter: drop-shadow(2px 2px 4px black);
}

.tile{
    aspect-ratio: 1/1;
    background:#0000006e;
    height: 70px;
    width: 70px;
    margin: 6px;
    justify-content:space-evenly;
    border-radius: 50%;
    border: 2px solid #ffffff8b;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.tile:hover{
    transform: scale(1.1);
}

.red-piece {
    background: linear-gradient(135deg, #ff0000, #990000);
}

.yellow-piece {
    background: linear-gradient(135deg, #e9e944, #ffff00);
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    border: 2px solid rgba(255, 255, 255, 0.478);
    padding: 10px 20px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.885);
    background: linear-gradient(45deg,#000000,#153677, #4e085f, #000000) no-repeat fixed; 
    
}
#popmessage{
    font-size: 25px;
    margin: 10px;
    line-height: 25px;
}
#popbutton{
    background: url("space3.jpg") no-repeat center/cover;
    filter: drop-shadow(2px 2px 4px rgb(0, 0, 0));
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    margin-left: 38%;
    margin-bottom: 10px;
    padding:10px 50px;
    border: 2px solid white;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

.footer{
    margin-top: 45rem;
    text-align: center;
    width: 100%;
    background: none;
    border-top: 2px solid white;
}
.footerline{
    color: #ffffff;
    font-size: 15px;
    margin-top: 8px;
}
.foot-line{
    color: #ffffffb5;
    font-size: 12px;
    margin: 8px;
}
