Files
Tic-Tac-Toe-Game/styles/styles.css

287 lines
5.6 KiB
CSS

.player-selection {
background-color: #fff;
height: 33vh;
width: 50vw;
border-radius: 6px;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0px 3px 10px #000;
}
.player-selection h1 {
user-select: none;
}
.player-selection form {
display: flex;
width: 100%;
}
.player-selection form .player {
width: 40%;
}
.player-selection form .player input {
height: 5vh;
box-sizing: content-box;
outline: none;
font-size: 14pt;
}
.player-selection form .player .name-input {
width: 100%;
}
.player-selection form .player .symbol-input {
margin-top: 1vh;
width: 5vw;
font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
font-weight: bold;
}
.player-selection form .player .symbol-container {
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
margin-top: 1vh;
}
.player-selection form .player button {
box-sizing: content-box;
height: 5vh;
}
.player-selection form .player.player-1 {
padding-left: 10%;
padding-right: 2.5%;
}
.player-selection form .player.player-1 .symbol-container {
width: 103%;
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 1vh;
}
.player-selection form .player.player-1 .symbol-container .symbol-input {
margin-top: 0px;
margin-left: 1vw;
}
.player-selection form .player.player-2 {
padding-right: 10%;
padding-left: 2.5%;
}
.player-selection form .player.player-2 .symbol-container .symbol-input {
margin-top: 0px;
margin-right: 1vw;
}
.player-selection button#start {
width: 50%;
height: 6vh;
margin-top: 1vh;
background-color: #a6ff6a;
color: rgba(0, 0, 0, 0.72);
font-size: 14pt;
border: none;
box-shadow: 0px 3px #555555;
transition: 0.3s ease-in-out;
}
.player-selection button#start.pressed {
transition: 0.3s ease-in-out;
box-shadow: none;
}
.player-selection.hidden {
position: absolute;
top: -100%;
}
.emoji-picker-container {
transition: 0.4s ease-in-out;
opacity: 100%;
height: 100%;
width: 100%;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.emoji-picker-container .emoji-picker-background {
position: absolute;
background-color: rgba(0, 0, 0, 0.404);
z-index: 10;
height: 100%;
width: 100%;
}
.emoji-picker-container.hidden {
opacity: 0%;
transform: translateY(100vh);
background-color: #dd7979;
transition: 0.4s ease-in-out;
}
emoji-picker {
z-index: 100;
}
.game .tic-tac-toe {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
z-index: 100;
position: relative;
}
.game .tic-tac-toe .box {
width: 10vw;
height: 10vw;
font-size: 75pt;
font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
font-weight: bold;
border: 2px #fff solid;
box-sizing: border-box;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
color: #e7e7e7;
background-color: #dd7979;
}
.game .tic-tac-toe .box.winner-box {
background-color: rgba(255, 255, 255, 0);
}
.game .tic-tac-toe .box.winner-box.black-letters {
color: #303030;
}
.game .background-winner-div {
background-color: rgba(95, 255, 62, 0.692);
position: absolute;
width: 30vw;
height: 30vw;
z-index: 10;
opacity: 0%;
transition: 1s ease-in-out;
}
.game .background-winner-div.show {
opacity: 100%;
transition: 1s ease-in-out;
}
.game .tic-tac-toe .box#box-1 {
border-top: 0px;
border-left: 0px;
}
.game .tic-tac-toe .box#box-2 {
border-top: 0px;
}
.game .tic-tac-toe .box#box-3 {
border-top: 0px;
border-right: 0px;
}
.game .tic-tac-toe .box#box-4 {
border-left: 0px;
}
.game .tic-tac-toe .box#box-6 {
border-right: 0px;
}
.game .tic-tac-toe .box#box-7 {
border-bottom: 0px;
border-left: 0px;
}
.game .tic-tac-toe .box#box-8 {
border-bottom: 0px;
}
.game .tic-tac-toe .box#box-9 {
border-bottom: 0px;
border-right: 0px;
}
.game.hidden {
opacity: 0%;
position: absolute;
top: -100%;
}
.game .players-turn {
margin-bottom: 5vh;
margin-left: -3vw;
}
.game .players-turn span {
font-size: 30pt;
font-weight: bold;
color: #ffffff;
}
.victory-message {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-weight: bold;
font-size: 30pt;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
color: #fff;
margin-top: 5vh;
}
.victory-message button {
width: 30vw;
max-width: 330px;
height: 9vw;
max-height: 100px;
background: none;
border: 2px solid #fff;
border-radius: 10px;
color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 21pt;
font-weight: bold;
margin-top: 3vh;
transition: 0.4s ease-in-out;
}
.victory-message button:hover {
background-color: rgba(0, 0, 0, 0.062);
transition: 0.4s ease-in-out;
}
.victory-message.hidden {
opacity: 0%;
}
@media (max-width: 900px) {
.game .tic-tac-toe {
width: 80vw;
height: 80vw;
}
.game .tic-tac-toe .box {
width: 100%;
height: 100%;
}
.game .players-turn {
top: -10%;
left: 0%;
}
.game .background-winner-div {
width: 80vw;
height: 80vw;
}
}
html, body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
overflow-y: hidden;
}
body {
margin: 0;
padding: 0;
background-color: #dd7979;
display: flex;
justify-content: center;
align-items: center;
}
button {
cursor: pointer;
}
.animate__animated.animate__fadeOutDown {
--animate-duration: 1s;
}
/*# sourceMappingURL=styles.css.map */