/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
}

a { color: inherit; }



/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}



/* ==========================================================================
   Author's custom styles
   ========================================================================== */





/*   ---------- TARGETS  styling phone   --------*/

@media screen and (max-width: 600px) {



    #target1  {
        text-align: center;
        width: 100%;
        overflow: hidden;

    }


    #target2 {
        text-align: center;
        width: 100%;
        overflow: hidden;

    }

    #target3  {
        text-align: center;
        width: 100%;
        overflow: hidden;
    }

    #target4  {
        text-align: center;
        width: 100%;
        overflow: hidden;





    }


    .centerphone {
        text-align: center;
        width: 100%;
    }


}




/* -----------------------   hidden menu  ----------------------------------  */

body,html {
    height: 100%;                           /* add this to have wrapper 100% */
}

#menuWrapper {
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);       /* transparency */
    position: fixed;                                 /* on top */
    left: -100%;                                      /* move it to the left - HIDDEN  */
    top: 0;
    transition: left 1s;                         /* animation  */
    z-index: 2;                                  /* put menu over the menuBtn  */
}

#menuWrapper.open {
    left: 0;                                 /* MENU - OPEN  */

}

#menuWrapper li {
    list-style: none;
    max-width: 300px;
    margin: 1em auto;
    border-bottom: black solid 1px;

}

#menuWrapper li a {
    text-decoration: none;
    color: black;
}

#menu3 {
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    padding: 10%;
}

#menu3 ul, #menu3 ul li{
    margin: 0;
    padding: 0;
}

.menuhiddentitle {
    font-size: 2em;
    color: black;
    max-width: 300px;
    margin: 1em auto;
    font-weight: 600;
    letter-spacing: 1pt;
    border-bottom: black solid 1px;

}


#iconsWrapper {
    position: fixed;
    top: 1%;
    right: 3%;
    width: 100%x;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    z-index: 5;
}


#iconsWrapper div {
    margin-top: 2em;
    list-style: none;
    text-decoration: none;
    color: black;
}

.menulogos {
    width: 50%;
    margin-left: 25%;
}


.menulogos img {
    display: inline-block;
    float: left;
    box-sizing: border-box;
    margin: 10%;
    width: 13%;
}

@media screen and (max-width: 600px) {

    .menulogos img {
        margin-left: 25%;
        width: 50%;
    }
}

/* -----------------------    menu button ----------------------------------  */

.menuBtn {
    right: 1em;
    font-size: 20pt;
    z-index: 1;
    display: inline-block;
    float: right;
    position: fixed;
    top: 5%;
    left:3%;
    color: black;
}


#menuWrapper .menuBtn{
    position: absolute;                                 /* hide button in the wrapper  */
}

#menuWrapper .a {
    color: silver;
    font-size: 20pt;
}




/* -----------------------    TOP and image styling ----------------------------------  */

#top {
    background-color: whitesmoke;
    height: 100%;
    width: 100%;
    background-image: url("../img/ieltswhite.jpg");
    background-position: center ;
    background-repeat: no-repeat;
    background-size: cover ;
}


.toplogo  {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 300px;
    transform: translate(-150px,0);
}

.toplogoidp  {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 200px;
    transform: translate(-100px,0);
}



#top p {
    position: absolute;
    top: 83%;
    left: 20%;
    width: 60%;
    color: white;
    text-align: center;
    overflow: hidden;
}


/* -----------------------    animation wrap ----------------------------------  */



.animationWrapper{
    overflow: hidden;
    width: 100%;
}





/* -----------------------    targets  ----------------------------------  */



#target1{
    width: 100%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    background-color: whitesmoke;
}


.toplogos {
    width: 100%;
    margin-left: 38%;
}

.toplogos img {
    display: inline-block;
    float: left;
    box-sizing: border-box;
    margin: 5% ;
}


.ieltsbutton {
    width: 50%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 5%;
    padding-top: 0;
}



.infoboxwrap {
    width: 80%;
    margin: 0 auto;
    margin-top: 10%;
}

.infoboxwrap h1{
    color: transparent;
}



.infobox {
    width: 31%;
    height: 300px;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    margin: 1%;
    padding: 10px;
    background-color: white;
    /*
    border: solid grey 1px;
    */
    text-align: center;
}




.infobox100 {
    padding: 15px;
    width: 47.5%;
    height: auto;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    margin: 1%;
    background-color: white;
    /*
    border: solid grey 1px;
    */
    text-align: center;
    margin-bottom: 100px;
}




.infobox h5 {
    font-size: 9pt;
    letter-spacing: 1pt;
    width: 90%;
    position: absolute;
    text-align: center;
    bottom: 5px;
    font-weight: 200;
}
.infobox100 h5 {
    font-size: 9pt;
    letter-spacing: 1pt;
    width: 90%;
    position: absolute;
    text-align: center;
    bottom: 5px;
    font-weight: 200;
}

.infobox:hover {
    transition-duration: 2s;
    border: solid darkred 1px;

}

.infobox100:hover {
    border: solid darkred 1px;
}



@media screen and (max-width: 1000px) {
    .infobox {
        height: 390px;
    }
}

@media screen and (max-width: 900px) {
    .infobox {
        width: 48%;

        height: 390px;
    }
}


@media screen and (max-width: 700px) {
    .infobox {
        width: 100%;
        height: 300px;
    }

    .infobox100 {
        width: 100%;
    }
    .ieltsbutton {
        width: 80%;
        margin-left: 10%;
        float: left;
        display: inline-block;
        box-sizing: border-box;
        padding: 5%;
    }

}



.offsitewrap {
    width: 80%;
    margin-left: 10%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
}


.offsiteimg  {
    width: 40%;
    height: 500px;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    padding-top: 5%;
}

