* { /* applying style to everything not just to html {} */

    /* variables */
    --red: #F76C6C;
    --grey: #f2f2f2;
    --dark-grey: #ddd;
    --blue: #0088cc;
    --white: #fff;
    --light-red: #fde0e6;
    --light-blue: #e3ecfa;
    --green: #48c774;
    --light-green: #7BFAA7;

    --text-color: black;
    --link-color: var(--red);

    /* rgba(red, green, blue, alpha); where alpha 0 is full transparency and 1.0 is no transparency */
    --light-black: rgba(0, 0, 0, 0.25);


    /* global settings */

    /* makes sure that the elements padding and border are included in the width and height */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

.font-courier {
    font-family: "Courier New", serif;
}

.blue {
    color: var(--blue);
    fill: var(--blue);
}

.light-blue {
    color: var(--light-blue);
    fill: var(--light-blue);
}

.red {
    color: var(--red);
    fill: var(--red);
}

.green {
    color: var(--green);
    fill: var(--green);
}

.white {
    color: var(--white);
    fill: var(--white);
}

.box {
    border-style: solid;
    border-width: thin;
    height: 100px;
    /* horizontal and vertical centering*/
    display: flex;
    justify-content: center;
    align-items: center;
    border-collapse: collapse; /* for border to collapse into single one*/
}

.space-right {
    margin-right: 1%;
}

/* Column that floats next to other columns */
.column {
    float: left;
    padding: 10px;
}

.third {
    width: 32.6%; /* (100% - two spacings)/3.0 = 98%/3.0 = 32.6% */
}

.forth {
    width: 24.25%; /* 100% - three spacings)/4.0 = 97%/4.0 = 24.25% */
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
    margin-bottom: 10px;
}

.center-text {
    text-align: center;
}

.large-text-field {
    height: 200px;
    width: 40%;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    position: relative;
    top: 0.2em;
}

.white-line-below-5 {
    padding-bottom: 5%;
    border-bottom: 1px solid var(--white);
}

.line-above-2 {
    padding-top: 2%;
    border-top: 1px solid;
}

#footer {
    border-top: 0.01em solid;
    padding: 0.4em;
}

/* top spacing */
.space-top-20 {
    margin-top: 20%;
}

.space-top-15 {
    margin-top: 15%;
}

.space-top-10 {
    margin-top: 10%;
}

.space-top-5 {
    margin-top: 5%;
}

.space-top-1 {
    margin-top: 1%;
}

/* bottom spacing */
.space-bottom-20 {
    margin-bottom: 20%;
}

.space-bottom-15 {
    margin-bottom: 15%;
}

.space-bottom-10 {
    margin-bottom: 10%;
}

.space-bottom-5 {
    margin-bottom: 5%;
}


/* Font sizes */
.f1 {
    font-size: 3rem;
}

.f2 {
    font-size: 2.25rem;
}

.f3 {
    font-size: 1.5rem;
}

.f4 {
    font-size: 1.25rem;
}

.f5 {
    font-size: 1rem;
}

.f6 {
    font-size: .875rem;
}

.main-title {
    font-size: 2.5em;
    line-height: 1.0em;
}

.btn-big {
    width: 100%;
    height: 200%;
}

.grid-four-fifths {
    -ms-flex-preferred-size: 80%;
    flex-basis: 80%;
    max-width: 80%;
}

.offset-5, .offset-five {
    margin-left: 5%;
}

.grid-ninety {
    -ms-flex-preferred-size: 90%;
    flex-basis: 90%;
    max-width: 90%;
}

@media (min-width: 40em) {
    .offset-eighth {
        margin-left: 12.5%;
    }

    .offset-sixth {
        margin-left: 16.66667%;
    }

    .table-wide {
        width: 150%;
        max-width: initial;
        margin-left: -25%;
    }
}

#cookie-banner {
    position: fixed;
    bottom: 40px;
    left: 10%;
    right: 10%;
    width: 80%;
    padding: 5px 14px;
    align-items: center;
    justify-content: space-between;
    background-color: #eac2b8;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
}

.btn-red:hover {
    background-color: var(--red);
    border-color: var(--red);
}

.btn {
    background-color: var(--light-blue);
    border-color: transparent;
    color: var(--blue);

    border-radius: 3px;
}

.hover-blue {
    color: var(--grey);
    background-color: var(--blue);
    border-color: var(--blue);
}

.btn-red {
    color: var(--red);
    fill: var(--light-red);
    background-color: var(--light-red);
    border-color: transparent;

}

.btn-red:hover {
    background-color: var(--red);
    border-color: var(--red);
}

.btn-green {
    background-color: var(--light-green);
    border-color: transparent;
    color: var(--green);

    border-radius: 3px;
}

.btn-green:hover {
    background-color: var(--green);
    border-color: var(--green);
}

/* make square fields slightly rounded*/
input[type="text"], textarea, select {
    /* css 3 */
    border-radius: 4px;
    /* mozilla */
    -moz-border-radius: 4px;
    /* webkit */
    -webkit-border-radius: 4px;
}

table td, table th {
    border: 1px solid var(--dark-grey);
    padding: 8px;
}

table td {
    /* to allow new lines inside the table cells*/
    white-space: pre-wrap;
    word-wrap: break-word
}

table.first-right td:first-child, table.first-right th:first-child {
    text-align: right;
}

table tr:nth-child(even) {
    background-color: var(--grey);
}

table tr:hover {
    background-color: var(--dark-grey);
}

table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: var(--light-blue);
    color: white;
}

.social {
    margin-left: 16px;
}

/* making a required filed none look like none required one */
.subscribe-mail, input[type="email"]:required {
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px #ddd;
}

/* decenter text when email field in subscribe form is clicked*/
.subscribe-mail, input[type="email"]:focus {
    text-align: left;
}

.max-width-8 {
    max-width: 8em;
}


.max-width-5 {
    max-width: 5em;
}

@media (min-width: 40em) {
    .max-width-8 {
        max-width: 16em;
    }

    .max-width-5 {
        max-width: 10em;
    }
}

.max-height-25 {
    max-height: 25em;
}

.max-height-50 {
    max-height: 50em;
}

.max-height-75 {
    max-height: 75em;
}

.red-background {
    color: var(--grey);
    background-color: var(--red);
}

.adjustable-height {
    min-height: 50px;
}