-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (93 loc) · 2.38 KB
/
Copy pathstyle.css
File metadata and controls
107 lines (93 loc) · 2.38 KB
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
/* Reset default margins and paddings */
* {
margin: 0;
padding: 0;
text-align: center;
}
/* Style for the header */
h1 {
background-color: #081b31;
color: #fff;
height: 10vh; /* 10% of the viewport height */
line-height: 10vh; /* Center text vertically */
font-size: 2rem; /* Relative font size */
}
/* Style for the choice containers */
.choice {
height: 15vh; /* 15% of the viewport height */
width: 15vh; /* Make it square with a width equal to the height */
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}
/* Style for the images within the choice containers */
img {
height: 90%; /* 90% of the choice container height */
width: 90%; /* 90% of the choice container width */
object-fit: cover;
border-radius: 45%; /* Rounded corners */
}
/* Flex container for the choices */
.choices {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-top: 5vh; /* 5% of the viewport height */
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
/* Hover effect for the choices */
.choice:hover {
cursor: pointer;
background-color: #081b31;
}
/* Flex container for the score board */
.score-board {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem; /* Adjusted font size */
margin-top: 5vh; /* 5% of the viewport height */
gap: 3rem; /* Reduced gap for smaller screens */
}
/* Individual score styles */
#user-score, #comp-score {
font-size: 3rem; /* Adjusted for better responsiveness */
}
/* Message container */
.msg-container {
margin-top: 5vh; /* 5% of the viewport height */
}
/* Message style */
#msg {
background-color: #081b31;
color: #fff;
font-size: 1.5rem; /* Adjusted font size */
margin-top: 5vh; /* 5% of the viewport height */
display: inline-block;
padding: 1rem;
border-radius: 1rem;
}
/* Media query for smaller screens */
@media (max-width: 600px) {
.choice {
height: 12vh;
width: 12vh;
}
img {
height: 80%;
width: 80%;
}
.score-board {
flex-direction: column;
gap: 2rem;
}
#user-score, #comp-score {
font-size: 2.5rem;
}
#msg {
font-size: 1.2rem;
}
}