/***********************
COLOR VARIABLES
************************/

:root
{
    --main-color: #007ac2;
    box-sizing: border-box;
}

/***********************
MAIN PAGE ELEMENTS
************************/

html
{
    background-image: url(../img/background_anim.gif);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow: hidden;
}

.shade-top
{
    position: absolute;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 48%;
    background: linear-gradient(#04146f, transparent 90%);
    opacity: .8;
}

.shade-bottom
{
    position: absolute;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 22%;
    background: linear-gradient(transparent, #123864);
    opacity: .8;
}

header
{
    margin: 31px 14% 0;
}

.logo
{
    display: block;
    width: 100%;
    margin: 0 auto;
}

.slogan
{
    margin: -5px 2.9% 30px 0;
    text-align: right;
    font-family: 'Francois One', sans-serif;
    font-size: 1.8vw;
    font-weight: normal;
    color: #9f9f9f;
    text-shadow: 0 0 16px rgba(0, 0, 0, .4);
}

/***********************
TEXT STYLES
************************/

h2
{
    margin-bottom: 19px;
    font-family: 'Francois One', sans-serif;
    font-size: 2.4vw;
    font-weight: normal;
    color: var(--main-color);
}

li
{
    margin-bottom: 10px;
}

.marker
{
    font-family: 'Francois One', sans-serif;
    font-size: 1em;
    color: #58586f;
}

.bold
{
    font-weight: bold;
}

.left 
{
    text-align: left;
}

.padding-left
{
    padding-left: 40px;
}

.third-width
{
    width: 30%;
}

.overflow-override
{
    overflow: auto !important;
}

.mail
{
    text-decoration: none;
}

.mail:hover
{
    text-decoration: underline;
}

/***********************
CONTENT STYLES
************************/

.content
{
    position: relative;
    width: 76vw;
    height: 59vh;
/*    min-height: 550px;*/
    top: 3000px; /* Places the content box out of sight initially */
    margin: 0 auto;

    transition: top .6s ease-in-out;
}

/*------/* LABELS */
[type=radio]
{
    display: none;
}

[type=radio]:checked ~ .content-box-wrapper
{
    z-index: 1;
}

label
{
    display: block;
    position: relative;
    left: -55px;
    top: 47px;
    width: 40px;
    height: 35px;
    margin-bottom: 18px;
    padding: 8px;
    background: var(--main-color);
    border-bottom: 3px solid var(--main-color);
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transform: translateX(5px);
    transition: transform .1s ease-in-out,
                background .3s ease-in-out;
}

.author-label
{
    top: 47px;
    background: darkgray;
    border-bottom: 3px solid darkgray;
}

label:hover,
[type=radio]:checked + label
{
    background: white;
    border-bottom: 3px solid var(--main-color);
    transform: scale(1.2);
}

.author-label:hover,
[type=radio]:checked + .author-label
{
    background: #b49070;
    border-bottom: 3px solid white;
}

label:active
{
    transform: scale(1.3);
}

.material-icons.md-24
{
    color: white;
    font-size: 40px;
    margin-top: -2px;
    margin-left: -1px;
}

label:hover .material-icons.md-24,
[type=radio]:checked + label .material-icons.md-24
{
    color: var(--main-color);
}

.author-label:hover .material-icons.md-24,
[type=radio]:checked + .author-label .material-icons.md-24
{
    color: white;
}
/*------/* END LABELS */

.content-box-wrapper
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    
    position: absolute;
    top: 0;
    width: auto;
    height: 100%;
    background: lightgray;
    border-left: 3px solid var(--main-color);
    border-right: 3px solid var(--main-color);
    overflow-y: auto;
}

.content-box
{
    flex: 1 1 300px;
    background-color: white;
    border: 1px solid lightgrey;
    text-align: center;
    overflow: hidden;
}

.content-box.author-content
{
    box-sizing: border-box;
    width: 100%;
    background: url(../img/tram.jpg) no-repeat bottom right;
    background-size: cover;
    border: none;
    border-left: 16px solid #b49070;
    text-align: left;
}

.full-width
{
    width: 100%;
}

.full-height
{
    height: 100%;
}

.no-divider
{
    background-color: white;
}

.no-border
{
    border: none;
}

.img-infos
{
    /*position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    max-width: 100%;
    filter: grayscale(20%);*/
}

.img-angebot
{
    width: 85%;
    margin: auto;
}

.img-portrait
{
    background-image: url(../img/portrait_persoenlich.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    width: 100%;
    height: 100%;
}

.first
{
    order: 1;
}

.second
{
    order: 2;
}

.flex-portrait
{
    flex: 1 1 500px;
}

.signatur
{
    width: 40%;
    margin-top: 20px;
}

.content-text
{
    padding: 0 40px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9em;
    line-height: 1.5;
}

.content-text a
{
    color: var(--main-color);
    text-decoration: none;
}

.domenico,
.gottardi
{
    margin: 3% 0 0 3%;
    font-family: 'Fjalla One', sans-serif;
    font-weight: normal;
    font-size: 5em;
    color: #b49070;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.gottardi
{
    width: 350px;
    margin: 0 0 0 90px;
    color: lightgray;
    text-shadow: 0 0 9px rgba(0, 0, 0, 0.45);
}

.author-content-text
{
    margin: 7px 0 0 40px;
    font-family: 'Fjalla One', sans-serif;
    font-size: 2em;
    font-weight: bold;
    color: lightgray;
    text-shadow: 0 0 9px rgba(0, 0, 0, 0.45);
}

.cd-cover
{
    box-sizing: border-box;
    position: relative;
    width: 35%;
    left: 5%;
    margin-top: 9%;
    filter: grayscale(55%);
    box-shadow: 5px 5px 25px black;
    transition: all .3s ease-out;
}

.cd-cover:hover
{
    margin-top: -3%;
    border: 2px solid #b49070;
    filter: grayscale(0%);
    transform: translateY(10px);
}

/***********************
BUTTON STYLES
************************/

.slide-button
{
    position: absolute;
    width: 40px;
    height: 40px;
    top: 85vh;
    left: 50%;
    margin-left: -20px;
    border-bottom: 4px solid darkgray;
    border-left: 4px solid darkgray;
    border-bottom-left-radius: 5px;
    transform: rotate(135deg);
    opacity: 1;
    transition: opacity .8s;
    animation: buttonBounce85vh .4s ease-out infinite alternate;
}

.slide-button:hover
{
    cursor: pointer;
    border-color: var(--main-color);
    transform: scale(1.2)
               rotate(135deg);
    animation: none;
}

.slide-button:active
{
    transform: scale(1.3)
               rotate(135deg);
}

@keyframes buttonBounce85vh
{
    from { top: 85vh; }
    to { top: 84vh; }
}

@keyframes buttonBounce75vh
{
    from { top: 75vh; }
    to { top: 74vh; }
}

.close-button
{
    position: absolute;
    top: 8px;
    right: -45px;
    width: 20px;
    height: 20px;
    border-bottom: 4px solid darkgray;
    border-left: 4px solid darkgray;
    border-bottom-left-radius: 6px;
    transform: rotate(-45deg);
}

.close-button:hover
{
    border-color: var(--main-color);
    cursor: pointer;
    transform: rotate(-45deg)
               scale(1.2);
}

.close-button:active
{
    transform: rotate(-45deg)
               scale(1.4);
}

/***********************
FOOTER STYLES
************************/

footer
{
    position: absolute;
    bottom: 0;
    left: auto;
    width: 96%;
    margin: 0 2%;
    color: darkgray;
}

footer p
{
    font-family: 'Noto Sans', sans-serif;
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
}

footer a
{
    color: darkgray;
}

.location-pin
{
    position: relative;
    top: 4px;
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
    transform: scale(1.4);
}

.location-pin:hover
{
    filter: none;
    transform: scale(1.7);
}

.location-pin:active
{
    transform: scale(1.85);
}

/***********************
MEDIA QUERIES
************************/

@media screen and (max-width: 1024px)
{
    h2
    {
        font-size: 3.5vw;
    }
    
    .slogan
    {
        font-size: 2.5vw;
    }
    
    .content-text
    {
        font-size: .9em;
    }
}

@media screen and (max-width: 720px)
{
    header
    {
        width: 86%;
        margin: 31px auto 0;
    }
    
    .content
    {
        width: 88%;
    }
    
    h2
    {
        font-size: 4.5vw;
    }
    
    .slogan
    {
        font-size: 3.5vw;
        margin-bottom: 30px;
    }
    
    label
    {
        width: 29px;
        height: 25px;
        border: none;
        border-top: 3px solid var(--main-color);
        border-radius: 4px 4px 0 0;
        cursor: pointer;
        transform: translateY(5px);
    }
    
    label:hover,
    [type=radio]:checked + label
    {
        border: none;
        border-top: 3px solid var(--main-color);
    }
    
    .material-icons.md-24
    {
        font-size: 30px;
        margin-top: -2px;
        margin-left: 0px;
    }
    
    .infos-label
    {
        left: 17px;
        top: -48px;
    }
    
    .angebot-label
    {
        left: 77px;
        top: -110px;
    }
    
    .portrait-label
    {
        left: 137px;
        top: -172px;
    }
    
    .author-label
    {
        left: 197px;
        top: -233px;
        border: none;
        border-top: 3px solid darkgray;
    }
    
    .author-label:hover,
    [type=radio]:checked + .author-label
    {
        border: none;
        border-top: 3px solid white;
    }
    
    .close-button
    {
        right: -26px;
        width: 11px;
        height: 11px;
        border-bottom-left-radius: 4px;
    }
    
    footer
    {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 600px)
{
    h2
    {
        font-size: 6.5vw;
    }
    
    .close-button
    {
        right: -23px;
    }
}

@media screen and (max-width: 500px)
{
    header
    {
        margin-top: 21px;
    }
    
    h1
    {
        margin-bottom: 15px;
    }
    
    .slogan
    {
        font-size: 3.5vw;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .slide-button
    {
        top: 75vh;
        animation: buttonBounce75vh .4s ease-out infinite alternate;
    }
    
    .close-button
    {
        right: 13px;
        top: -33px;
        width: 14px;
        height: 14px;
        border-bottom-left-radius: 4px;
    }
}

@media screen and (max-width: 490px)
{
    .content-text
    {
        font-size: .8em;
    }
}

@media screen and (max-width: 465px)
{

}

@media screen and (max-width: 430px)
{
    
}