* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: lightsteelblue;
}

header {
    display:flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
    font-family: "Skranji", system-ui;
    font-weight: 700;
    font-style: normal;
    border-bottom: 2px solid #03045e;
}

h1{
    margin-left: 20px;
}

.current-score{
    color: rgb(160, 241, 37);
    padding: 3px;
    border-radius: 8px;
}

.link{
    text-decoration: none;
    color: black;
    margin-right: 20px;
}

.link:hover{
    color:#0077b6;
    border: 2px solid #0077b6;
    border-radius: 9px;
}
.dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

form {
    display: grid;
    width: 100vw;
    background-color: #90e0ef;
    align-items: center;
    padding: 20px;

}

.form-upper {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.container-info {
    display: grid;
    align-items: center;
    justify-content: center;
    width: 45%;
}

.info{
    display: flex;
    justify-content: center;
    width: 100%;
}

.letter {
    font-size:4rem;
    font-family: "Skranji", system-ui;
    font-weight: 700;
    font-style: normal;
    text-align: center;
}

input {
    background-color: #caf0f8;
    border-radius: 12px;
    padding: 10px;
    border: none;
    width: 100%;
}

input:hover {
    border: 2px solid #03045e;

}

input:focus {
    border: 2px solid #03045e;
    outline: none;
}

.form-lower {
    display: flex;
    justify-content: center;
    align-items: center;
}

#submit {
    background-color: #0077b6;
    color: white;
    font-size: 20px;
    border: none;
    padding: 10px;
    border-radius: 10px;
}

#submit:hover {
    background-color: #03045e;
}

.main-hide {
    display: none;
}

.main-show {
    display: flex;
    justify-content: space-around;
    align-items: center;
    
}

.container {
    display: grid;
    width: 50%;
    max-height: max-content;
    aspect-ratio: 1/1;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    margin: 10px;
    max-width: 30vw;
}

.grid-box {
    background-color: #caf0f8;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    border-radius: 12px;
    aspect-ratio: 1/1;
}




.score-hide{
    display: none;
    background-color: lightgreen;
}

.score-show{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.player-display{
    border: 5px solid #03045e;
    width:15%;
    aspect-ratio: 1/1;
    display: grid;
    justify-content: center;
    align-items: center;
}

.info-1, .info-2{
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.score-area-upper{
    font-size: larger;
    font-weight: bolder;
}

.score-area-lower{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top:  2px solid #03045e;
    

}

#tie-area{
    border-left:2px solid #03045e;
    border-right:2px solid #03045e;

}
.score-area{
    border:  2px solid #03045e;
    border-radius: 8px;
    text-align: center;
    width: 20%;
    background-color:thistle;

}

.score-display{
    border-top: 2px solid #03045e;
    font-family: "Skranji", system-ui;
    font-weight: 700;
    font-style: normal;
}
.score{
    display: grid;
}

span{
    font-size: large;
    font-weight: bold;
}

#reset{
    background-color: #90e0ef;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 10px;
    border-radius: 10px;
}

#reset:hover{
    background-color: #0077b6;
    color: #90e0ef;
}