/*! HTML5 Boilerplate v5.2.0 | 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;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
@font-face {
    font-family: 'blogger';
    src: url('fonts/bloggersans-webfont.eot'); 
    src: url('fonts/bloggersans-webfont.eot?#iefix') format('embedded-opentype'), /*B*/
    url('fonts/BloggerSans.woff') format('woff'),
    url('fonts/BloggerSans.otf') format('opentype'), 
    url('fonts/bloggersans-webfont.svg') format('svg'); 
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'blogger';
    src: url('fonts/bloggersans-bold-webfont.eot'); 
    src: url('fonts/bloggersans-bold-webfont.eot?#iefix') format('embedded-opentype'), /*B*/
    url('fonts/BloggerSans-Bold.woff') format('woff'), 
    url('fonts/BloggerSans-Bold.otf') format('opentype'),
    url('fonts/bloggersans-bold-webfont.svg') format('svg');
    font-weight: bold;
    font-style: normal;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
#spectrum {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0px;
    left: 0px;
    background: #ffffff;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#logo, .school {
    position: relative;
    float: left;
    width: 100%;
    font-family: 'blogger', sans-serif;
    font-weight: bold;
}

.school {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15%;
    text-decoration: none;
}

.school::after {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    content: attr(city);
    font-size: 7vmin;
    color: #ffffff;
}

.school:hover::after {
    display: flex;
    align-items: center;
    justify-content: center;
    content: attr(web);
    font-size: 4.5vmin;
    padding: 5px 12px;
    border: 3px solid #fff;
    border-radius: 8px;
    transition: border .2s, padding .2s, font-size 0.5s;
}


#logo {
    height: 25%;
}

#logo::before {
    position: absolute;
    content: "";
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background-size: contain;
    background-position: center;
    background-image: url("../img/logo-mobile.jpg");
    background-repeat: no-repeat;
}

.school .container { 
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%; 
}

#logo .container { background: #ffffff;} 
#bucuresti { background: #403D7F;}
#colentina { background: #ECE017;}
/*#buzau { background: 	#E02429;}*/
#cluj { background: #B3CB35;}
#constanta { background: #EF9521;}
#iasi { background: #E02429;}
#ploiesti { background: #403D7F;}
/*#next { background: #B3CB35;}*/

#footer {
    display: none;
}


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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * 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.http://localhost/web/#iasi
   ========================================================================== */

