@font-face {
    font-family: Buick;
    src: url(./buick\ rounded.ttf);
}

* {
    margin : 0;
    padding : 0;
    font-family: Buick, sans-serif;
}

body {
    height : 100dvh;
    width : 100dvw;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;

    background-image: url("./images/background.jpg");
    background-size: cover;
    background-attachment: fixed;
    color : white;
    font-size : 2rem;
}

img {
    max-width : 66%;
}

#main {
    display: flex;
    flex : 1;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    margin : auto;
}

#header, #sidebar {
    min-height : 100dvh;
    max-width : 40dvw;
    display: flex;
    flex : 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.6);

    border-right : 0.3rem solid white;
    transition : max-width 0.5s, max-height 0.5s;
    overflow: hidden;
}

#header.sideopen {
    max-height : 0;
    max-width : 0;
}

#sidebar {
    max-width: 0;
    max-height : 0;

    overflow : hidden;
}

#sidebar.sideopen {
    max-width : 40dvw;
    max-height : 100%;
}

#close {
    position : relative;
    top : 1rem;
    left : 1rem;
    width : 2rem;
    height : 2rem;

    display : block;
    margin : 1rem 0;
    padding : 1rem 0;

    cursor: pointer;
}

.header-text, .contact {    
    font-size: 3rem;
    text-align : center;
    color : #AC2126;
    margin : 5dvh 5dvw;
}

.header-text {
    text-shadow : 0.1rem 0.1rem 0.1rem black;
}

.header-text span {
    transition : color 1s;
}

.header-text:hover {
    cursor : none;
}

.header-text:hover > span {
    color : #E25F24;
}

.contact a {
    color : #AC2126;
    text-decoration: none;

    padding : 1rem;
    margin : 0;

    text-shadow: 0.1rem 0.1rem 0.1rem black;
    transition : color 1s;
}

.contact a:hover {
    color : #E25F24;
}

#content {
    max-height : 100dvh;
    max-width : 60dvw;
    flex : 2;
    display: grid;
    grid-template-columns: 50% 50%;

    border-left : 0.3rem solid white;
    margin : 0 0 0 1rem;
}

.selection {
    display : flex;
    flex-direction: column;
    flex : 1;

    align-items: center;
    justify-content: center;
    margin : 1rem;
}

.selection img {
    transform : scale(0.75);
    transition : transform 0.5s, border 1s;
}

.selection.active > img {
    transform: scale(1.0) rotateY(360deg);

    border : 0.1rem solid white;
}

.selection.active > span, .selection:hover > span {
    width : 66%;
    background-color : white;
    color : #57B0CE;
    text-shadow : 0.1rem 0.1rem 0.1rem navajowhite;
}

.selection span {
    width : 49.5%;
    padding : 1rem 0;
    text-align: center;
    border : 0.1rem solid white;
    border-top : 0px;

    transition : width 1s, background-color 1s, color 1s, text-shadow 0.5s;
}

#credits {
    transform: rotateZ(90deg);
    transform-origin : top right;
    font-size: 0.5rem;
    position : absolute;
    top : 50%;
    right : 0.5rem;
}

#credits span a {
    color : navajowhite;
}

@media only screen and (max-width: 600px) {
    body {
        font-size : 0.5rem;
    }
    .header-text, .contact {    
        font-size: 1rem;
    }
}
@media only screen and (min-width: 600px) {
    body {
        font-size : 1.0rem;
    }
    .header-text, .contact {    
        font-size: 1.5rem;
    }
}
@media only screen and (min-width: 768px) {
    body {
        font-size : 1.1rem;
    }
    .header-text, .contact {    
        font-size: 1.7rem;
    }
}
@media only screen and (min-width: 992px) {
    body {
        font-size : 1.5rem;
    }
    .header-text, .contact {    
        font-size: 2.2rem;
    }
}
@media only screen and (min-width: 1200px) {
    body {
        font-size : 2rem;
    }
    .header-text, .contact {    
        font-size: 3rem;
    }
} 

@media (orientation: portrait) {
    * {
        font-size : 1rem;
    }

    #main {
      flex-direction : column-reverse;
    }

    #content {
        padding : 0;
        margin : 0;
        min-height : 0;
        max-height : 60dvh;
        min-width : 100dvw;

        border-left : none;
        border-bottom : 0.3rem solid white;
    }

    #sidebar {
        border-left : none;
        border-bottom : 0.3rem solid white;
    }

    #header, #sidebar {
        min-height : 0;
        max-height : 100%;
        min-width : 100dvw;

        border-right : none;
        border-top : 0.3rem solid white;
    }

    .header-text, .contact {    
        font-size: 1rem;
    }

    #header.sideopen {
        min-height : 100%;
        max-height : 100%;
        min-width : 100dvw;
    }

    #sidebar.sideopen {
        max-height : 100%;
        min-width : 100dvw;
    }

    #close {
        display : none;
    }

    #credits span {
        font-size: 0.3rem;
    }

    #credits span a {
        color : navajowhite;
        font-size: 0.3rem;
    }
  }