/*FUENTES*/
@font-face {
    font-family: "TrebuchetMS";
    src: url(fonts/TrebuchetMS.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Bebas";
    src: url(fonts/BebasNeue.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "WebSymbolsRegular";
    src: url(fonts/websymbols-regular-webfont.eot);
    src: url(fonts/websymbols-regular-webfont.eot@#iefix) format('embedded-opentype'),
        url(fonts/websymbols-regular-webfont.woff) format('woof'),
        url(fonts/websymbols-regular-webfont.ttf) format('truetype'),
        url(fonts/websymbols-regular-webfont.svg#WebSymbolsRegular) format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*ESTILOS GENERALES*/

* {
    margin: 0px;
    padding: 0px;
}

body {
    background-image: url("../img/pattern.png");
}

.wrap {
    margin: 0px auto;
    width: 1200px;
}


/*CABECERA*/

#header {
    width: 100%;
    height: 70px;
    background-color: black;
    font-family: "Bebas";
    color: white;
}

#logo {

    float: left;
    width: 200px;
    background-color: #37bcf9;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 300ms;
    margin-top: 8px;
    margin-left: 20px;
}

#logo h3 {
    font-size: 40px;
    display: block;
    float: right;
    margin-top: 5px;
    transition: all 300ms;
    margin-right: 55px;
}

#logo:hover h3 {
    animation: fromRight 300ms linear;
}

@keyframes fromRight {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(0%);
    }
}

#logo:hover {
    border-radius: 5px;
    color: #141414;
    background-color: #ccc;
}

#logo .gear {
    display: block;
    float: left;
    font-size: 30px;
    margin-top: 8px;
    margin-left: 36px;
    animation-name: rotate-gear;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotate-gear {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

#logo:hover .gear {
    animation: fromBelow 500ms linear;
}

@keyframes fromBelow {
    0% {
        transform: translateY(0%);
    }

    50% {
        transform: translateY(200%);
    }

    100% {
        transform: translateY(0%);
    }
}

.gear,
.icon {
    font-family: "WebSymbolsRegular";
}

/*MENU*/

#menu {
    float: right;
    margin-right: 15px;
    height: 70px;
    background-color: black;

}

#menu ul li {
    font-size: 24px;
    display: inline-block;
    margin: 0px 20px 0px 20px;
    letter-spacing: 1px;
    line-height: 70px;
}

#menu ul li a {
    color: azure;
    text-decoration: none;
    display: block;
    transition: all 200ms;
}

#menu ul li a:hover {
    color: #37bcf9;
    transform: scale(1.2, 1.2);
}

/*BANNER*/

#banner {
    width: 95.5%;
    height: 100px;
    border: 10px solid white;
    box-shadow: 1px 1px 2px gray;
    background: url("../img/bakbaner.png");
    background-position: -260px -140px;
    margin: 20px auto;
    overflow: hidden;
    animation: backBanner 30s linear;

}

@keyframes backBanner {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: -200px -200px;
    }
}

#banner h1 {
    display: block;
    width: 100%;
    color: azure;
    font-family: "Bebas";
    font-size: 80px;
    line-height: 55px;
    text-align: center;
    letter-spacing: 2px;
    margin: auto;
    margin-top: 27px;
    text-shadow: 2px 2px 1px black;
    font-weight: normal;
    /* animation: showText 5s linear; */
}

@keyframes showText {
    0% {
        transform: translateX(-600%) scale(5, 5);
        opacity: 1;
    }

    50% {
        transform: translateX(600%) scale(5, 5);
        opacity: 1;
    }

    75% {
        transform: translateX(-600%) scale(5, 5);
        text-shadow: none;
        color: transparent;
        opacity: 0;
    }

    100% {
        transform: translateX(0%) scale(1, 1);
        text-shadow: 2px 2px 1px black;
        color: white;
        opacity: 1;
    }
}

/*TARJETAS*/
#cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 95.6%;
    margin: 0px auto;
}

.card {
    width: 200px;
    height: 300px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 2px grey;
    float: left;
    overflow: hidden;
    margin: 13px;
    margin-top: 50px;
    background-color: white;
    cursor: pointer;
    transition: all 300ms;
}

.card:hover {
    background: #141414;
}

.card .icon {
    display: block;
    width: 100%;
    height: 130px;
    font-size: 50px;
    line-height: 110px;
    margin: 0px auto;
    text-align: center;
    transition: all 300ms;
}

