@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500&family=Exo+2:wght@500&family=Raleway:wght@500&display=swap');

html, body {
    height: 100%;
    margin: 0;
}

::selection {
	background: #ffdd95;
}

::-moz-selection {
	background: #ffdd95;
}

main {
    min-height: 100%;
    margin-bottom: 10px;
}

.container {
    width: 80%;
    margin: 1% auto;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: radial-gradient(
            rgba(228, 228, 73, 0.1), rgba(228, 228, 73, 0.7)
    );
}

h1 {
    font-size: 36px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.table-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px calc((100% - (450px * 3.5)) / 2);
}

table {
    margin: 1%;
}

table caption {
    font-family: 'Comfortaa', cursive;
    font-size: 18pt;
    text-transform: uppercase;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    padding-bottom: 10px;
}

footer {
    width: 100%;
    height: 80px;

    /*position: absolute;
    bottom: 0;
    left: 0;
    right: 0;*/

    background: #111;
    padding: 20px 0 0 0;
    text-align: left;
}

footer > p {
    font-family: 'Raleway', sans-serif;
    color: white;
    padding: 1% 10%;
    margin: 0;
}

/* Estoshka */
#eesti {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#eesti tr:nth-child(1) {
    background-color: blue;
}
#eesti tr:nth-child(2) {
    background-color: black;
}
#eesti tr:nth-child(3) {
    background-color: white;
}

/* Shejcariya */
#swiss {
    width: 250px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#swiss tr:nth-child(1) {
    background-color: red;
}
#swiss tr:nth-child(2) {
    background-color: red;
}
#swiss tr:nth-child(2) td:nth-child(2) {
    background-color: white;
}
#swiss tr:nth-child(3) {
    background-color: red;
}
#swiss tr:nth-child(3) td:nth-child(2) {
    background-color: white;
}
#swiss tr:nth-child(4) {
    background-color: red;
}
#swiss tr:nth-child(4) td:nth-child(2) {
    background-color: white;
}
#swiss tr:nth-child(5) {
    background-color: red;
}

/* Francija */
#france {
    border-spacing: 0;
    border: 1px solid black;
}
#france tr td {
    width: 150px;
    height: 250px;
}
#france tr:nth-child(1) td:nth-child(1) {
    background-color: blue;
}
#france tr:nth-child(1) td:nth-child(2) {
    background-color: white;
}
#france tr:nth-child(1) td:nth-child(3) {
    background-color: red;
}

/* Germaniya */
#germany {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#germany tr:nth-child(1) {
    background-color: black;
}
#germany tr:nth-child(2) {
    background-color: red;
}
#germany tr:nth-child(3) {
    background-color: yellow;
}

/* Greciya */
#greece {
    border-spacing: 0;
    border: 1px solid black;
}
#greece tr td {
    height: 25px;
}
#greece tr:nth-child(1),
#greece tr:nth-child(3) td:nth-child(2),
#greece tr:nth-child(4),
#greece tr:nth-child(5),
#greece tr:nth-child(7),
#greece tr:nth-child(9) {
    background-color: blue;
}
#greece tr:nth-child(1) td {
    width: 50px;
    height: 50px;
}
#greece tr:nth-child(1) td:nth-child(2) {
    background-color: white;
    width: 25px;
}
#greece tr:nth-child(1) td:nth-child(4) {
    background-color: blue;
    width: 325px;
    height: 25px;
}
#greece tr:nth-child(2),
#greece tr:nth-child(3) td:nth-child(1),
#greece tr:nth-child(6),
#greece tr:nth-child(8) {
    background-color: white;
}
#greece tr:nth-child(3) td {
    height: 25px;
}
#greece tr:nth-child(4) td {
    width: 50px;
    height: 50px;
}
#greece tr:nth-child(4) td:nth-child(2) {
    background-color: white;
    width: 25px;
}
#greece tr:nth-child(4) td:nth-child(4) {
    background-color: white;
    width: 325px;
    height: 25px;
}

/* Shveciya */
#swedish {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#swedish tr:nth-child(2){
    background-color: yellow;
    height: 25%;
}
#swedish tr:nth-child(1) td:nth-child(1),
#swedish tr:nth-child(3) td:nth-child(1) {
    background-color: blue;
    width: 28%;
}
#swedish tr:nth-child(1) td:nth-child(2),
#swedish tr:nth-child(3) td:nth-child(2) {
    background-color: yellow;
    width: 12%;
}
#swedish tr:nth-child(1) td:nth-child(3),
#swedish tr:nth-child(3) td:nth-child(3) {
    background-color: blue;
}

