/*
    General structure layout
*/

body {
    margin: 0 5% 0 5%;
    background-color: #FFFFFF;
}

main,
header,
nav,
footer,
#content,
#mainPos,
#teacherContainer,
#vehicleContainer {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    display: block;
    float: left;
}

main {
    width: 75em;
}

header {
    max-height: 20%;
    min-height: 20%;
    height: 20%;
}

nav {
    max-height: 10%;
    height: 10%;
    min-height: 10%;
}

#content {
    margin-bottom:2em;
}

p {
    font-family: "calibri", sans-serif;
}


/*
    General headline layouts
*/

h1,
h2,
h3,
h4,
h5,
h6,
h7 {
    font-family: "calibri", sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 1.7em;
    margin: 0.6em 0;
}

h3 {
    font-size: 1.1em;
    margin: 0.5em;
}

h4 {
    font-size: 1.3em;
    margin: 0;
    padding: 0.5em;
}

h5 {
    margin-bottom: 0.9em;
}

h6 {
    font-size: 1em;
    font-style: italic;
}


/* Footer layout*/

footer {
    max-height: 10%;
    height: 10%;
    min-height: 10%;
    max-width: 100%;
    width: 100%;
    min-width: 100%;
}

#contact-details {
    max-height: 15%;
    height: 15%;
    min-height: 15%;
}

#contact-details h5 {
    margin: 0.2em 0.5em;
    font-size: 1.2em;
    font-style: italic;
    font-weight: bold;
}

.adress-details {
    float: left;
    margin: 0.5em;
}

.email-details {
    float: left;
    margin: 0.5em;
}

.tel-details {
    float: left;
    margin: 0.5em;
}

.adress-details h6,
.email-details h6,
.tel-details h6 {
    font-family: "calibri";
    font-size: 1em;
    font-weight: bold;
    font-style: italic;
    margin: 0;
}

.adress-details p,
.email-details p,
.tel-details p {
    font-family: "calibri";
    font-size: 1em;
    font-style: italic;
}


/* Section 1 layout */

#firstSection {}

#firstSection h1 {
    font-family: "calibri";
    font-size: 1.7em;
    font-weight: bold;
    margin: 0.6em 0;
}

section h3{
    font-size:1.3em;
    margin:0;
    padding:0.2em;
}
/*
    Viewing window for items in slidshow
    Width is how many items can fit in the slideshow.
    Negative margin is how many is visible(at this moment 2(100% = 2 * 50%)
    Depending on parent view container ofc
*/

#mainPos {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    overflow: hidden;
}

#firstSection p {
    font-family: "calibri";
    font-size: 1em;
    line-height: 1.2em;
    margin: 0.3em 0.3em;
}


/* Presentation page specific settings*/

#mainPos section {

}
#itemContainer{
    
    margin: 2% 2% 5% 0;
}
#teacherViewport,
#vehicleViewport {
    margin-bottom: 0.3em;
}

#teacherContainer,
#vehicleContainer {
    clear: left;
    margin-left: -50%;
    max-width: 200%;
    width: 200%;
    min-width: 200%;
}

#teacherContainer {
    font-family: "calibri", sans-serif;
    font-size: 1em;
    line-height: 1.2em;
    margin: 0.125em 0 0.125em 0;
}

#vehicleContainer {
    margin: 0.125em 0 0.125em 0;
    font-family: "calibri", sans-serif;
    font-size: 1em;
    line-height: 1.2em;
}


/*
    width setting for 4 items in container with 2 visible;
*/

.teacher,
.vehicle {
    float: left;
    min-width: 25%;
    width: 25%;
    max-width: 25%;
    overflow: hidden;
}

.teacher img {
    max-width: 50%;
    max-height: 200px;
    float: right;
    margin-left: 0em;
}

.vehicle img {
    max-width: 100%;
}


/* First section courses site*/

#carContainer {
    display: block;
    width: 100%;
    height: 25%;
    margin-bottom: 0.8em;
}

#mcContainer {
    display: block;
    width: 100%;
    height: 25%;
    margin-bottom: 1em;
}

#mcContainer h3,
#carContainer h3 {
    font-size: 1.3em;
    padding: 0.2em;
    margin: 0.6em 0;
}

.courseAndPrice {
    height: 15%;
    width: 100%;
}

.course {
    display: block;
    height: 15%;
    width: 80%;
    font-family: "calibri", sans-serif;
    font-size: 1em;
    line-height: 1.2em;
    padding: 0.4em 0.4em 0.4em 0;
}

.course h5 {
    margin-bottom: 0.3em;
}