.card:hover .icon {
    font-size: 70px;
    color: #37bcf9;
    animation: showIcon 300ms linear;
}

@keyframes showIcon {
    from {
        transform: translateY(-200%);
    }

    to {
        transform: translateY(0%);
    }

}

.card .category {
    width: 100%;
    height: 50px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #00538C;
    transition: all 300ms;
}

.card:hover .category {
    color: #CCC;
    animation: showCategory 400ms linear;
}

@keyframes showCategory {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 0%;
    }

    100% {
        opacity: 1;
    }
}

.card .description {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-align: center;
    color: #1e77b3;
    transition: all 700ms;
}

.card:hover .description {
    color: #CCC;
    animation: showDescription 700ms linear;
}

@keyframes showDescription {
    from {
        transform: translateX(-300%);
    }

    to {
        transform: translateX(0%);
    }
}

.link_article {
    color: rgb(95, 169, 212);
    font-size: 20px;
    transition: all 300ms ease-in-out;
}

.link_article:hover {
    color: rgb(95, 212, 114);
    font-size: 20px;
}

.link_article:active{
    color:rgb(240, 184, 81);
    transform: scale(1.2);
}

/*BARRA LATERAL*/

#lateral {
    width: 300px;
    min-height: 1200px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    float: right;
}

aside h3 {
    display: block;
    width: auto;
    height: 45px;
    line-height: 49px;
    background: url('../img/pxgray.png'), rgb(230, 230, 230);
    box-shadow: 0px 1px 0px black, 1px 2px 0px black, 2px 3px 0px black, 3px 4px 0px black;
    font-size: 30px;
    font-family: "Bebas";
    font-weight: normal;
    letter-spacing: 2px;
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

aside h3:first-child {
    margin-top: 20px;
}

#search {
    width: 100%;
    height: 30px;
    margin: 10px auto;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 4px #ccc inset;
}

#lateral input[type="text"] {
    width: 90%;
    height: 29px;
    border: none;
    padding-left: 5px;
    border-radius: 5px;
    background-color: transparent;
    color: #CCC;
    transition: all 300ms;
}

#lateral input[type="text"]:focus {
    color: black;
    font-weight: bold;
}

#lateral input[type="button"],
#lateral input[type="submit"] {

    height: 30px;
    cursor: pointer;
    font-size: 16px;
    background-color: transparent;
    border: none;
    border-left: 1px solid #3f3f3f;
    color: #4d4d4d;
    padding-left: 2px;
}

.aside-box {
    width: 95%;
    height: 240px;
    margin: 0px auto;
    margin-top: 20px;
    padding-top: 2px;
    background-color: white;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3), 0px 3px 7px rgba(0, 0, 0, 0.3), 0px 1px white inset, 0px -3px 2px rgba(0, 0, 0, 0.3) inset;
}

#login input[type="email"],
#login input[type="password"] {
    display: block;
    margin: 0px auto;
    margin-top: 20px;
    width: 80%;
    height: 30px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 1px #ccc inset;
    border-radius: 5px;
    padding-left: 35px;
    color: gray;
}

#login input[type="email"]:focus,
#login input[type="password"]:focus {
    color: black;
    font-weight: bold;
    box-shadow: 1px 1px 1px gray inset;
}

#login #user,
#login #password {
    display: block;
    text-align: center;
    position: absolute;
    margin-left: 20px;
    margin-top: 6px;
    height: 30px;
}

#login #password {
    margin-left: 22px;
    margin-top: 25px;
    font-size: 20px;
}

#login input[type="submit"],
#login input[type="button"],
#login input[type="reset"] {
    text-align: center;
    width: 100px;
    height: 35px;
    margin-top: 20px;
    margin-left: 25px;
    margin-bottom: 24px;
    color: white;
    background: linear-gradient(to bottom, #a3bac2 0%, #36b4e2 100%);
    border: 1px solid #156785;
    border-radius: 0px;
    cursor: pointer;
    font-size: 15px;
    font-family: "TrebuchetMS";
    font-weight: lighter;
    transition: all 300ms;
}

#login input[type="submit"]:hover,
#login input[type="button"]:hover,
#login input[type="reset"]:hover,
#login button:hover {
    box-shadow: 0px 0px 7px rgb(37, 77, 197) inset;
}

#login a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    margin-left: 15px;
    text-align: left;
    color: #555;
}

#login a:hover {
    text-decoration: underline;
    color: #2f78bc;
}

