@import url('https://fonts.googleapis.com/css2?family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');

/* Local self-hosted font: TAN Buster (placed in ./fonts/TAN-Buster-Font/) */
@font-face {
    font-family: 'TAN Buster';
	src: url('../assets/fonts/TAN-Buster-Font/TAN-BUSTER-Regular.woff2') format('woff2'),
			 url('../assets/fonts/TAN-Buster-Font/TAN-BUSTER-Regular.ttf') format('truetype'),
			 url('../assets/fonts/TAN-Buster-Font/TAN-BUSTER-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --border-radius: 25px;
    --corner-top-outlayer: -5px;
    --corner-bottom-outlayer: 5px;
    --red: #c70f0f;
    --blue: #2c3a7a;
    --green: #13a15d;
    --dark-green: #27600a;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: "TAN Buster", sans-serif;
    font-size: 3rem;
    display: flex;
    justify-content: center;
}

h2 {
    font-family: "TAN Buster", sans-serif;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
}

h3 {
    font-family: "TAN Buster", sans-serif;
    font-size: 1.5rem;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: "Montserrat", sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

a.group-link:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

p.country-name {
    text-align: center;
}

img.guide-title {
    width: 40%;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

img.country-flag {
    width: 80%;
    padding: 0;
    border: solid 5px white;
    height: fit-content;
    border-radius: var(--border-radius);
    background-color: white;
    color: black;
    overflow: hidden;
}

section {
    max-width: 800px;
    padding: 0 16px;
    margin-bottom: 40px;
    width: 100%;
    flex-direction: column;
    display: flex;
    align-items: center;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    color: white;
    width: 80%;
}

.group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--border-radius);
    background-color: white;
}

.group::after {
    z-index: -1;
    content: "";
    position: absolute;
    top: var(--corner-bottom-outlayer);
    left: var(--corner-bottom-outlayer);
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    pointer-events: none;
}

.group::before {
    z-index: -2;
    content: "";
    position: absolute;
    top: var(--corner-top-outlayer);
    left: var(--corner-top-outlayer);
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    pointer-events: none;
    background-color: black;
}

.group.green {
    background-color: var(--green);
}

.group.green::after {
    background-color: var(--red);
}

.group.green::before {
    background-color: var(--blue);
}

.group.red {
    background-color: var(--red);
}

.group.red::before {
    background-color: var(--dark-green);
}

.group.red::after {
    background-color: var(--blue);
}

.group.blue {
    background-color: var(--blue);
}

.group.blue::before {
    background-color: var(--red);
}

.group.blue::after {
    background-color: var(--dark-green);
}

.groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 2%;
}

button {
	border: none;
	cursor: pointer;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

button:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.calendar-btn:hover, .back-btn:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

a.back-btn {
	border-radius: 50px;
	padding: 20px 5% 20px 5%;
	color: white;
	background-image: linear-gradient(315deg, #27600a, #2c3a7a, #c70f0f);
    margin-top: 70px;
    margin-bottom: 50px;
    font-size: 1.2rem;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.calendar-btn {
    border-radius: 50px;
	padding: 20px 5% 20px 5%;
	color: white;
	background-image: linear-gradient(315deg, #acf152 30%, #7ed957, #13a15d);
    margin-top: 70px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    font-size: 1.2rem;
    width: auto;
    font-family: "Montserrat", sans-serif;
    transition: transform 0.3s ease;
    color:#2c3a7a;
}

img.download-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

@media (max-width: 900px) {
    h2 {
        text-align: center;
        font-size: 2rem;
    }
    img.guide-title {
        width: 100%;
    }

    .group{
        margin: 5%;
    }
}

@media (max-width: 600px) {
    .groups {
        grid-template-columns: 1fr;
    }
}

img.knock-out {
    width: 100%;
    height: fit-content;
    margin-bottom: 30px;
    margin-top: 50px;
}

.warning {
    width: min(100%, 28rem);
    padding: 2%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 50px;
}

p.warning-text {
    color: white;
    font-family: "Montserrat", sans-serif;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

footer {
    background-color:hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(10px);
    border-top: solid 1px grey;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 50px;
}

.small {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    color: black;
    margin: 5px 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.socials, .legals {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.socials {
    text-align: left;
    width: 50%;
}

.legals {
    text-align: right;
    width: 50%;
}

.legals > * {
    align-self: flex-end;
}

a.small, p.small {
    width: auto;
    padding: 1%;
    margin: 1%;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
}

a.back-btn > svg.home-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}