@font-face {
    font-family: 'MyFont';
    src: url('../fonts/Pacifico.ttf');
}

@font-face {
    font-family: 'MyFont2';
    src: url('../fonts/Capture_it.ttf');
}

@font-face {
    font-family: 'MyFont3';
    src: url('../fonts/Raleway-SemiBold.ttf');
}

@font-face {
    font-family: 'MyFont4';
    src: url('../fonts/ostrich-regular.ttf');
}

@font-face {
    font-family: 'MyFont5';
    src: url('../fonts/Becka Script LET Plain.1.0.ttf');
}

@font-face {
    font-family: 'MyFont6';
    src: url('../fonts/Arche Black Condensed SSi Black Condensed Italic.ttf');
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    background-color: #E5ECFC;
    overflow-x: hidden;
}

a{
    color:inherit;
    text-decoration: none;
}
.card1 {
    background-color: #E5ECFC;
    background-size: cover;
    width: 100%;
    margin: none;
}

header {
    position: relative;
    width: 100%;
    background-color: #E5ECFC;
}

.card1 > header > nav {
    background-color: #415FA5;
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: 60px;
    max-height: 2%;
    overflow: visible;
}

.card1 > header > nav > ul > li,
.login > ul > li {
    cursor: pointer;
    list-style: none;
    position: relative;
    font-family: "MyFont2";
    font-size: 20px;
    color: #B6C8EF;
}

.card1 > header > nav > ul > li:before {
    content: '';
    width: 5px;
    height: 5px;
    background: #F2F2F7;
    position: absolute;
    top: 115%;
    left: 50%;
    visibility: hidden;
    transition: 1s ease 0s;
}

.card1 > header > nav > ul > li:hover:before {
    background: #B6C8EF;
    visibility: visible;
    width: 100%;
    left: 0;
}

.categoryContainer:hover {
    visibility: visible;
}

.categoryContainer {
    visibility: hidden;
    background-color: #51578E;
    border-top: 3px solid #B6C4EC;
    position: absolute;
    top: 130%;
    right: 0;
    width: 300px;
    text-align: right;
}

.categoryContainer > ul {
    list-style: none;
    overflow: hidden;
    width: 100%;
    margin: 5% 15% 5% 0%;

}

.categoryContainer > ul > li {
    padding-right: 10%;
    cursor: pointer;
}

.categoryContainer > ul > li:hover {
    background-color: #E5ECFC;
    width: 120%;
    font-size: 19.5px;
    color: black;
    text-shadow: none;
    padding-right: 17%;
    margin-left: -20%;
}

.card1 > header > nav > ul > li:hover > .categoryContainer {
    visibility: visible;
}

.logo:before {
    visibility: hidden;
}

a {
    text-decoration: none;
}

a:visited {
    color: inherit;
}

.card1 > header > nav > ul {
    width: 100%;
    height: 40px;
    margin: 0 0 0 10%;
    overflow: auto;
    display: inline-flex;
    flex-wrap: wrap;
    position: relative;
    align-content: center;
    overflow: visible;
    z-index: 3;
}

.card1 > header > nav > ul > li {
    padding: 15px;
    margin: 0% 2%;
    height: 80%;
    text-decoration: none;
}

.logo {
    min-width: 123px;
    min-height: 107px;
    background-image: url(../img/logo.png);
    background-size: cover;
    position: relative;
    transition: 1s ease 0s;
}

.logo > a {
    display: flex;
    width: 100%;
    height: 100%;
}

.login {
    position: relative;
    margin-top: 1%;
    padding: 0;
    width: 250px;
    margin-left: 10%;
    overflow: visible;

}

.login > ul {
    width: 100%;
    margin-left: 0%;
    margin-top: 0%;
    overflow: visible;
}

.login > ul > li:first-child {
    margin-left: -25%;
}

.login > ul > li {
    display: inline;
    width: 40%;
    padding: 0.2em;
    color: #E5ECFC;
    text-align: center;
}

