@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS variables */
:root {
    --header-height: 3em;
    --nav-width: 324px;

    /* font font-weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold:700;

    /* colors */
    --first-color:#30316E;
    --first-color-dark: #00004B;
    --first-color-darker: #290f09;
    --text-color: #212222;
    --first-color-light: #eae7e6;
    --first-color-lighter: #fffafa;

    /* font and typography */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Margins */
    --margin-1: .5rem;
    --margin-2: 1rem;
    --margin-3: 1.5rem;
    --margin-4: 2rem;
    --margin-5: 2.5rem;

    /* z-index */
    --z-index: 100;
}


@media screen and (min-width: 768px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }

}

/* base */
*,::before, ::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    background-color: var(--first-color-lighter);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, p {
    margin: 0;
}

h3 {
    font-weight: var(--font-semi-bold);
}

ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}



.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--first-color-lighter);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.25rem 0.25rem;
}

.home_title {
    text-align: center;
}

main {
    padding: 1rem 1rem;
    margin-top: var(--header-height);
}

/* Show Menu */
.show {
    left: 0;
}

/* active menu  */
.active {
    color: var(--text-color);
}

/* Rule container */
.rules_container {
    margin-bottom: var(--margin-4);
    background-color: var(--first-color-lighter);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.5rem 0.5rem;
    margin-top: var(--header-height);
}

.rules_container-data {
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
}

.match_day {
    text-align: center;
    margin-bottom: var(--margin-2);
    border-bottom: 2px solid var(--first-color-dark);
}

/* ========== Match Container ==========*/
.match_container {
    display: grid;
    row-gap: 2rem;
    padding: 1.5rem .5rem;
    border: 2px solid var(--first-color);
    border-radius: .5rem;
    text-align: center;
    margin-bottom: var(--margin-2);
}

.team {
    margin-bottom: var(--margin-4);
    background-color: var(--first-color);
    color: var(--first-color-lighter);
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
   
}

.club_name {
    border-bottom: 0.05rem solid var(--first-color-light);
    font-size: var(--h1-font-size);
}



/* Media Querries for screen larger than 768px */
@media screen and (min-width: 768px) {

    /* ========== Match Container ==========*/
.match_container {    
    grid-template-columns: 2fr 1fr 2fr; 
}

.match_num {
    grid-column-start: 1;
    grid-column-end: 4;
}

}

/* Media Querries for screen larger than 1024px */
@media screen and (min-width: 1024px) {
    
}