#social {
    height: 185px;
}

#social a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 30px;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#social .overlay {
    display: block;
    height: 20px;
    width: 200px;
    font-weight: bold;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 20px;
    letter-spacing: 1px;
    text-shadow: 0px 0px 1px #ccc;
    border: 3px solid white;
    box-shadow: 0px 0px 4px #ccc;
    background: #f4f7f3;
    position: absolute;
    padding: 5px;
    margin-left: 60px;
    margin-top: -53px;
    cursor: pointer;
    transform: translateX(-80%);
    opacity: 0;
    transition: all 400ms;
}

#social div:hover .overlay {
    opacity: 1;
    transform: translateY(0%);
}

/*ARTICULOS*/

#articles {
    width: 860px;
}

#articles h2 {
    display: block;
    width: 100%;
    height: 75px;
    line-height: 75px;
    text-align: center;
    font-family: "Bebas";
    font-size: 40px;
    font-weight: normal;
    letter-spacing: 2px;
    background: url(../img/pxgray.png);
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 1px 0px black, 1px 2px 0px black, 2px 3px 0px black, 3px 4px 0px black;
}

#articles article {
    width: 98%;
    height: auto;
    border: 1px solid #ddd;
    margin: 40px auto;
    padding: 10px;
    font-family: "TrebuchetMS";
    background: white;
    color: black;
    box-shadow: 1px 1px 2px #ddd;
}

#articles article h4 {
    display: block;
    font-size: 23px;
    margin: 3px;
}

#articles article h4 a {
    text-decoration: none;
    color: #00538C;
}

#articles article h4 a:hover {
    text-decoration: underline;
}

#articles .data {
    float: right;
    background-color: #2f2f30;
    color: #CCC;
    height: 30px;
    line-height: 30px;
    margin: -10px;
    padding: 5px;
    font-size: 13px;
    border-radius: 0px 0px 0px 10px;
}

#articles .data span {
    margin: 6px;
}

#articles article p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

#articles article a {
    text-decoration: none;
}

#blog {
    height: 100px;
    margin-top: 60px;
    line-height: 100px;
    text-align: center;
    transition: all 1s;
}

#blog:hover {
    border: 10px solid #37bcf9;
    border-radius: 240px;
    box-shadow: 0px 0px 10px gray inset;
    background: #141414;
    animation: blink 5s infinite linear;
}

@keyframes blink {
    0% {
        border: 10px solid #37bcf9;
    }

    25% {
        border: 10px solid green;
    }

    50% {
        border: 10px solid hotpink;
    }

    75% {
        border: 10px solid gold;
    }

    100% {
        border: 10px solid #37bcf9;
    }
}


#blog a {
    display: block;
    font-family: "Bebas";
    font-size: 40px;
    letter-spacing: 3px;
    color: #00538C;
    font-weight: normal;
    transition: all 1s;
}

#blog:hover a {
    text-shadow: 1px 1px 1px black, 1px 3px 1px black, 2px 1px 1px black;
    color: #CCC;
}

#blog a:hover {
    text-decoration: underline;
}

/*FOOTER*/

#footer {
    color: #CCC;
    width: 100%;
    height: 470px;
    background: black;
    overflow: hidden;
}

#footer .wrap>div {
    float: left;
    width: 320px;
    height: 370px;
    margin: 40px;
    text-align: center;
    color: #CCC;
    font-family: "TrebuchetMS";
}

footer a {
    text-decoration: none;
    color: #37bcf9;
    transition: all 300ms;

}

#footer h5 {
    display: block;
    background: url(../img/pxgray.png), white;
    height: 50px;
    letter-spacing: 2px;
    text-align: center;
    font-family: "Bebas";
    font-size: 40px;
    line-height: 55px;
    color: #141414;
    border-radius: 5px;
    margin-bottom: 15px;
}

#footer ul {
    text-align: left;
    margin: 20px;
    font-size: 25px;
}

#footer ul li {
    margin-top: 10px;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

#footer ul li a {
    display: block;
    height: 40px;
}

#footer ul li:hover a {
    padding-left: 40px;
    color: #CCC;
    width: 100%;
}

#footer iframe {
    width: 100%;
    height: 300px;
    margin-top: 10px;
    border-radius: 5px;
    border: 5px solid white;
    box-shadow: 0px 0px 5px gray;
}

#footer img {
    margin-bottom: 15px;
}

#footer #browsers img {
    width: 45px;
}