odin-tic-tac-toe/style.css

112 lines
2.0 KiB
CSS

:root {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
html, body {
min-height: 100dvh;
}
#center-contain {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100dvh;
}
#main-game {
display: grid;
grid-template: repeat(3, 80px) / repeat(3, 80px);
padding: 10px;
gap: 10px;
}
.box {
border: 1px solid #000;
box-sizing: border-box;
background-color: #e2e2e2;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
transition: 0.1s background-color ease-in-out,
0.1s transform ease-in-out;
}
.box:hover {
background-color: #f8f8f8;
transform: scale(1.03);
}
.box:active {
background-color: #efefef;
transform: scale(0.99);
}
.popup {
background: #00000044;
backdrop-filter: blur(6px);
display: flex;
justify-content: center;
align-items: center;
min-height: 100dvh;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.popup-content {
border: 2px solid #000000aa;
padding: 25px;
border-radius: 10px;
background: #ccc;
color: #000;
}
.dismiss-button {
padding: 5px;
border-radius: 8px;
background-color: #fff;
color: #000;
border: 1px solid #000;
cursor: pointer;
}
h1#title {
font-size: 2rem;
margin: 0 0 10px 0;
}
form input[type="text"], form button[type="submit"], button {
padding: 6px;
font-size: 1rem;
display: block;
outline: none;
border-radius: 10px;
border: 1px solid #000;
margin: auto;
}
button {
cursor: pointer;
}
label:has(+ input[type="text"]) {
font-size: 0.95rem;
display: block;
margin: 2px 0 0 0;
text-transform: uppercase;
font-weight: bold;
}
li li {
margin-left: 15px;
font-size: 1.2rem;
}
li > strong {
font-weight: bold;
font-size: 1.5rem;
}