:root {
    --side-margin: 8vw;
}

/*#region BodyLayout*/

body {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;

    overflow-x: hidden;
}

header {
    grid-column: 1 / -1;
    grid-row: 1;
}

/*#endregion BodyLayout*/

/*#region HeaderLayout*/

header {
    display: grid;
    grid-template-columns: var(--side-margin) 1fr 5vw minmax(auto, 600px) var(--side-margin);
    grid-template-rows: 1fr;
}

header h1 {
    margin: 0.5em 0;
}

header > div {
    grid-column: 2;
    grid-row: 1;
}

header nav {
    grid-column: 4;
    grid-row: 1;
}

#header-menu {
    grid-column: 4;
    grid-row: 1;
    display: none;

    align-items: center;
    justify-content: right;
}

#header-menuIcon {
    height: 50%;
    aspect-ratio: 1 / 1;

    background: url("../img/icons/menu.png") no-repeat right;
    background-size: contain;
}

/*#endregion HeaderLayout*/

/*#region TitleLayout*/

header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

#header-logo {
    max-height: 3em;
}

/*#endregion TitleLayout*/

/*#region NavLayout*/

header nav ul {
    margin: 0;
    height: 100%;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
}

header nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*#endregion NavLayout*/

/*#region MainLayout*/

main {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: 100%;

    row-gap: 5vh;
    margin-top: 5vh;
    margin-bottom: 5vh;

    min-height: 76vh;
}

.main-type1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    width: 100%;

    flex: 0 0 auto; 
    padding: 0 var(--side-margin);
}

.main-type1 div {
    flex: 1;
}

.main-type2 {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 5vw;
    width: 100%;

    flex: 0 0 auto; 
    padding: 0 var(--side-margin);
}

.main-type1 img {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.main-type2 a {
    flex: 1;
}

.main-type2 div {
    display: flex;
    flex-direction: column;

    align-items: start;
    justify-content: end;

    padding: 0;
}

.main-type2 img {
    width: 100%;
    min-width: 0;
    object-fit: cover;
    aspect-ratio: 1.7 / 1;
    object-position: left center;
}

.main-type2 h3 {
    margin-bottom: 0;
    margin-top: 0.5em;
}

.main-type3 {
    padding: 0 var(--side-margin);
}

.main-type4 {
    padding: 0 var(--side-margin);
}

.main-box {
    margin-bottom: 5vh;
}

.main-type4-flex {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5vw;
    row-gap: 5vh;
}

.main-type4-flex > * {
    flex: 1 1 500px;
    min-width: 0;
}

.main-type4-box {
    display: flex;
    flex-direction: row;
    column-gap: 1.5em;
    align-items: stretch;

    padding: 1em;
}

.main-type4-box > img, .main-type4 div img {
    height: 100%;
}

.main-type4-box div {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 0 1 auto; 
    min-width: 0; 
}

.main-type4-icon {
    max-height: 160px;
}

.main-type4-box a {
    max-height: 5vh;
    margin-top: 1em;
    justify-self: end;
}

.main-type4-box div h4 {
    margin: 0;
}

.main-type4-googlePlay {
    max-height: 2vh;
    align-self: flex-end;
    margin-left: auto;
}

.main-type4-box button {
    padding: 0.5em;
    margin-top: 1em;
}

.main-type4-box div {
    flex: 1;
}

.main-type5 {
    padding: 0 var(--side-margin);
}

.main-type5-form{
    display: flex;
    flex-direction: column;
}

#main-type5-submit {
    margin-top: 2em;
}

form label {
    margin-top: 1em;
    margin-bottom: 0.3em;
}

form input {
    height: 35px;
}

#message {
    height: 100px;
}

.main-type6 {
    padding: 0 var(--side-margin);
}

.main-type6-slides img {
    height: 300px;
}

.main-type6-slides {
  display: flex;
  width: max-content;
  column-gap: 1em;
}

.main-type6-content {
  overflow: hidden;
}

/*#endregion MainLayout*/

/*#region FooterLayout*/

footer{
    height: auto;
    padding: 1em var(--side-margin);
    display: flex;
    grid-template-columns: 1fr;
    justify-content: space-between;
}

footer p {
    margin-bottom: 0;
}

footer a:hover {
    text-decoration: underline;
}
/*#endregion FooterLayout*/

/*#region Responsive*/

@media only screen and (max-width: 800px) {
    header nav {
        display: none;
    }

    #header-menu {
        display: flex;
    }

    #header-menu:hover + nav,
    nav:hover {
        display: block;
        position: absolute;
        top: 80px;
        right: 0px;
        width: 200px;
        height: auto;

        background-color: var(--neutral700);
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul li {
        margin-left: 2vw;
    }

    main .main-type1 {
        flex-direction: column;
        text-align: center;
    }

    main .main-type2 {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }

    .main-type4-googlePlay {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    .main-type4-icon {
        display: none;
    }
}

/*#endregion Responsive*/