@font-face {
	font-family: Edo;
	src: url('edo.woff');
	font-display: swap;
}

@font-face {
	font-family: Hind;
	src: url('Hind-Medium.woff');
	font-display: swap;
}

:root {
	font-family: Hind, sans-serif;
	font-size: 1rem;
	--user-font-scale: 1rem - 16px;
	font-size: clamp(0.875rem, 0.4626rem + 1.0309vw + var(--user-font-scale), 1.25rem);
    --clr-dark: 60 4% 11%;
    --clr-grey: 60 1% 34%;
    --clr-light: 60 1% 80%;
    --clr-back: 51 38% 90%;
    --clr-darkback: 51 30% 75%;
    --clr-yellow: 54 100% 69%;
    --clr-orange: 19 97% 43%;
}

body {
    margin: 0;
}

html {
    background-color: hsl(var(--clr-back));
    color: hsl(var(--clr-dark));
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: Edo;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.7rem;
    color: hsl(var(--clr-grey));
}

main {
    min-height: 1vh;
    max-width: 80rem;
    margin: auto;
    padding: 2rem 0.5rem;
}

.vspace {
    height: 2rem;
}

.card_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 50vh;
    padding: 1rem;
    /* background-color: hsl(var(--clr-darkback)); */
    background-image: linear-gradient(to bottom right, hsl(var(--clr-yellow)/0.8), hsl(var(--clr-orange)/0.8));
    border-radius: 1rem;
    box-shadow: 0.25rem 0.25rem 0.5rem hsl(var(--clr-dark)/0.6);
}

#next_matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

table {
    font-size: 1.10rem;
    border-spacing: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0.25rem 0.25rem 0.5rem hsl(var(--clr-dark)/0.6);
    user-select: none;
    overflow-wrap: break-word;
    table-layout: fixed;
}

td, th {
    vertical-align: middle;
    border: 0px solid black;
    padding: 0.25rem;
}

th {
    padding: 0.5rem;
}

tr {
    color: hsl(var(--clr-dark));
    background-color: hsl(var(--clr-darkback));
}

tr:nth-child(even){
    color: hsl(var(--clr-dark));
    background-color: hsl(var(--clr-back));
}

tr:first-child {
    color: hsl(var(--clr-light));
    background-color: hsl(var(--clr-dark));
}

.match .tab_teamA {
    text-align: right;
    width: 47%;
}
.match tr:nth-child(2) td:nth-child(2){
    text-align: center;
    width: 6%;
}
.match .tab_teamB {
    text-align: left;
    width: 47%;
}

.match tr:last-child{
    text-align: center;
}

.ref_wrapper {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.match img {
    height: 1rem;
}

#standings {
    /* margin: auto 0; */
    text-align: center;
}

#standings th:nth-child(2) {
    width: 3rem;
} 

#standings th:nth-child(3) {
    width: 2.5rem;
} 

#standings th:nth-child(4) {
    width: 4.5rem;
}

#standings td:first-child {
    text-align: left;
    padding-left: 0.5rem;
} 

.hidden {
    display: none;
}