/* font */
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Regular.woff2') format('woff2'),
       url('fonts/OpenSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Bold.woff2') format('woff2'),
       url('fonts/OpenSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Italic.woff2') format('woff2'),
       url('fonts/OpenSans-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-BoldItalic.woff2') format('woff2'),
       url('fonts/OpenSans-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic
}

/* general */
html {
    height: 100%
}
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    box-sizing: border-box
}
main {
    margin: 10px
}

/* header */
header {
    background: linear-gradient(150deg, #00224d, #004d73);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: sticky;
    top: 0
}
header .logo {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-decoration: none
}
header .logo img {
    height: 50px;
    margin-right: 10px
}
header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0
}
header ul li a {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    margin: 0 10px 0 10px;
    padding-bottom: 8px;
}
header ul li a::after {
    content: '';
    background-color: #ffffff;
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    transition: width 0.3s, left 0.3s
}
header ul li a:hover::after {
    width: 100%;
    left: 0
}
header ul li a:visited {
    text-decoration: none
}
.burger {
    display: none
}

/* card view */
.card {
    padding: 10px;
    box-shadow: 0 0 10px #00224d;
    margin-bottom: 10px;
    border-radius: 10px
}
.card .button {
    margin: 10px 0 0 0
}
.card h3 {
    margin: 0
}
.card-subtitle {
    margin: 0
}
.card-details {
    margin: 10px 0 0 0
}

/* hiresember images */
.card-details-image {
    display: flex;
    align-items: flex-start;
    margin: 10px 0 0 0
}
.card-image {
    flex: 1;
    max-width: 100%;
    height: auto;
}

/* mainrow */
.mainrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.mainrowcard {
    box-shadow: 0 0 10px #00224d;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border-radius: 10px;
}
.mainrow img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
}
.mainrow a {
    display: block;
    color: #000000;
    text-decoration: none
}
.mainrow h3 {
    text-align: center;
    margin: 0;
    padding: 5px 0 10px 0
}

/* buttons */
.button {
    background-color: #00224d;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: max-content;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #004d73;
}
.file {
    /*
    background-color: #00224d;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    */
    color: #0000ee;
    text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: max-content;
    margin: 0;
    padding: 0
}

/* about */
.about-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.about-card h3 {
    margin: 10px 0 0 0
}
.about-card {
    display: flex;
    box-shadow: 0 0 10px #00224d;
    box-sizing: border-box;
    width: 100%;
    border-radius: 10px
}
.about-card img {
    width: 150px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 10px
}
.about-content {
    margin: 0 10px 0 0
}
.about-details {
    margin: 10px 0 10px 0
}

/* events */
.event-header h2 {
    margin-bottom: 0;
}
.event-header p {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 10px 0 0 0;
}
.event-image {
    margin-top: 10px;
    max-height: 450px;
}

/* footer */ 
footer {
    background: #00224d;
    color: #ffffff;
    padding: 10px 10px 10px 10px;
    display: flex;
    align-items: flex-start;
}
footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer ul h2 {
    margin: 0;
    padding: 0;
}
footer ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    align-items: center;
    transition: transform 0.3s ease;
}
footer a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
footer a:hover img {
    transform: scale(1.15);
}

/* mobile view */
@media screen and (max-width: 750px) {
    /* header */
    header ul {
        display: none
    }
    header ul.show {
        background-color: #00224d;
        display: flex;
        flex-direction: column;
        position: fixed;
        gap: 5px;
        top: 70px;
        left: 0px;
        right: 0px;
        width: auto;
        padding: 5px;
        border-radius: 0 0 12px 12px
    }
    header ul.show li {
        background-color: #004d73;
        list-style: none;
        border-radius: 10px;
        margin: 0;
        padding: 0;
    }
    header ul.show li a {
        color: #ffffff;
        display: block;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 20px 0 20px 0;
        text-decoration: none;
    }
    
    header ul li a::after {
        all: unset;
    }
    header ul li a:hover::after {
        all: unset;
    }
    header ul li a:visited {
        all: unset;
    }
    .button:hover {
        background-color: #00224d;
    }

    /* footer */
    footer {
        display: grid;
        gap: 10px;
    }
    footer a:hover img {
        all: unset;
    }

    /* hiresember images */
    .card-details-image {
        display: grid;
        gap: 0;
        margin: 10px 0 0 0
    }
    .card-image {
        width: 100%;
        max-width: 800px;
        height: auto;
    }

    /* hamburger menu */
    .burger {
        position: relative;
        width: 40px;
        height: 30px;
        background: transparent;
        cursor: pointer;
        display: block;
    }
    .burger input {
        display: none;
    }
    .burger span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #ffffff;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0s ease-in-out;
    }
    .burger span:nth-of-type(1) {
        top: 0px;
        transform-origin: left center;
    }
    .burger span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
        transform-origin: left center;
    }
    .burger span:nth-of-type(3) {
        top: 100%;
        transform-origin: left center;
        transform: translateY(-100%);
    }
    .burger input:checked ~ span:nth-of-type(1) {
        transform: rotate(45deg);
        top: 0px;
        left: 5px;
    }
    .burger input:checked ~ span:nth-of-type(2) {
        width: 0%;
        opacity: 0;
    }
    .burger input:checked ~ span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 28px;
        left: 5px;
    }
}