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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@font-face {
|
| 2 |
+
font-family: 'TwemojiMozilla';
|
| 3 |
+
src: url('TwemojiMozilla.ttf');
|
| 4 |
+
} /* Required in order to display the flag icons on chrome-based browsers and Windows 10 */
|
| 5 |
+
|
| 6 |
+
body {
|
| 7 |
+
margin: 25px;
|
| 8 |
+
font-family: 'Open Sans', 'TwemojiMozilla';
|
| 9 |
+
/* The 'Open Sans' font is loaded on the head section of the html file */
|
| 10 |
+
background-color: #fff;
|
| 11 |
+
color: #444;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.game-panel {
|
| 15 |
+
margin: 0 auto;
|
| 16 |
+
justify-self: center;
|
| 17 |
+
display: grid;
|
| 18 |
+
grid-template-columns: auto 1fr;
|
| 19 |
+
grid-template-rows: 1fr;
|
| 20 |
+
min-width: 480px;
|
| 21 |
+
max-width: 1600px;
|
| 22 |
+
gap: 10px;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
#sidebar {
|
| 26 |
+
display: flex;
|
| 27 |
+
flex-direction: column;
|
| 28 |
+
width: 220px;
|
| 29 |
+
background-color: #ff7000; /* Dark orange color */
|
| 30 |
+
color: white;
|
| 31 |
+
border-radius: 5px;
|
| 32 |
+
padding: 20px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
#countries {
|
| 36 |
+
display:flex;
|
| 37 |
+
flex-direction: column;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#my-country {
|
| 41 |
+
display: flex;
|
| 42 |
+
background-color: #6f7f91;
|
| 43 |
+
color: white;
|
| 44 |
+
border-radius: 5px;
|
| 45 |
+
padding: 0 20px;
|
| 46 |
+
align-items: center;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
#round, #score {
|
| 50 |
+
display: flex;
|
| 51 |
+
justify-content: space-between;
|
| 52 |
+
font-size: 1.5em;
|
| 53 |
+
padding: 3px 0;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
#neighbours-panel {
|
| 57 |
+
position: relative;
|
| 58 |
+
width: auto;
|
| 59 |
+
height: max-content;
|
| 60 |
+
display: flex;
|
| 61 |
+
flex-grow: 1;
|
| 62 |
+
flex-wrap: wrap;
|
| 63 |
+
flex-direction: row;
|
| 64 |
+
justify-content: space-evenly;
|
| 65 |
+
background-color: white;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.neighbour-is-valid, .neighbour-is-invalid {
|
| 69 |
+
width: 120px;
|
| 70 |
+
display: flex;
|
| 71 |
+
flex-direction: column;
|
| 72 |
+
flex-grow: 1;
|
| 73 |
+
align-items: center;
|
| 74 |
+
margin: 8px;
|
| 75 |
+
padding: 10px;
|
| 76 |
+
border: 2px solid white;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.neighbour-is-valid, .neighbour-is-invalid:hover {
|
| 80 |
+
cursor: pointer;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#flag {
|
| 84 |
+
font-size: 5.5em;
|
| 85 |
+
text-shadow: 0px 0px 4px black;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
#name {
|
| 89 |
+
font-size: 0.9em;
|
| 90 |
+
text-align: center;
|
| 91 |
+
margin-bottom: auto;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.was-clicked.neighbour-is-valid {
|
| 95 |
+
background-color: #dddddd;
|
| 96 |
+
border: 2px solid #96b2a1;
|
| 97 |
+
border-radius: 10px;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.was-clicked.neighbour-is-invalid {
|
| 101 |
+
background-color: #dddddd;
|
| 102 |
+
border: 2px solid #b0354e;
|
| 103 |
+
border-radius: 10px;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
#game-title {
|
| 107 |
+
padding-bottom: 25px;
|
| 108 |
+
font-size: 30px;
|
| 109 |
+
font-weight: bold;
|
| 110 |
+
text-shadow: 3px 3px 4px black;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
#sidebar hr {
|
| 114 |
+
width: 100%;
|
| 115 |
+
height: 1px;
|
| 116 |
+
color: orange;
|
| 117 |
+
background-color: white;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
#next-round-panel {
|
| 121 |
+
display: none;
|
| 122 |
+
position: absolute;
|
| 123 |
+
z-index: 0;
|
| 124 |
+
bottom: 0;
|
| 125 |
+
width: 100%;
|
| 126 |
+
height: 100%;
|
| 127 |
+
background-color: rgba(128, 128, 128, 0.8);
|
| 128 |
+
border-radius: 5px;
|
| 129 |
+
font-size: 3.5em;
|
| 130 |
+
font-weight: bold;
|
| 131 |
+
align-items: center;
|
| 132 |
+
justify-content:center;
|
| 133 |
+
text-align: center;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
#my-country-flag {
|
| 137 |
+
font-size: 4em;
|
| 138 |
+
padding: 0 20px 0 0;
|
| 139 |
+
text-shadow: 0px 0px 4px white;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
#my-country-name {
|
| 143 |
+
font-size: 1.5em;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
#buttons {
|
| 147 |
+
display: flex;
|
| 148 |
+
flex-direction: column;
|
| 149 |
+
padding-top: 20px;
|
| 150 |
+
margin-top: auto; /* Align at the bottom of the flexbox */
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
#buttons button {
|
| 154 |
+
width: auto;
|
| 155 |
+
padding: 18px;
|
| 156 |
+
border: none;
|
| 157 |
+
border-radius: 5px;
|
| 158 |
+
font-size: 1em;
|
| 159 |
+
cursor: pointer;
|
| 160 |
+
box-shadow: 7px 6px 18px 1px rgba(0, 0, 0, 0.24);
|
| 161 |
+
transition: 0.2s all;
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
#btn-next-round {
|
| 165 |
+
margin: 0 0 20px 0;
|
| 166 |
+
font-weight: 900;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
#buttons button:active {
|
| 170 |
+
transform: scale(0.95);
|
| 171 |
+
box-shadow: 3px 2px 15px 1px rgba(0, 0, 0, 0.24);
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
#progress {
|
| 175 |
+
width: 100%;
|
| 176 |
+
height: 25px;
|
| 177 |
+
margin: 10px 0;
|
| 178 |
+
background-color: #e7e6e8;
|
| 179 |
+
border: 1px solid #c9c8c9;
|
| 180 |
+
border-radius: 5px;
|
| 181 |
+
position: sticky;
|
| 182 |
+
inset-block-start: 0px;
|
| 183 |
+
z-index: 2;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
#bar {
|
| 187 |
+
background-color: #005fba;
|
| 188 |
+
height: 25px;
|
| 189 |
+
width: 0%;
|
| 190 |
+
border-radius: 5px;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
#progress::-webkit-progress-bar {
|
| 194 |
+
border-radius: 5px;
|
| 195 |
+
} /* Especialy for chrome-based browsers that don't support CSS progress bars very well */
|
| 196 |
+
|
| 197 |
+
@media (max-width: 660px) {
|
| 198 |
+
html, body {
|
| 199 |
+
margin: 3px;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
.game-panel {
|
| 203 |
+
/*transform: scale(0.95);*/
|
| 204 |
+
width: auto;
|
| 205 |
+
grid-template-columns: 1fr;
|
| 206 |
+
grid-template-rows: 1fr ;
|
| 207 |
+
min-width: 300px;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
#sidebar {
|
| 211 |
+
width: auto;
|
| 212 |
+
height: fit-content;
|
| 213 |
+
}
|
| 214 |
+
}
|