@media only screen and (min-width: 800px) {

    #spectrum {
        height: 86%;
    }

    #wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        transform: rotate(2deg);
        transform-origin: 0% 0%;
    }

    .school { 
        order: 4; 
        /* width: 25%; FOR 4 column*/
        width: 33.33%;
        height: 50%;
        box-sizing: border-box;
        outline: 1px transparent;
        background-color: #fff !important;
        overflow: hidden;
    }

    .school::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    #bucuresti .overlay{ background: rgba(255, 87, 34, 0.85);}
    #colentina .overlay{ background: rgba(255, 86, 86, 0.85);}
    /*#buzau .overlay{ background: rgba(213, 0, 0, 0.85);    }*/
    #constanta .overlay{ background: rgba(139, 195, 74, 0.85);}
    #cluj .overlay{ background: rgba(213, 0, 0, 0.85);}
    #ploiesti .overlay{ background: rgba(255, 214, 0, 0.85);}
    #iasi .overlay{ background: rgba(26, 35, 126, 0.85);}

    #bucuresti::before { background: #403D7F; bottom: 10px; right: 20px; }
    #bucuresti:hover::before { background: rgba(64, 61, 127, 0.85); transition: background .5s; }
    #bucuresti { background-image: url("../img/bucuresti2.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-right: 38px; padding-bottom: 28px; outline: 1px transparent;}
	#colentina::before { background: #ECE017; bottom: 10px; right: 0px; }
    #colentina:hover::before { background: rgba(236, 224, 23, 0.85); transition: background .5s; }
    #colentina { background-image: url("../img/colentina.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-right: 18px; padding-bottom: 28px; padding-left: 18px; outline: 1px transparent;}
    /*#buzau::before { background: #E02429; bottom: 10px; left: 20px; }*/
    /*#buzau:hover::before { background: rgba(224, 36, 41, 0.85); transition: background .5s; }*/
    /*#buzau { background-image: url("../img/buzau.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-left: 38px; padding-bottom: 28px; outline: 1px transparent;}*/
    #cluj::before { background: #B3CB35; bottom: 10px; left: 20px; }
    #cluj:hover::before { background: rgba(179, 203, 53, 0.85); transition: background .5s; }
    #cluj { background-image: url("../img/cluj.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-left: 38px; padding-bottom: 28px; outline: 1px transparent;}

    #constanta::before { background: #EF9521; top: 10px; right: 20px;}
    #constanta:hover::before { background: rgba(239, 149, 33, 0.85); transition: background .5s; }
    #constanta { background-image: url("../img/constanta.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-right: 38px; padding-top: 28px; padding-left: 18px; outline: 1px transparent;}
    #iasi::before { background: #E02429; top: 10px; right: 0px; }
    #iasi:hover::before { background: rgba(224, 36, 41, 0.85); transition: background .5s; }
    #iasi { background-image: url("../img/iasi.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-right: 18px; padding-bottom: 28px; padding-left: 18px; outline: 1px transparent;}
    #ploiesti::before { background: #403D7F; top: 10px; left: 20px; }
    #ploiesti:hover::before { background: rgba(64, 61, 127, 0.85); transition: background .5s; }
    #ploiesti { background-image: url("../img/ploiesti.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-left: 38px; padding-top: 28px; outline: 1px transparent;}
    /*#next::before { background: #B3CB35; top: 10px; left: 20px; }*/
    /*#next:hover::before { background: rgba(179, 203, 53, 0.85); transition: background .5s; }*/
    /*#next { background-image: url("../img/urmatoare.jpg"); background-repeat: no-repeat; background-size: cover; background-clip: content-box; padding-left: 38px; padding-top: 28px; outline: 1px transparent;}*/

  
    .school::after { 
        transform: rotate(-2deg);
    }

    #logo { order: 2; width: 33.33%; height: 50%;}
    #logo::before { 
        transform: rotate(-2deg);
        background-image: url("../img/logo.jpg");
        background-size: 80%;
        background-position: center;
    }

    #bucuresti { order: 1; }

    .school::after { font-size: 4.4vmin; }
    .school:hover::after { font-size: 3vmin; }

    #footer {
        position: absolute;
        font-family: 'blogger', sans-serif;
        background: #ffffff;
        color: #464F56;
        width: 100%;
        left: 0px;
        bottom: 0px;
        height: 14%;
        display: block;
    }

    #footer .container {
        position: absolute;
        left: 0px;
        width: 100%;
        height: 100%;
        top: 0px;
    }

    #copyright {
        position: absolute;
        left: 30px;
        bottom: 30px;
    }
	
	#copyright2 {
        position: fixed;
        left: 50%;
		margin-left: -200px;
        bottom: 40px;
    }

    #copyright a{
        position: relative;
        float: left;
        text-decoration: none;
    }

    #copyright p{
        position: relative;
        float: right;
        margin-left: 15px;
    }

    #promo {
        position: absolute;
        height: 80px;
        right: 30px;
        bottom: 20px;
    }

    #promo p{
        text-align: right;
        font-size: 16px;
        line-height: 16px;
        margin: 0px;
        padding: 0px;
    }

    #promo p a{
        padding: 2px 5px;
        background: #7F9199;
        text-decoration: none;
        border-radius: 5px;
        color: #ffffff;

    }

    #promo p a:hover{
        background: #464F56;
    }

    #luminamath, #firstep, #infomatrix{
        position: relative;
        float: right;
        height: 47px;
        background: url("../img/promo.jpg") no-repeat;
        margin-left: 20px;
        margin-top: 5px;
    }

    #luminamath{ width: 107px; background-position: 0px 0px; }
    #luminamath:hover{ background-position: 0px 100%; }
    #firstep{ width: 67px; background-position: -107px 0px; }
    #firstep:hover{ background-position: -107px 100%; }
    #infomatrix{ width: 77px; background-position: -174px 0px; }
    #infomatrix:hover{ background-position: -174px 100%; }

}

@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 */
        -webkit-box-shadow: none !important;
                box-shadow: none !important;
        text-shadow: none !important;
    }

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

    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,
    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;
    }

    img {
        max-width: 100% !important;
    }

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

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