/* The Volvo font */
@font-face {
    font-family: volvoFont;
    src: url(/font/volvo_broad.ttf);
}

/* The mandatory elements */
html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0px;
    text-align: center;
    color: navy;
}

/* Header */ 
header {
    font-family: volvoFont;
    font-size: 5vw;
    color: white;
    background-color: navy;
    background-image: linear-gradient(navy 40%, white);
    position: relative;
    height: 6vw;
    max-height: 75px; // - it stops there but the font-size will not work
}

a.header:link, a.header:visited, a.header:hover, a.header:active {
    text-decoration: none;
    color: white;
}

#header_left {
    text-align: left;
    position: absolute;
    top: 0px;
    left: 10px;
}

#header_right {
    text-align: right;
    position: absolute;
    top: 0px;
    right: 10px;
}

/* Navigation bar */
.full_navbar {
    width: 100%;
    min-height: 1px;
}

.navbar {
    width: 15%;
    float: left;
}
 
.navbar:hover .nav_main_content { 
    display: block;  
}

.nav_extra_text {
    width: 82%;
    float: right;
    text-align: left;
    text-decoration: none; 
    margin: 5px 5px 0px 5px;
    padding: 0.5vw 0vw 0.5vw 2vw;
    font-family: Arial, Helvetica, sans-serif;
    color: navy;
}

.small_extra_text {
    display: none;
}

.menu_link { 
    display: block;  
    text-align: left;
    text-decoration: none; 
    margin: 5px 5px 0px 5px;
    padding: 0.5vw 0vw 0.5vw 2vw;
    font-family: Arial, Helvetica, sans-serif;
    color: navy;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.menu_link:hover { 
    color: red;
}

.nav_main_content {
    display: none;
    position: absolute;
    width: 15%;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
}

.nav_main_item {
    position: relative;
    text-align: left;
    padding: 0.5vw 0vw 0.5vw 2vw;
    width: 80%;
    margin: 1px auto;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.nav_main_link {
    margin: auto;
    text-decoration: none;
    color: navy;
}

.nav_main_item:hover {
    background: navy;
}

.nav_main_item:hover .nav_main_link {
    color: red;
}

.nav_main_item:hover .nav_sub_content {
    display: block;
}

.nav_sub_content {
    position: absolute;
    display: none;
    top: 0%;
    left: 100%;
}

.nav_sub_item {
    width: 13vw;
    padding: 0.5vw 0vw 0.5vw 1vw;
    background: white;
    font-size: 14px;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.nav_sub_item:hover {
    background: navy;
    color: red;    
}

.nav_sub_item:hover .nav_sub_link {
    color: red;
}

.nav_sub_link {
    margin: auto;
    text-decoration: none;
    color: navy;
}

/* Body of the sites */
a.body:link, a.body:visited {
    text-decoration: none;
    color: red;    
}

a.body:hover {
    font-weight: bold;
}

a.body:active {
    text-decoration: none;
    color: red;
}

main {
    display: block;
    overflow: auto;
    padding: 0px;
    margin-bottom: 80px;
    background-color: white;
    clear: both;
}

.main_left {
    float: left;
    width: 15%;
    min-height: 1px;
    overflow: hidden;
    z-index: 1;
}

.main_centre {
    float: left;
    width: 70%;
    min-height: 1px;
    text-align: center;
}

.main_right {
    float: left;
    width: 15%;
    min-height: 1px;
    overflow: hidden;
}

.small_section_left, .small_section_right {
    float: left;
    width: 90%;
    padding: 1px;
}

#small_section_space {
    height: 25px;
}

.icon {
    max-width: 60px;
    width: 50%;
    height: auto;
    padding: 1vw;
}

.small_news {
    width: 80%;
    height: auto;
    padding: 1vw;
    color: navy;
}

#text_justify {
    text-align: justify;
}

.col_main {
    width: 46%;
    float: left;
    padding: 1vw;
}

.col_sub {
    width: 24%;
    float: left;
    padding-left: 1vw;
    padding-top: 1vw;
}

form, .content {
    width: 30%;
    margin: 0px auto;
    padding: 20px;
    border: 1px solid lightblue;
    background: white;
    border-radius: 0px 0px 10px 10px;
}

.input-group {
    margin: 10px 0px 10px 0px;
}

.input-group label {
    display: block;
    text-align: left;
    margin: 3px;
}

.input-group input {
    height: 30px;
    width: 93%;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid gray;
}

.btn {
    padding: 10px;
    font-size: 15px;
    color: navy;
    background: lightblue;
    border: none;
    border-radius: 5px;
}

.btn:hover {
    color: white;
    background: navy;
}

table {
    /*font-family: arial, sans-serif;*/
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 5px;
}

ol.dec_list {
    list-style-type: decimal;
}

ol.up_lat_list {
    list-style-type: upper-latin;
}

ol.bul_list {
    list-style-type: disc;
}

.button {
    font-family: volvoFont;
    background-color: white;
    border: none;
    color: navy;
    padding: 2px 7px;
    text-decoration: none;
    font-size: 25px;
    cursor: pointer;
}

.button:hover {
    background-color: navy;
    color: white;
}

/* Slideshow container */
.slideshow-container {
    max-width: 800px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: relative;
    width: auto;
    margin: 0 2px;
    padding: 5px;
    color: white;
    background-color: navy;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: red;
}

.gallery_row::after {
    content: "";
    clear: both;
    display: table;
    
}

.gallery {
    margin: 5px;
    float: left;
    width: 18%;
 }

.gallery:hover {
    border: 1px solid #777;
 }

.help {
    position: relative;
    right: 0;
    top: 50px;
    display: none; 
}

/* Footer */
footer {
    font-family: volvoFont;
    font-size: 5vw;
    color: white;
    background-color: navy;
    background-image: linear-gradient(white, navy 60%);
    z-index: -999;
    
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6vw;
    max-height: 70px;
}

#footer_left {
    text-align: left;
    position: absolute;
    bottom: 0px;
    left: 10px;
    color: red;
}

