body {
    --main-font: "Alegreya", serif;
    --blue: #0A6E87;
    --won: #1E1E1E;
    --mark-font: "Edu NSW ACT Foundation", cursive;
}

* {
    margin: 0;
}

#principal-border span {
    color: var(--blue);
}

#top-border-left h3, #bottom-border-left h3 {
    color: white;
    font-size: 34px;
    letter-spacing: 25%;
    font-weight: bold;
    font-family: var(--main-font);
    text-shadow: 0 4px 9px black;
}

#middle-border-left h3 {
    font-size: 25px;
    font-weight: bold;
    color: white;
    letter-spacing: 25%;
    font-family: var(--main-font);
}

#border-left div span {
    color: black;
}

#middle-bottom-icons svg {
    width: 30px;
    height: 30px;
}

#principal-border h1 {
    font-size: 90px;
    letter-spacing: 20%;
    text-shadow: 0px 10px 4px rgba(0,0,0,0.5);
}

#border-left {
    width: 380px;
    background-color: var(--blue);
    height: 100vh;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.5); 
}

input[type="text"]:only-of-type {
    width: 180px;
    height: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 4px black;
    border: var(--blue);
    font-family: var(--main-font);
    letter-spacing: 25%;
    font-weight: bold;
    font-size: large;
}

input[type="text"]:only-of-type:focus {
    border-color: var(--blue);      
    box-shadow: 0 0 8px; 
    text-shadow: 0 4px 9px black; 
    outline: none;
}

#start {
  background: none;       
  border: none;          
  font-size: 1.5rem;     
  font-weight: bold;      
  text-transform: uppercase;
  color: #fff;           
  cursor: pointer;        
  padding: 0;           
  margin: 0;          
}

#border-left {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#top-border-left, #bottom-border-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#principal-border {
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-right: 120px;
}

#main-page {
    display: flex;
}

#middle-bottom {
    display: flex;
    align-items: flex-end;
    gap: 50px;
}

#middle-bottom-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#principal-border h1 {
    padding-top: 130px;
}

#middle-bottom {
    padding-bottom: 60px;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 165px);
    grid-template-rows: repeat(3, 165px);
}

.cell {
    border: 1px solid grey;
}

.cell:hover {
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
}

svg:active, #start:active {
    transform: translateY(2px);
}

#song {
    cursor: pointer;
}

.X, .O {
    font-family: var(--mark-font);
    font-size: 9em;
    font-weight: bold;
    text-align: center;
}

.won {
    color: #1E1E1E;
    font-weight: bold;
    letter-spacing: 20%;
    font-family: "Crimson Text", serif;
    font-size: 6rem;
    -webkit-text-stroke: 2px solid black;
    padding-bottom: 40px;

    width: 100%;
    padding-left: 50vw;
}

#finalWinner {
    display: none;
    position: fixed;
    inset: 0;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: var(--blue);
}

#border-left.empty {
    display: none;
    background-color: none;
}