@import "reset.css";

body * {
    font-family: Arial, Helvetica, sans-serif;
}

html,body{
    margin: 0;
    border: 0;
    min-height: 100vh;
    min-width: 700px;
    background-color: rgb(147, 183, 229);
    
}

header {
    display: flex;
    justify-content: center;
}

header h1 {
    margin-top: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.menuContainer {
    display: flex;

}

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

.playerInputs {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.playerDiv input {
    width: 200px;
    border-radius: 10px;
    border: 2px solid black;
    font-size: 1.2rem;
    padding: 2px 10px;
}

.btnContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 30px;
    margin-top: 30px;
}

.newGameBtn, .vsAIbtn {
    background-color: rgb(234, 207, 91);
    padding: 5px 10px;
    border: 2px solid black;
    border-radius: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btnContainer span {
    font-size: 1.3rem;
}

.gameboardGrid {
    display:grid;
    min-height: 600px;
    min-width: 600px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    margin-top: 105px;
    transform: rotate(45deg);
    position: relative;
    top: -40px;
}

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

.midV {
    border-left: 2px solid black;
    border-right: 2px solid black;
}

.midH {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

img[src="images/x.svg"]{
    height: 150px;
    width: auto;
    transform: rotate(45deg);
}

img[src="images/circle.svg"]{
    height: 140px;
    width: auto;
}

.playerNameContainer {
    display: none;
    justify-content: center;
    align-items: center;
    column-gap: 80px;
}

.player1Name, .player2Name {
    min-width: 170px;
    font-size: 35px;
    font-weight: 550;
    padding: 5px 8px;
    border-radius: 10px;
    border: 6px solid transparent;
    text-align: center;
}

.turnBorder {
    border: 6px dashed rgb(255, 255, 116);
}

.player1Name, .playerOneLabel, .player1Score{
    color: rgb(35, 35, 224);
}

.player2Name, .playerTwoLabel, .player2Score{
    color: rgb(201, 26, 3);
}

.vs {
    font-size: 24px;
    font-weight: 550;
}

.popup {
    min-width: 350px;
    min-height: 200px;
    display: none;
    flex-direction: column;
    row-gap: 30px;
    position: absolute;
    z-index: 1;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 191, 52, 0.84);
    border: 10px double black;
    border-radius: 15px;
    padding: 0px 20px;
}

.popupText {
    font-size: 30px;
    font-weight: bold;
    color: rgb(50, 107, 15);
}

.scoreDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 18px;
}

.score, .colon {
    font-weight: bold;
    font-size: 28px;
}


.newGameBtn2 {
    font-size: 20px;
    background-color: rgb(103, 199, 199);
    border: 2px solid black;
    padding: 3px 10px;
    border-radius: 10px;
    cursor: pointer;
}