.price {
    font-family: "calibri";
    width: 20%;
    padding: 0.8em 0;
    float: right;
    display: inline;
    margin-top: 0.5em;
    text-align: center;
}
/* Needed to align text with courses. Top one only needed*/
#carContainer div:nth-child(2){
    margin-top:-0.4em;
}



/* Layout meny */

nav {
    text-align: center;
    margin: auto;
}

nav section div {
    display: none;
}

nav div div {
    margin: 0 0em;
    display: block;
}

nav div div a {
    display: block;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
}

nav div div a:link,
nav div div a:visited {
    text-decoration: none;
}

nav section:hover > div,
nav section:hover > div div {
    display: block;
}

nav div div a:hover {
    background-color: #FFFAF0;
}


/* Contact form layout/behaviour */

#contact_form {
    width: 100%;
    margin-top:2em;
}

#contact_form label {
    display: inline-block;
    width: 100px;
    text-align: left;
    font-family: sans-serif;
}

#submit_button {
    padding: 0.3em 1em;
    font-family: "calibri";
    font-size: 1em;
}

textarea {
    vertical-align: top;
    height: 5em;
}

.error {
    display: block;
    margin-left: 10px;
}

.error_show {
    margin-left: 10px;
}

form div {
    font-size: 1.1em;
    margin: 0em 1em 1.5em 1em;
}
form div input{
    border: 1px inset;
}

form p {
    font-size: 0.8em;
    font-style: italic;
    height: 0.8em;
    min-height: 0.8em;
    margin-top: 0.3em;
}

contact_submit p {
    font-size: 0.8em;
    font-style: italic;
    margin-top: 0.3em;
    height:0.8em;
    min-height:0.8em;
}


/*
    Popup confirmation message
*/

#popupMessage {
    display: none;
    position: fixed;
    width: 80%;
    height: 76%;
    left: 10%;
    top: 15%;
    border:2px solid #42AADB;
}

#popupMessage div {
    float: left;
    min-width: 90%;
    width: 93%;
    max-width: 100%;
    min-height: 5%;
    height:13%;
    max-height:15%;
    margin:2.5%;
}

#popupMessage h4 {
    margin: 3%;
}

#popupMessage h6 {
    margin: 4%;
    padding: 2%;
    max-width: 38%;
    min-width:35%;
    float: left;
    font-style: normal;
}

#popupMessage p {
    margin: 4%;
    padding: 2%;
    max-width: 38%;
    min-width:35%;
    float: left;
}

#cancel {
    font-family: "calibri";
    padding: 2%;
    margin: 1% 1% 1% 3%;
}

#confirm {
    font-family: "calibri";
    padding: 2%;
    margin: 1% 1% 1% 3%;
}


/* Wrapper for contact and time */

#infoblock {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5em;
}

.form_style {
    border:2px solid #42A9DB;
    
}


/* Contact block index site */

#contact {
    display: block;
    float: left;
    height: 20%;
    width: 100%;
    margin-top: 0;
}

#contact h4 {
    font-size: 1.1em;
    margin: 0.2em 1em;
    font-weight: bold;
    display: block;
    float: left;
    height: 20%;
    width: 100%;
    padding: 0;
}

.contact-email {
    margin: 0.5em 0.5em 0.5em 1em;
    font-size: 1em;
    font-style: italic;
    line-height: 1.1em;
    float: left;
}

.contact-tel {
    margin: 0.5em 0.5em 0.5em 1em;
    font-size: 1em;
    font-style: italic;
    line-height: 1.1em;
    float: left;
}


/* Opening hours block */

#time {
    display: block;
    float: left;
    height: 20%;
    width: 100%;
    margin-top: 0;
}

#time h4 {
    margin: 0.5em 0.5em 0.5em 1em;
    font-size: 1.1em;
    line-height: 1.1em;
    padding: 0;
}

#time p {
    margin: 0.5em 1em;
}


/* Sprite icon settings */

#logo {
    width: 100%;
}

#starticon,
#scheduleicon,
#presentationicon,
#coursesicon,
#contacticon,
.activeicon {
    background-image: url(pics/spritesTS3.svg);
    background-repeat: no-repeat;
}

#starticon {
    background-position: 4px -190px;
}

#scheduleicon {
    background-position: 4px -259px;
}

#presentationicon {
    background-position: 4px -59px;
}

#coursesicon {
    background-position: 4px -125px;
}

#contacticon {
    background-position: 4px -330px;
}

.activeicon {
    background-position: 4px -1px;
}

.menudiv {
    padding: 1.3em;
}


/*experimental sizing of calendar*/

.ui-widget-header {
    background-color:#C1E9FD !important;
}

#calendar {
    height: auto;
    width: auto;
    overflow: visible;
}
