:root{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
body{
    padding: 0;
    margin: 0;
    position: relative;
    background-color: white;
    overflow: hidden;
}


div#interactive_logo{
    display: none;
}

/*Strona będzie podzielona na 3 divy w 1 divie dla wykonania prawidłowych animacji!*/
div#main_site_body{
    background-color: whitesmoke;
    position: relative;
    color: black;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;

}
div#main_site_menu{
    background-color: whitesmoke;
    position: relative;
    box-shadow: 0 5px 10px silver;
    color: lightgreen;
    font-size: 160%;
    width: 100%;
    height: 8vh;
    z-index: 10;
}
/*
    Menu musi zostać podzielone na 2 fragmenty
        - Logo
        - Menu
*/
div#main_site_menu div#logo{
    width: 45%;
    height: 100%;
    color: lightgreen;
    float: left;
    padding: auto 0;

}
div#main_site_menu div#logo img{
    position: relative;
    display: flex;
    left: 10px;
    right: 0;
    height: 100%;
    width: 25%;
}



div#main_site_menu nav{
    width: 55%;
    height: 100%;
    list-style: none;
    display: flex;
    justify-content: center;
    float: left;
}

div#main_site_menu #phone_nav{
    display: none;
}




ol,ul {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
    margin-top: 0;
    list-style: none;
    list-style-type: none; 
    padding: 0px; 
    margin: 0px
}


div#main_site_menu nav > a,nav ol li > a,ol > li{
    border-radius: 8px;
    position: relative;
    list-style: none;
    margin: auto 10px;
    text-align: left;
    color: green;
    text-decoration: none;
}
div#main_site_menu nav a > img{
    position: relative;
    margin: auto;
    padding: auto;
    width: 40px;
    height: 30%;
}

ul{
    flex-direction: column;
}

ol{
    margin: auto 5px;
    width: auto;
    height: auto;
    max-height: 100%;
    position: relative;
}

ol:hover li > a{
    position: relative;
    color: whitesmoke;
    padding: 5% 15px;
    justify-content: center;
    transition: padding 60ms ease-in-out, color 80ms ease-in-out;

}

ol:hover{
    margin: auto 20px;
    transition: margin 80ms ease-in-out;
}

ol:hover > li{
    border-collapse: separate; 
    text-align: center;
    background-color: rgba(0, 160, 0, 0.4);
    transition: background-color 80ms ease-in-out;
}

ul > li:first-child{
    border-collapse: separate; 
    border-radius: 6px 6px 0 0;
}

ul > li:hover{
    background-color: rgba(223, 236, 236, 0.349);
}

ul li > a{
    display: block;
    position: relative;
    width: 70%;
    text-decoration: none;
}

ul > li{
    clear: both;
    text-align: left;
    max-height: 100px;
    height: auto;
    width: auto;
    max-width: 100%;
    border: 3px solid white;
}

ul > li:last-child{
    border-collapse: separate; 
    border-radius: 0 0 6px 6px;
}

div#main_site_menu nav > a:hover{
    margin: auto 20px;
    background-color: rgb(0, 160, 0);
    opacity: 0.4;
    color: whitesmoke;
    padding: 1% 3%;
    font-size: 105%;
    transition: margin 60ms ease-in-out, background-color 80ms ease-in-out, color 80ms ease-in-out, padding 60ms ease-in-out, opacity 40ms ease-in-out,font-size 60ms ease-in-out;
}



.icon{
    border-radius: 8px;
    position: relative;
    margin: auto 1%;
}

.icon:hover{
    background-color: rgb(0, 207, 0);
    margin: auto 2%;
}

div#main_site_menu nav > a.selected,nav ol li > a.selected{

    color: darkolivegreen;
    text-decoration: underline;
    padding: 1% 5%;
}
div#main_site_menu nav > a.selected:hover{
    background-color: green;
    color: whitesmoke;
    margin: auto 20px;
    transition: background-color 80ms ease-in-out, color 80mss ease-in-out, margin 60ms ease-in-out;
}

ol:hover li > a.selected{
    position: relative;
    color: whitesmoke;
    padding: 5% 15px;
    justify-content: center;
    transition: padding 60ms ease-in-out, color 80ms ease-in-out;

}