/* Finljandiya */
#finnish {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#finnish tr:nth-child(2) {
    background-color: darkblue;
    height: 25%;
}
#finnish tr:nth-child(1) td:nth-child(1),
#finnish tr:nth-child(3) td:nth-child(1) {
    background-color: white;
    width: 25%;
}
#finnish tr:nth-child(1) td:nth-child(2),
#finnish tr:nth-child(3) td:nth-child(2) {
    background-color: darkblue;
    width: 14%;
}

#finnish tr:nth-child(1) td:nth-child(3),
#finnish tr:nth-child(3) td:nth-child(3) {
    background-color: white;
}

/* Daniya */
#denmark {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#denmark tr:nth-child(2){
    background-color: white;
    height: 15%;
}
#denmark tr:nth-child(1) td:nth-child(1),
#denmark tr:nth-child(3) td:nth-child(1){
    background-color: red;
    width: 23%;
}
#denmark tr:nth-child(1) td:nth-child(2),
#denmark tr:nth-child(3) td:nth-child(2){
    background-color: white;
    width: 8%;
}
#denmark tr:nth-child(1) td:nth-child(3),
#denmark tr:nth-child(3) td:nth-child(3){
    background-color: red;
}

/* Norvegiya */
#norway {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#norway tr:nth-child(2) {
    background-color: blue;
    height: 15%;
}
#norway tr:nth-child(1) td:nth-child(1),
#norway tr:nth-child(3) td:nth-child(1) {
    background-color: red;
    width: 20%;
}
#norway tr:nth-child(1) td:nth-child(2),
#norway tr:nth-child(3) td:nth-child(2) {
    background-color: blue;
    width: 11%;
}
#norway tr:nth-child(1) td:nth-child(3),
#norway tr:nth-child(3) td:nth-child(3) {
    background-color: red;
}
#norway tr td:nth-child(2),
#norway tr td:nth-child(3) {
    border-left: 10pt solid white;
}
#norway tr:nth-child(3) td:nth-child(1),
#norway tr:nth-child(3) td:nth-child(3) {
    border-top: 10pt solid white;
}
#norway tr:nth-child(1) td:nth-child(1),
#norway tr:nth-child(1) td:nth-child(3) {
    border-bottom: 10pt solid white;
}

/* Islandiya */
#island {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#island tr:nth-child(2) {
    background-color: red;
    height: 15%;
}
#island tr:nth-child(1) td:nth-child(1),
#island tr:nth-child(3) td:nth-child(1) {
    background-color: blue;
    width: 20%;
}
#island tr:nth-child(1) td:nth-child(2),
#island tr:nth-child(3) td:nth-child(2) {
    background-color: red;
    width: 11%;
}
#island tr:nth-child(1) td:nth-child(3),
#island tr:nth-child(3) td:nth-child(3) {
    background-color: blue;
}
#island tr td:nth-child(2),
#island tr td:nth-child(3) {
    border-left: 10pt solid white;
}
#island tr:nth-child(3) td:nth-child(1),
#island tr:nth-child(3) td:nth-child(3) {
    border-top: 10pt solid white;
}
#island tr:nth-child(1) td:nth-child(1),
#island tr:nth-child(1) td:nth-child(3) {
    border-bottom: 10pt solid white;
}

/* Izrailj */
#israel {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#israel tr:nth-child(1),
#israel tr:nth-child(5) {
    background-color: white;
    height: 25px;
}
#israel tr:nth-child(2),
#israel tr:nth-child(4) {
    background-color: blue;
    height: 50px;
}
#israel tr:nth-child(3) {
    background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='800'%3E%3Cpath d='M 423.81566,472.85253 H 676.18435 L 550.00001,254.29492 Z m 126.18435,72.85255 126.1843,-218.55765 H 423.81566 Z' fill='none' stroke='blue' stroke-width='27.5'/%3E%3C/svg%3E")
            center no-repeat,
            white;

    height: auto;
    background-size: 60%;
    background-origin: content-box;
    padding: 10px;
}

/* Gruziya */
#georgia {
    width: 450px;
    height: 250px;
    border-spacing: 0;
    border: 1px solid black;
}
#georgia tr:nth-child(1) td:nth-child(1),
#georgia tr:nth-child(1) td:nth-child(3),
#georgia tr:nth-child(3) td:nth-child(1),
#georgia tr:nth-child(3) td:nth-child(3) {
    width: 200px;
    height: 100px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100'%3E%3Cpath d='M 110 20 L 90 20 L 95 45 L 65 40 L 65 60 L 95 55 L 90 80 L 110 80 L 105 55 L 135 60 L 135 40 L 105 45 Z' fill='%23f00'/%3E%3C/svg%3E")
        center no-repeat,
        white;
    background-size: contain;
    background-origin: content-box;
}
#georgia tr:nth-child(1) td:nth-child(2),
#georgia tr:nth-child(2),
#georgia tr:nth-child(3) td:nth-child(2) {
    background-color: red;
}