:root {
    --cal-blue: #21326a;
    --cal-orange: #ea5602;
}

/*region Base*/
* {
    margin: 0;
    padding: 0;
}

*::selection {
    background: #ccc; /* Safari */
}

*::-moz-selection {
    background: #ccc; /* Firefox */
}

::-webkit-input-placeholder {color:silver; opacity:1;}/* webkit */
::-moz-placeholder          {color:silver; opacity:1;}/* Firefox 19+ */
:-moz-placeholder           {color:silver; opacity:1;}/* Firefox 18- */
:-ms-input-placeholder      {color:silver; opacity:1;}/* IE */

html, body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    width: 100%;
    -webkit-text-size-adjust: none;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    color: dimgrey;
}
/*endregion Base*/

/*region Header*/
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 4.5em;
}

.header-logo {
    width: 15em;
    position: absolute;
    top: .5em;
    margin: 0 auto;
}

.header-text {
    font-size: 2.2em;
    flex: 1 1 auto;
    background-color: var(--cal-blue);
    color: white;
    width: 50%;
    padding: 1em 0;
}

.header-text-1 {
    text-align: right;
    padding-right: 4em;
}

.header-text-2 {
    padding-left: 4em;
}
/*endregion Header*/

/*region Main*/
main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4em 1em 0 1em;
    max-width: 80em;
    margin: 0 auto;
    justify-content: flex-start;
}

.events-group {
    padding: 2em 0;
}

.older-events {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.group-title {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: .5em;
}

.group-body {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.older-events-body {
    flex: 1 1 auto;
}

.event {
    display: flex;
    flex-direction: column;
    border-radius: 1.5em;
    width: 23%;
    min-width: 18em;
    flex: 0 0 auto;
    padding: 0 .5em .5em .5em;
    margin: 1em 0;
    position: relative;
}

.event-date {
    font-size: 2em;
    color: white;
    text-align: center;
    flex: 0 0 auto;
    padding: .5em 0;
    font-weight: bold;
}

.event-data {
    border-radius: 1em;
    background-color: white;
    padding: .5em;
    flex: 1 1 auto;
    height: 10em;
    display: flex;
    flex-direction: column;
}

.event-city {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5em;
}

.event-title {
    text-align: center;
    font-size: 1.2em;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-image {
    max-width: 100%;
    padding-bottom: 1em;
}

.actual-event {
    background-color: var(--cal-blue);
}

.older-event {
    background-color: var(--cal-orange);
    height: 30em;
}

.no-events {
    font-size: 1.7em;
    display: flex;
    align-items: center;
}

.header-admin {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--cal-orange);
    display: flex;
}

.header-admin-menu {
    color: white;
    padding: .5em 1em;
    font-weight: bold;
    text-decoration: none;
}

.header-admin-menu i {
    margin-right: .5em;
}

.header-admin-menu:hover {
    background-color: rgba(0, 0, 0, .2);
}

.admin-edit {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    border-radius: .75em 0 .75em 0;
    font-size: 2em;
    font-weight: bold;
    padding: .3em;
}

.event:hover .admin-edit {
    display: block;
}

.actual-edit {
    background-color: var(--cal-orange);
}

.older-edit {
    background-color: var(--cal-blue);
}

.year-select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: inherit;
    text-transform: uppercase;
    font-weight: inherit;
    color: var(--cal-orange);
    border: none;
    padding: 0;
    background-color: inherit;
    display: inline-block;
    cursor: pointer;
}

.year-select:focus {
    outline: none;
}
/*endregion Main*/

/*region Login*/
form {
    display: flex;
    flex-direction: column;
    margin-top: 2em;
    font-size: 1.5em;
    color: dimgrey;
}

.form-line {
    display: flex;
    margin-bottom: .5em;
}

input {
    font-family: inherit;
    font-size: inherit;
    padding: .3em;
    border-radius: .3em;
    color: dimgrey;
    border: 1px solid dimgrey;
}

input[type="checkbox"] {
    width: 1.2em;
    margin-right: .5em;
}

.input-label {
    width: 7em;
    padding: .4em 0;
}

.checkbox-label {
    flex: 1 1 auto;
    padding: .4em 0;
}

button {
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    background-color: var(--cal-blue);
    color: white;
    padding: .3em .5em;
}

button:hover {
    background-color: var(--cal-orange);
}
/*endregion Login*/