nav ol li ul{
    border-radius: 6px;
    background-color: rgb(0, 160, 0);
    color: white;
    font-size: 45%;
    min-width: 120%;
    height: auto;
    width: auto;
    max-width: 100%;
    display:none;
    position: absolute;
    top: 110%;
}
nav ol li:hover > ul,ol:hover > li > ul{
    display: flex;
}


div#main_site_info{
    
    z-index: 9;
    justify-content: center;
    clear: both;
    background-color: white;
    background: linear-gradient(120deg ,rgb(255, 255, 255),rgb(255, 255, 255), rgb(173, 173, 173));
    position: relative;
    color: black;
    width: 100%;
    height: 87vh;

}



div#main_site_footer{
    z-index: 10;
    background-color: rgb(219, 219, 219);
    box-shadow: 0 -5px 10px silver;
    display: flex;
    justify-content: center;
    position: relative;
    color: black;
    font-size: 150%;
    text-align: center;
    width: 100%;
    height: 5vh;
}

div#main_site_footer > img {
    position: relative;

    min-height: 45%;
    min-width: 120px;
    height: auto;
    max-height: 70%;
    width: auto;
    max-width: 170px;
    margin: auto 30px;
    display: inline;
    overflow: hidden;

    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    
    from{transform: translateX(-250vw);}
    to{transform: translateX(250vw);}

}

@media screen and (max-height: 400px){

    div#main_site_menu nav{
        display: none;
    }

    div#logo{
        width: 100%;
    }
    
}


@media screen and (max-width: 420px), screen and (max-width: 1080px) {

    :root{
        overflow: hidden;
    }

    body{
        overflow-y: scroll;
        overflow-x: hidden;
    }

    div#logo{
        display: none;
    }

    div#interactive_logo{
        display: block;
        width: 60%;
        height: 100%;
        color: lightgreen;
        float: left;
        padding: auto 0;
    }

    div#interactive_logo > a{
        width: 100%;
        height: 100%;
    }


    div#interactive_logo a > img{
        position: relative;
        display: flex;
        top: 0;
        left: 10px;
        right: 0;
        height: 100%;
        width: 80%;
    }


    div#main_site_footer > img {
        position: relative;
        height: auto;
        max-height: 80%;
        width: auto;
        min-width: 80px;
        max-width: 90px;
        margin: auto 15px;
        display: inline;
        overflow: hidden;
    
        animation: scroll2 65s linear infinite;
    }
    
    @keyframes scroll2 {
        
        from{transform: translateX(-2480px);}
        to{transform: translateX(2480px);}
    
    }

    div#main_site_menu #phone_nav{
        display: flex;
        float: left;
        width: 40%;
        height: 100%;
    }

    div#main_site_menu #phone_nav > img{
        height: 80%;
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        float: right;
        padding: auto 10px;
        width: 15%;
    }

    div#Menu_Hidden{
        background-color: rgb(238, 238, 238);
        display: none;
        width: 100%;
        height: auto;
        max-height: 30vh;
        position: absolute;
        left: 0;
        z-index: 20;
        top: 8vh;
        margin: 0;
        padding: 0;
        justify-content: center;
        opacity: 1;
    }


    div#Menu_Hidden > a{
        position: relative;
        margin-top: 0;
        margin-bottom: 0;
        display: block;
        background-color: rgb(245, 245, 245);
        text-align: center;
        margin-right: 8px;
        text-decoration: none;
        color: green;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        height: auto;
        width: 100%;
        border-top: 1px solid gray;
    }

    .phone_selected{
        text-decoration: underline;
        font-weight: bolder;
    }

    div#Menu_Hidden > a:last-child{
        border-bottom: 1px solid gray;
    }
    div#main_site_menu #phone_nav > img:hover{
        background-color: rgb(245, 245, 245);
    }

    div#main_site_menu #phone_nav > img:hover + div#Menu_Hidden,div#Menu_Hidden:hover{
        display: block;
    }

    div#main_site_menu nav{
        display: none;
        width: 0%;
    }

    nav > a{
        display: none;
    }

    

}


@media screen and (max-width: 1080px) and (orientation: landscape){

    div#interactive_logo a > img{
        height: 100%;
        width: 30%;
    }

    div#main_site_menu #phone_nav > img{
        width: 5%;
    }

    
}