:root {
    /*20px*/
    /*font-size: 125%;*/
    --color-primary: #f30b0b;
    --color-secondary: #222222;
    --container-size: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    max-width: 100vw;
    max-width: 100dvw;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: whitesmoke;
    font-family: 'Open Sans', sans-serif;
}

header {
    grid-area: header;
    background-color: white;
    box-shadow: 0 4px 10px 0 gray;
    padding: 0em 0.5em;
    position: sticky;
    top: 0;
    z-index: 99;
}

main {
    grid-area: main;
    margin-inline: auto;
    padding: .5em;
}

aside {
    grid-area: aside;
    padding: .5em;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

footer {
    grid-area: footer;
    background-color: var(--color-secondary);
    color: white;
    margin-top: 2em;
    padding: 1em 0;
}

footer :where(h2, h3, h4, h5, h6) {
    color: var(--color-primary);
    font-size: 2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

p {
    margin: 1em 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: min-content;
}

button {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.5em;
    transition: transform 500ms;
    cursor: pointer;
}

button:active {
    filter:brightness(50%);
}

/*big banner so called slider*/
#main-banner {
    grid-area: main-banner;
    padding: 0;
    width: 100%;
    margin-bottom: 2rem;
}

/*header logo*/
#logo {
    width: 100px;
}

/*classes to use*/
/*.flex, .flex-between,*/
/*.container, .container--large, .container--fluid*/
/*.columns, .column, .columns-2, .columns-3*/
/*.card, .card-title, .card-img, .card-info */
/*.heart, .spade*/
/*.carousel, .slide, .btn-next, .btn-prev */
/*.pos-abso-center*/


/*used to apply active to nav*/
.active {
    background-color: var(--color-primary);
    color: white;
}

/*flex*/
.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
}

/*container*/
.container {
    margin-inline: auto;
    padding: .5em;
    max-width: var(--container-size);
}

.container--large {
    max-width: calc(var(--container-size) + 400px);
}

.container--fluid {
    max-width: 100%;
}

header .container {
    padding: 0;
    height: 54px;
}

#main-banner .container {
    padding: 0;
}

/*columns*/
.columns {
    display: grid;
    gap: 2em;
}

/*cards/card*/
.card-img {
    width: 100%;
    /*sorry little one*/
}

.card-info {
    padding: 1em;
}

/*card emblems*/
.spade {
    background: var(--color-primary) url(/img/card-suits-spades.png) no-repeat 10px center;
    color: white;
    padding: 0.5em 2em;
}

.heart {
    background: var(--color-secondary) url(/img/card-suits-hearts.png) no-repeat 10px center;
    color: white;
    padding: 0.3em 2em;
}

/* carousel */
.carousel {
    width: 100%;
    max-width: 2000px;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-inline: auto;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 500ms ease-in;
}
.slide:first-of-type{
    z-index: 2;
}

.slide img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide *:nth-child(2) {
    background: white;
    padding: 1.5em;
}

.btn {
    position: absolute;
    width: 25px;
    height: 50px;
    padding: 10px;
    border: none;
    z-index: 10px;
    cursor: pointer;
    background-color: gray;
    mix-blend-mode: difference;
    font-size: 18px;
    opacity: 0;
    transition: opacity 300ms;
    z-index: 5;
}

.carousel:hover .btn {
    opacity: 0.7;
}

.btn-prev {
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    -webkit-clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
    clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
}

.btn-next {
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    -webkit-clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
}

/*last row of classes*/
.pos-abso-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.line {
    background-color: black;
    border-radius: 10px;
    height: 6px;
    width: 100%;
    position: absolute;
}


/*navigation menu & hamburger*/
nav {
    min-height: 54px;
    min-width: 4.75rem;
}

nav ul {
    list-style-type: none;
}

nav li a {
    padding: 1em 1em;
    display: inline-block;
    transition: background-color 1s, color 1s;
    text-decoration: none;
}



.menu-btn {
    opacity: 0;
}

.menu-btn {
    z-index: 999;
}

.hamburger,
.menu-btn {
    position: absolute;
    height: 3.375rem;
    width: 4.75rem;
    right: 0;
}

.hamburger {
    background-color: var(--color-primary);
    padding: 1rem;
}

.hamburger .line {
    position: absolute;
    background-color: white;
    width: 60%;
}

.hamburger .line:nth-child(1) {
    top: 10px;
}

.hamburger .line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .line:nth-child(3) {
    bottom: 10px;
}

.menu-btn:checked ~ ul {
    visibility: visible;
    transform: translateX(0);
}

.menu-btn:checked~.hamburger .line:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
    top: 50%;
}

.menu-btn:checked~.hamburger .line:nth-child(2) {
    display: none;
}

.menu-btn:checked~.hamburger .line:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
    top: 50%;
}


nav .menu-btn:checked~ul {
    display: block;
}

/*form*/
form {
    padding: 0.5em;
}

form input {
    width: 100%;
    font-size: 1.4em;
    margin: .3em 0;
}

form button {
    width: 100%;
    background-color: var(--color-primary);
    border: none;
    margin: .3em 0;
}

aside>*,
main article {
    background-color: white;
    box-shadow: 0 0px 5px lightgray;
}


/*table and events calender*/
table tr:nth-child(odd),
.events-calender p:nth-child(even) {
    background-color: lightgray;
}

.events-calender p {
    margin: 0;
    padding: 0.3em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table caption {
    text-align: left;
    font-size: 1.17em;
}

td {
    padding: 0.3em;
}

td[data-cell="time"] {
    min-width: 80px;
}

aside table td aside table th {
    font-size: small;
}


header .social {
    font-size: 1.4em;
}

header .social .fa-facebook{
    color: #3c5a9a;
}

header .social .fa-twitter {
    color: #00acee;
}

header .social .fa-google-plus {
    color: #db4a39;
}