#footer_count {
    text-align: left;
    position: absolute;
    bottom: 0px;
    left: 18vw;
    color: white;
}

#footer_right {
    text-align: right;
    position: absolute;
    bottom: 0px;
    right: 10px;
}


@media all and (max-width: 500px) {
    /* Header */ 
    header {
        font-size: 7vw;
        height: 8vw;
    }
    
    /* Navigation bar */
    .navbar {
        width: 100%;
        display: block;
    }
    
    .nav_extra_text {
        display: none;
    }
    
    .small_extra_text {
        display: block;
        width: 70%;
        text-align: left;
        text-decoration: none; 
        margin: 5px 5px 10px 25px;
        padding: 0.5vw 0vw 0.5vw 2vw;
        font-family: Arial, Helvetica, sans-serif;
        color: navy;
    }
    
    .navbar:hover .nav_main_content {
        display: block;
    }
        
    .nav_main_content {
        width: 100%;
        display: none; 
        z-index: 10;
    }
    
    .nav_main_item {
        background: white;
    }
    
    .nav_sub_content {
        width: 100%;
        left: 35%;
        z-index: 100;
    }
    
    .nav_sub_item {
        width: 50vw;
    }
                   
    /* Body */
    .main_left {
        width: 100%;
    }

    .main_centre {
        width: 90%;
        padding: 5%;
    }

    .main_right {
        width: 100%;
    }
    
    main {
        margin-bottom: 8vw;
    }
    
    iframe {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    #small_section_space {
        height: 0px;
    }
    
    .small_news {
        width: 100%;
    }
    
    .small_section_right {
        width: 19%;
        padding: 1px;
        //border: 1px solid lightgray;
    }
    
    form, .content {
        width: 80%;
    }
    
    .gallery {
        width: 100%;
    }
 
    /* Footer */
    footer {
        font-size: 7vw;
        height: 8vw;
    }
    
    #footer_count {
    left: 24vw;
}
            
}

@media all and (min-width: 1400px) {
    header {
        font-size: 70px;
    }
    
    footer {
        font-size: 70px;
    }
            
}