.login > ul > li:hover {
    text-shadow: 0.15em 0.15em 0em black;
    color: white;
}



.eslogan {
    position: absolute;
    font-family: 'MyFont4';
    text-shadow: 0.05em 0.05em 0em white;
    top: 60%;
    left: 8%;
    font-size: 3vw;
    z-index: 4;
}

.search {
    display: inline-flex;
    position: absolute;
    overflow: auto;
    align-self: center;
    overflow-x: hidden;
    top: 80%;
    left: 10%;
    width: 350px;
    height: 55px;
}

.search > * {
    border: none;
    outline: none;
    font-family: "MyFont3";
    color: black;
    font-size: 20px;

}

.search > button {
    position: absolute;
    top: 0%;
    left: 84%;
    width: 50px;
    height: 50px;
    background-image: url(../img/find1.png);
    background-size: cover;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
}

#search {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    position: absolute;
    padding-left: 30px;
    top: 0%;
    width: 95%;
    height: 50px;
}

.headerImg {
    width: 100vw;
    height: 40%;
    overflow: hidden;
    position: fixed;
    top: 6.5%;
}

.headerImg ul {
    padding: 0;
    margin: auto;
    display: flex;
    width: 400%;
    animation: run 25s infinite alternate;
}

.headerImg li {
    list-style: none;
    width: 100%;
}

.headerImg img {
    width: 100vw;
    height: 50vh;
}

@keyframes run {
    0% {
        margin-left: 0%;
    }
    20% {
        margin-left: 0%;
    }

    26% {
        margin-left: -100%;
    }
    46% {
        margin-left: -100%;
    }

    52% {
        margin-left: -200%;
    }
    72% {
        margin-left: -200%;
    }

    77% {
        margin-left: -300%;
    }
    100% {
        margin-left: -300%;
    }
}

.headerText {
    background-color: rgba(0, 0, 0, 0.5);
    width: 30%;
    height: 285px;
    font: normal 16px "Leelawadee";
    color: navajowhite;
    position: absolute;
    left: 5%;
    top: 5%;
}

.headerText > * {
    margin-left: 5%;
}

.headerText > h3 {
    margin-top: 15%;
}



#mainCanvas {
    background-color: rgba(0, 0, 0, 0.3);

}

.search > span {
    padding: 5px 5px 4px 5px;
}

.search > button:hover {
    background-image: url(../img/find2.png);
}

.search:hover > span {
    color: red;
}


.schoolWraper {
    width: 1150px;
    height: 9vh;
    overflow: visible;
    position: relative;
    margin: 25.2% auto;
    background-color: #E5ECFC;
}

.schoolWraper:before,
.schoolWraper:after {
    content: '';
    width: 700px;
    height: 103%;
    background: #E5ECFC;
    position: absolute;
    top: -1%;

}

.schoolWraper:before {
    z-index: 4;
    left: -61%;
}

.schoolWraper:after {
    z-index: 4;
    right: -61%;
}

.schoolContainer {
    width: 220%;
    margin-left: 0;
    margin-right: 0;
}

.schoolContainer > a {
    margin: 0px;
}

.schoolContainer > a > img {
    width: 7.45%;
    height: 9vh;
}

.arrow {
    width: 4%;
    height: 9vh;
    top: 0;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 8;
    transition: 1s ease 0.1s;
}

.left {
    left: -7%;
    background-image: url(../img/centros/arrowleft1.png);
}

.left:hover {
    background-image: url(../img/centros/arrowleft2.png);
}

.right {
    right: -6.5%;
    background-image: url(../img/centros/arrowright1.png);
}

.right:hover {
    background-image: url(../img/centros/arrowright2.png);
}

.up {
    visibility: hidden;
    width: 3%;
    height: 6vh;
    position: absolute;
    top: 20%;
    border-radius: 50%;
    border: 2px solid #0839BF;
    background-size: cover;
    background-image: url(../img/centros/arrowup1.png);
    transition: 1s ease 0.1s;
    z-index: 15;

    left: 49.7%;
    top: 120%;

}

