/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

sup {
    line-height: 0;
    font-size: 55%;
    display: inline;
    position: relative;
    top: -0.5rem;
}

/* button,
input,
optgroup,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    overflow: visible;
    border: 0;
    outline: 0;
    font: inherit;
    -webkit-font-smoothing: inherit;
    letter-spacing: inherit;
    background: none;
    vertical-align: top;
} */

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

html {
    background: #15151e;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
    font-family: F1;
}

body {
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    outline: 0 !important;
}
a:hover {
    text-decoration: none;
}

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

@font-face {
    font-family: F1;
    font-display: auto;
    src: url(/fonts/Formula1-Regular.woff2) format("woff2"),
        url(/fonts/Formula1-Regular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: F1;
    font-display: auto;
    src: url(/fonts/Formula1-Italic.woff2) format("woff2"),
        url(/fonts/Formula1-Italic.woff) format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: F1Bold;
    font-display: auto;
    src: url(/fonts/Formula1-Bold.woff2) format("woff2"),
        url(/fonts/Formula1-Bold.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: F1Black;
    font-display: auto;
    src: url(/fonts/Formula1-Black.woff2) format("woff2"),
        url(/fonts/Formula1-Black.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: F1Wide;
    font-display: auto;
    src: url(/fonts/Formula1-Wide.woff2) format("woff2"),
        url(/fonts/Formula1-Wide.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: F1YEAR;
    font-display: auto;
    src: url(/fonts/F1YEARRegular.woff2) format("woff2"),
        url(/fonts/F1YEARRegular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.logo {
    width: 20rem;
    max-height: 7rem;
    transition: 0.3s ease all;
}

.logo:hover {
    transform: scale(1.1);
}

.year {
    font-family: F1YEAR;
    font-size: 4rem;
}

.series {
    display: grid;
    grid-auto-flow: dense;
    gap: 2rem 2rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    padding: 2rem;
}

.series > li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 2rem;
    background: var(--series_colour);
}

.series .f1 {
    --series_colour: rgb(225, 6, 0);
}
.series .f2 {
    --series_colour: #004267;
}
.series .f3 {
    --series_colour: #666666;
}

.links {
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.links li {
    flex-grow: 1;
}

.links a {
    background: rgb(21, 21, 30, 0.5);
    display: flex;
    padding: 1rem;
    justify-content: center;
    gap: 1rem;
    border-radius: 2rem;
}

.links a:hover {
    background: rgb(21, 21, 30, 0.9);
    transform: scale(1.1);
}

.links a .icon {
    display: none;
}
