-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (112 loc) · 2.57 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
* {
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #6f00ff, #ff00b6);
overflow: hidden; /* Prevent scrolling when popup is open */
}
.container {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
margin-bottom: 20px;
color: #fff;
font-size: 48px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.board {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-template-rows: repeat(3, 100px);
gap: 10px;
margin-bottom: 20px;
}
.cell {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
background-color: #fff;
border: 1px solid #000;
font-size: 40px;
cursor: pointer;
transition: background-color 0.3s ease;
border-radius: 10px; /* Rounded corners for the cells */
}
.cell:hover {
background-color: #f0f0f0;
}
.cell.x {
color: #ff0000;
font-weight: bold; /* Bold font for X */
font-size: 50px; /* Larger font size for X */
}
.cell.o {
color: #0000ff;
font-weight: bold; /* Bold font for O */
font-size: 50px; /* Larger font size for O */
}
.message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
flex-direction: column;
align-items: center;
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 999; /* Ensure it's above other elements */
width: 80%; /* Adjust as needed */
max-width: 600px; /* Maximum width */
height: auto; /* Make it square-shaped */
}
.message.show {
display: flex;
}
.message-text {
color: #6f00ff;
font-size: 24px;
margin-bottom: 20px;
}
.restart-button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #ff00b6;
color: #fff;
transition: background-color 0.3s ease;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
margin-top: 20px;
}
.restart-button:hover {
background-color: #ff0091;
}
.new-game-button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #ff00b6;
color: #fff;
transition: background-color 0.3s ease;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
margin-top: 20px;
}
.new-game-button:hover {
background-color: #ff0091;
}