.up:hover {
    transform: scale(1.1);
    background-color: #627FC2;
    background-image: url(../img/centros/arrowup2.png);
    box-shadow: 0em 0em 5em 0.1em #0839BF;
}

canvas {
    background-color: #B6C8EF;
    display: block;
    position: relative;
    width: 100%;
    margin: -25.2% auto;
    z-index: 10;
}

.card2 {
    margin-top: -0.3%;
    background-color: #E5ECFC;
    position: relative;
    margin-top: 23.5%;
}

.infoContainer {
    width: 100%;
    margin-top: 0%;
    position: relative;
    background-color: #E5ECFC;
    overflow: hidden;
}

.infoContainer > * {
    position: absolute;
    font-family: 'MyFont3';
    font-size: 15px;
    border-radius: 15px;
    color: navajowhite;
    margin: none;
    padding: none;
}

.infoContainer > h3 {
    font-size: 30px;
    padding: 30px;
}

.infoContainer > article {
    width: 300px;
    height: 270px;
    background-color: rgba(65, 95, 165, 0.9);
    text-align: center;
    padding: 1%;
    letter-spacing: 1px;
}

.infoContainer > article > p:first-child {
    margin-top: 0;
}

#info1 {
    color: yellowgreen;
    background-color: rgba(81, 88, 141, 0.8);

}

#info2 {

    background-color: #627FC2;
}

#info3 {
    height: 320px;
}

#info4 {
    height: 800px;
}

#info5 {
    height: 100px;
}

#info5 > p {
    height: 100%;
    font-size: 30px;
    margin-top: 2%;
    margin-left: -20%;
    color: aliceblue;
}

.nextView {
    position: absolute;
    top: -10%;
    right: 2%;
    width: 80px;
    height: 110px;
    background-image: url(../img/centros/regArrow1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    cursor: pointer;
    animation: shine 1s infinite alternate;
}

@keyframes shine {
    from {
        background-image: url(../img/centros/regArrow1.png);
    }
    to {
        background-image: url(../img/centros/regArrow2.png);
    }
}

#info4 {
    background-color: rgba(98, 127, 194, 0.9);
    width: 400px;
    height: 150px;
    top: 40%;
    right: 36%;
}

.card3 {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 200vh;
    background-color: lightgray;
}

.paralax {
    position: relative;
    z-index: 10;
}

.paralax > h3 {
    font: normal 3vw "MyFont4";
    height: 26vh;
    width: 100%;
    text-align: center;
    color: black;
    background-color: #627FC2;
    margin: 0;
    padding: 5% 0% 0% 0%;
}

.bg {
    font: normal 3.2vw "MyFont2";
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding-top: 20%;
    z-index: 10;
}

.insidebg {
    width: 60%;
    margin-left: 10%;
    text-align: left;
}

.insidebg > h4 {
    font: normal 40px "MyFont4";
    border-bottom: 2px solid black;
    color: black;
    width: 60%;
    margin-top: -20%;
    padding-bottom: 1%;
}

.insidebg > ul {
    font: normal 20px "MyFont3";
    width: 60%;
    margin: 3% 0% 5% 2%;
    list-style: none;

}

.insidebg > ul > li {
    padding: 4% 1%;
}

.one {
    background-image: url(../img/card3-1background.png);
}

.two {
    background-image: url(../img/card3-2background.png);
}

.two > .insidebg {
    margin-left: 60%;
    text-align: right;
}

.two > .insidebg > ul {
    margin-left: 6%;
    text-align: left;
}

.three {
    background-image: url(../img/card3-3background.png);
}

.mainFooter {
    width: 100%;
    height: 180px;
    background-color: #415FA5;
    margin-top: -4%;
}

.mainFooter > h4 {
    font: normal 3vw "MyFont4";
    text-align: center;
    padding-top: 1%;
}
