@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Dancing+Script:wght@400..700&family=Epilogue:ital,wght@0,100..900;1,100..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inconsolata:wght@200..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Play:wght@400;700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Grotesk:wght@300..700&display=swap');

:root{
    --dark_blue: #001f3f;
    --greeny_blue : #003f5c;
    --blue_500: #005f7f;
    --blue_600: #007fa0;    
    --blue_700: #009fc0;
    --white: #F9F6EE;
}

body{
    font-family: "Play", sans-serif;
    color: var(--white);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

    background: linear-gradient(45deg, #1b2735, #1d2f4a, #1b2735, #1d2f4a);
    background-size: 400% 400%;
    animation: gradient 15s linear infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.star {
    position: fixed;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: twinkle 5s linear infinite, moveStar 10s linear infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes moveStar {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(calc(-50% + 800px), calc(-50% + 600px));
    }
}


#starry-background {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
}

.header{
    background-color: var(--greeny_blue);
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
     box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title{
   font-size: 3.8rem;
   letter-spacing: 2px;
   text-shadow:
    2px 2px 0 #000,
    4px 4px 8px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    text-align: center;
    margin-top: 60px;
}

.main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.startButton{
    width: 250px;
    height: 80px;
    background-color: var(--dark_blue);
    color: var(--white);
    border-radius: 5px;
    font-size: 28px;
    font-weight: bold;
    font-family: "Play", sans-serif;
    margin-top: 90px;
    border: solid 5px var(--white);
    transition: opacity 0.5s ease, transform 0.5s ease;
    

}

.startButton.hide{
    opacity: 0;
    pointer-events: none;
}

.startButton:hover{
    background-color: var(--white);
    color: var(--blue_500);
    border: solid 5px var(--blue_500);
    cursor: pointer;
}

.playerDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 100px;
    margin-left: 100px;
}

.playerContainer {
    width: 300px;
    height: 300px;
    background-color: var(--blue_500);
    border: solid 5px var(--white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playerIcon{
    width: 200px;
    height: 200px;
    margin-top: 20px;

}

.playerIcon svg {
    width: 100%;
    height: 100%;
    
}

.playerForm{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.playerName{
    width: 80%;
    height: 50px;
    border-radius: 5px;
    background-color: transparent;
    color: var(--white);
    border: solid 5px var(--white);
    padding-left: 15px;
    font-size: 20px;
   
}

.playerName::placeholder {
    color: var(--white);
    opacity: 0.7;
}


.playerName:focus {
    outline: none;
}

.startGameButton{
    width: 200px;
    height: 50px;
    background-color: var(--dark_blue);
    color: var(--white);
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    font-family: "Play", sans-serif;
    margin-top: 90px;
    border: solid 5px var(--white);
    position: absolute;
    top: -180px;
    right: -80px;
}

.startGameButton:hover{
    background-color: var(--white);
    color: var(--blue_500);
    border: solid 5px var(--blue_500);
    cursor: pointer;
}


.startSection{
    display: flex;
    flex-direction: row;
    align-items: center;
    
    
}



.gameSection{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    
}


.startSection, .gameSection {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}


.startSection.show, .gameSection.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.playerScoreDiv{
    width: 150px;
    height: 100px;
    background-color: transparent;
    border: solid 5px var(--blue_500);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 50px;
    
}

.playerScoreDiv figure{
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 5px solid var(--white);
    background-color: var(--blue_500);
    border-radius: 50%;
    position: absolute;
    top: -60px;
    left: 0%;
    
}

.playerScoreName{
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
}

.playerScore{
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.gameGrid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 300px;
    height: 300px;
    margin-right: 50px;
}

.gameCell{
    width: 100px;
    height: 100px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--blue_500);
    border: solid 6px var(--blue_500);
    border-radius: 10px;

    
   
}

.gameCell:hover{
    background-color: var(--blue_500);
    border: solid 6px var(--white);
    color: var(--white);
    cursor: pointer;
}

.resetButton{
    width: 200px;
    height: 50px;
    background-color: var(--dark_blue);
    color: var(--white);
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    font-family: "Play", sans-serif;
    margin-top: 90px;
    border: solid 5px var(--white);
    position: absolute;
    top: -180px;
    right: 40px;
    
}

.resetButton:hover{
    background-color: var(--white);
    color: var(--blue_500);
    border: solid 5px var(--blue_500);
    cursor: pointer;
}




