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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
.rf-map,
.rf-map *{
    box-sizing: border-box;
}    
.rf-map {
    position: absolute;
    width: 1280px;
margin: auto;
    padding: 20px;
}
.rf-map .district b {
    position: absolute;
    z-index: 5;
    width: 18px;
    height: 18px;
    background: rgba(51, 122, 183, 0.9);
    border-radius: 50%;
    left: 6px;
    top: 18px;
    transition: all 0.3s;
}
.rf-map .district span {
    position: absolute;
    z-index: 5;
    top: 20px;
    left: 30px;
    font-size: 13px;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    line-height: 1;
    color: #000000;
    background-color: #FFFFFF;
}
.rf-map .district {
    display: none;
}
.rf-map.open .district b {
    top: 0;
    left: 0;
    border-radius: 0;
    width:100%;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);    
}
.rf-map.open .district span {
    color: #FFF;
}
.rf-map svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));    
}
.rf-map path {
    stroke: #FFFFFF;
    stroke-width: 1;
    stroke-linejoin: round; 
}
.rf-map [data-code] {
    fill: #337AB7;
    transition: fill 0.2s;
}
.rf-map [data-code]:hover {
    fill: #0180ef;
}
.rf-map .district-text {
    display: none;
    position: absolute;
    z-index: 6;
    left: 0;
    top: 60px;
    width: calc(100% - 20px);
    height: calc(100% - 90px);
    padding: 0 20px;
    overflow: auto;
    color: #FFF;
    font-size: 13px;
    font-family: Verdana, sans-serif;   
}
.rf-map .close-district {
    opacity: 0;
    z-index: 6;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;    
    width: 40px;
    height: 40px;
    line-height: 1;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: opacity 1s;
    pointer-events: none;
}
.rf-map.open .close-district {
    opacity: 1;
    pointer-events: initial;
}
.rf-map .district-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}
.rf-map .district-links div {
    font-size: 13px;
    font-family: Verdana, sans-serif; 
    padding: 4px;
}
.rf-map .district-links div:after {
    content: " | ";
    color: #337AB7;
}
.rf-map .district-links div:last-child:after {
    content: "";
}
.dropfill {
    fill: #337AB7!important;
}
.mainfill {
    fill: #1d4567!important;
}
@media (min-width:768px){
    .rf-map .district b {
        width: 28px;
        height: 28px;    
        left: 6px;
        top: 28px;
    }
    .rf-map .district span {
        top: 30px;
        left: 46px;
        font-size: 40px;
        font-weight: normal;
    }
    .rf-map .district-text {
        left: 30px;
        top: 80px;
        width: calc(100% - 60px);
        height: calc(100% - 130px);
        font-size: 16px; 
    }
    .rf-map .close-district {  
        width: 60px;
        height: 60px;
        font-size: 60px;
    }
    .rf-map .district-links {
        display: none;
    }
}
/* Цвета регионов */
.rf-map [data-code="BEL"] {
    fill: #315a5e;
    cursor: pointer;
}

.rf-map [data-code="KNDR"] {
    fill: #9acd32;
    cursor: pointer;
}

.rf-map [data-code="MON"] {
    fill: #f5d033;
    cursor: pointer;
}

.rf-map [data-code="KAZ"] {
    fill: #7c68ed;
    cursor: pointer;
}

.rf-map [data-code="AZE"] {
    fill: #7b001c;
    cursor: pointer;
}

.rf-map [data-code="GEO"] {
    fill: #999999;
    cursor: pointer;
}

.rf-map [data-code="ABK"] {
    fill: #002137;
    cursor: pointer;
}

.rf-map [data-code="UOS"] {
    fill: #755d9a;
    cursor: pointer;
}

.rf-map [data-code="POL"] {
    fill: #fc2847;
    cursor: pointer;
}

.rf-map [data-code="CHI"] {
    fill: #fc2847;
    cursor: pointer;
}

.rf-map [data-code="LIT"] {
    fill: #fde910;
    cursor: pointer;
}
.rf-map [data-code="UKR"] {
    fill: #fde910;
    cursor: pointer;
}
.rf-map [data-code="FIN"] {
    fill: #9acd32;
    cursor: pointer;
}
.rf-map [data-code="LAT"] {
    fill: #5200cc;
    cursor: pointer;
}
.rf-map [data-code="NOR"] {
    fill: #d17520;
    cursor: pointer;
}
.rf-map [data-code="EST"] {
    fill: #901aad;
}
/* Цвета при наведении */
.rf-map [data-code="BEL"]:hover {
    fill: #427a80;
}

.rf-map [data-code="KNDR"]:hover {
    fill: #add65a;
}

.rf-map [data-code="MON"]:hover {
    fill: #f7dc63;
}

.rf-map [data-code="KAZ"]:hover {
    fill: #a496f2;
}

.rf-map [data-code="AZE"]:hover {
    fill: #ad0028;
}

.rf-map [data-code="ABK"]:hover {
    fill: #00406b;
}

.rf-map [data-code="UOS"]:hover {
    fill: #926eae;
}

.rf-map [data-code="POL"]:hover {
    fill: #ff496c;
}

.rf-map [data-code="CHI"]:hover {
    fill: #ff496c;
}

.rf-map [data-code="LIT"]:hover {
    fill: #fefe22;
}
.rf-map [data-code="UKR"]:hover {
    fill: #fefe22;
}
.rf-map [data-code="FIN"]:hover {
    fill: #add65a;
}
.rf-map [data-code="LAT"]:hover {
    fill: #6600ff;
}
.rf-map [data-code="EST"]:hover {
    fill: #bf37e1;
}
.rf-map [data-code="NOR"]:hover {
    fill: #e3954b;
}

.rf-map [data-code="GEO"]:hover {
    fill: #b3b3b3;
}


#buttonContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
    z-index: 9999;
}
#gamePanel {
    position: absolute;
    top: 70px;
    left: 20px;
    z-index: 10;
    background: white;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#question {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

#gameInfo {
    margin-bottom: 8px;
    font-size: 14px;
}

#gamePanel button {
    margin-right: 5px;
    cursor: pointer;
}

.correct {
    fill: #4caf50 !important;
}

.wrong {
    fill: #f44336 !important;
}

.selected {
    fill: #81c784 !important;
}

.game-target {
    stroke: #222 !important;
    stroke-width: 1.5px !important;
}

.correct path,
.wrong path,
.selected path,
.game-target path {
    fill: inherit !important;
}