.offsitetext  {
    width: 50%;
    margin-left: 10%;
    height: 500px;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    padding: 5%;
}

.offsiteboxwrap{
    width: 100%;
}


.offsitebox {
    width: 30%;
    margin: 1%;
    height: 200px;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    padding: 1em;
}

.contact3 {
    text-align: center;
    padding: 10%;
    background-color: whitesmoke;
}







#target2{
    width: 100%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
}



.target2img {
    width: 50%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
}

.target2text {
    width: 50%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    padding: 5%;
}


.idpmessage {
    width: 80%;
    margin-left: 10%;
    background-color: whitesmoke;
    float: left;
    display: inline-block;
    box-sizing: border-box;
    padding: 5%;
}


.idpmessage img {
    float: left;
    display: inline-block;
    box-sizing: border-box;
    margin: 5%;
}



#target3{
    background-color: white;
    width: 100%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
}

#target4{
    background-color: white;
    width: 100%;
    float: left;
    display: inline-block;
    box-sizing: border-box;
/*    background-image: url("../img/map.jpg");
    background-position: center ;
    background-repeat: no-repeat;
    background-size: cover ;*/
}



@media screen and (max-width: 1000px) {

    .offsitebox {
        width: 50%;
        margin: 0;
        text-align: center;
    }
}



@media screen and (max-width: 700px) {

    .offsitebox {
        width: 100%;
        text-align: center;
    }

    .target2img {
        width: 100%;
        float: none;

    }

    .target2text {
        width: 100%;
        padding: 15%;
        float: none;

    }



    .offsiteimg  {
        width: 100%;
        float: none;


    }

    .offsitetext  {
        width: 100%;
        float: none;


    }


}



html {
    height: 100%
}


body {
    background-color: white;
    height: 100%;
    font-family: 'Libre Franklin', sans-serif;
    color: dimgray;
    font-weight: 100;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bolder {
    font-weight: 300;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 11pt;
    font-weight: 300;
}


h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 25pt;
    color: darkred;
    text-align: left;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 20pt;
}


h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 12pt;
    color: darkred;
    font-weight: 600;
}

h3:hover {
    letter-spacing: 1px;
    transition:  1s;
}


h5 {
    font-family: 'Roboto', sans-serif;
    font-size: 10pt;
    color: #555555;
}

h5:hover {
    color: darkred;
    letter-spacing: 1px;
    transition:  1s;
}



a {
    text-decoration: none;
}




/* ---------------------------------------- footer MENU --------------------------------------------------------------------------*/
#menusection {
    background-color: white;
    position: fixed;
    overflow: hidden; /* for sticky menu */
    bottom: 0%;
    width: 100%;
    font-size: 18px;
}

/* MENU Settings */


#menusection .leftnav { /*menu text box*/
    float: left;
}
#menusection .rightnav { /*insert some icons here*/
    float: right;
}
#menusection ul {
    margin: 0;
    padding: 0;
}
#menusection ul li {
    list-style: none;   /*takes away the dots*/
    float: left;
}
#menusection ul li a {
    text-decoration: none;
    color: silver;
    font-weight: bold;
    padding: 1em;
    display: block;
}

/* menu HOOVER Settings */
#menusection ul li a:hover {
    color: white;
    cursor: pointer;
    transition: all 1s;
}
#menusection ul li:hover {
    background-color: silver;
    transition: all 1s;
}

#menusection.rightnav li {
    width: 50px;
    background-color: red;
}


.menuselected {
    background-color: lightgrey;
}


/* ------------------------------------------ FOOTER ------------------------------------------------------------------------  */

#footer {
    width: 100%;
    background-color: whitesmoke;
    color: #888888;
    box-sizing: border-box;
    display: inline-block;
    padding: 2em;
    font-size: 10pt;
    text-align: left;
    margin-top: 10em;
}

#footer h3 {
    font-size: 12pt;
    color: dimgray;
    font-family: 'Playfair Display', serif;

}

#footer a {
    color: dimgray;
    font-family: 'Libre Franklin', sans-serif;
}



.footer50{
    width: 45%;
    margin: 1em;
    box-sizing: border-box;
    display: inline-block;
    float: right;
}

.footer10{
    width: 13%;
    margin: 1%;
    box-sizing: border-box;
    display: inline-block;
    float: left;
}

/*   -------------------------- footer phone   ---------------------------------*/

@media screen and (max-width: 900px) {


    #footer {
        width: 100%;
        padding-bottom: 15em;
        padding-left: 5%;
    }

    .footer10{
        width: 20%;
        margin: 6%;
        margin-top: 10%;
        margin-bottom: 10%;
        box-sizing: border-box;
        display: inline-block;
        float: left;
    }

    .footer50{
        width: 80%;
        margin: 10%;
        margin-top: 0;
        box-sizing: border-box;
        display: inline-block;
        float: left;
        text-align: center;
    }


}







a.selected{
    background-color: red;
}

#contact .grid-60{
    position: relative;
}
#contact .grid-60 > div{
    /*display: none;*/
    opacity: 0;
    top:0;
    left: 200px;
    transition: all 1s ease;
    position: absolute;
}
#contact .grid-60 > div.show{
    /*display: block;*/
    opacity: 1;
    top: 0;
    left: 0;

}





/* GRID */
.grid-40{
    box-sizing: border-box;
}
.grid-60{
    box-sizing: border-box;
}

@media screen and (min-width: 1024px){
    .grid-40{
        width: 40%;
        float: left;
    }
    .grid-60{
        width: 60%;
        float: left;
    }
}





/* -----------------------    MAPPA  ----------------------------------  */

.googlemaps iframe {
    width: 100%;
    margin-top: 5em;
}





/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
