body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #222;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    background-image: url("./media/background.jpg");
    background-size: 100% 100%;
    color: #DA2828;
    padding: 2% 3%;
    text-align: center;
}

.nav {
    display: flex;
    justify-content: right;
    gap: 6%;
}

.nav a {
    color: #f4f4f4;
    text-decoration: none;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
}

nav a.active {
    font-style: italic;
    text-decoration: underline;
}

.nav a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    background: #fff;
    color: #000;
    padding: 8px;
    z-index: 100;
}

.section-link:link{
    color: #DA2828;
}

.section-link:active{
    color: #787373;
}

.section-link:visited{
    color: #787373;
}

h2 {
    text-align: left;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

main {
    padding-left: 10%;
    padding-right: 10%;
    text-align: justify;
    flex-grow: 1;
    font-size: 1.25rem;
}

.text-section{
    padding-bottom: 3%;
}

.form-part{
    margin-bottom: 2%; 
}

::placeholder{
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: #787373;
}

.flex-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

textarea#focus {
    width: 45%;
    resize: vertical;
}

.font-size-button{
    font-size: 1.25rem;
}

.section-video {
    width: 25%;
    float: left;
    padding-right: 10%;
    padding-bottom: 3%;
}

.thor-logo {
    width: 35%;
    float: right;
    padding: 7% 0% 4% 6%;
}

.training-image{
    width: 45%;
    margin: 8% 0%;
    float: right;
    padding: 14% 0% 0% 3%;
}

table.training-table{
    border: 0.1875rem solid black;
    border-collapse: collapse;
}

.table-wrapper {
    float: right;
    padding-left: 3%;
    padding-bottom: 10%;
}

.training-table th,
.training-table td {
    border: 0.0625rem solid black;           
    padding: 0.3125rem;
    text-align: left;
    font-size: 1rem;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.training-table thead{
    background-color: #e6e6e6;
}

.title-with-underline {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
  
.title-with-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.625rem;
    width: 100%;
    height: 0.25rem;
    background-color: #DA2828;
    border-radius: 0.125rem;
}

.image-collage{
    max-height: 90%;
    margin: 0 auto;
    padding-bottom: 5%;
}

.row {
    padding: 0 0.25rem;
    margin-top: 0.5rem;
}

.column-twothird {
    padding: 0 0.25rem;
}

.column-third-upper{
    padding: 0 0.25rem;
}

.column-third{
    padding: 0 0.25rem;
}

.column-twothird img,
.column-third-upper img,
.column-third img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .image-collage .row {
        flex-direction: column;
    }
    main{
        text-align: left;
    }
    .nav a{
        font-size: 1.3rem;
    }
}

@media (max-width: 800px) {
    .image-collage{
        max-width: 100%;
    }

    .row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .column-twothird {
        flex: 60%;
    }
    
    .column-third-upper{
        flex: 40%;
    }
    
    .column-third{
        flex: 33.33%;
    }

}

@media (min-width: 800px) {
    .image-collage{
        max-width: 90%;
    }
    
    .row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .column-twothird {
        flex: 60%;
    }
    
    .column-third-upper{
        flex: 40%;
    }
    
    .column-third{
        flex: 33.33%;
    }
    .nav a{
        font-size: 1.7rem;
    }
}

figure {
    text-align: center;
}
  
figcaption {
    padding-top: 2%;
    font-style: italic;
    font-size: 100%;
    color: #787373;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

figure.right-aligned-caption { 
    text-align: right;
}

figure.left-aligned-caption { 
    text-align: left;
}

footer {
    text-align: right;
    padding: 1.24rem;
    background-color: #222;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.125rem;
}

body.large-font footer {
    font-size: 1.25rem;
}

body.large-font main {
    font-size: 1.5rem;
}

.high-contrast {
    background-color: black;
    color: white;
}

.high-contrast figcaption{
    color:white
}

.high-contrast a {
    color: yellow;
}

.high-contrast .section-link{
    color: yellow;
}

.high-contrast button {
    background-color: white;
    color: black;
    border: 2px solid yellow;
}

.high-contrast ::placeholder{
    color: black;
}

.high-contrast th{
    color: black;
}