/*  STYLESHEET FOR: admin.html, funcional.html

Index:
+ VARIABLES
+ HERO
  - Img background specification
  - Link return specification
  - Paragraph presentation specification
+ MINI CARDS
  - Section specification
  - Structure specification
  - Title specification
  - Text specification
  - Image specification
  - Button specification
+ ANIMATIONS
*/

/* ######################## VARIABLES ######################## */
:root{
    --base-color1: #cdd751; 
    --base-color2: #929497;
    --base-color3: #1e56a2;
    --dark-text: #222222;
    --light-text: #f5f5f5;
    --light-bg: #eeeeee;
    --dark-bg: #0a1b2c;

    --font-base: 'Libre Franklin', sans-serif;
}

html {
    scroll-behavior: smooth;
}

*, *::after, *::before{
    margin: 0;
    padding: 0;
}

body{
    background-color: var(--light-bg) !important;
    font-family: var(--font-base) !important;
}

.page-wrapper{
    position: relative;
    margin: 0 auto;
    width: 100%;
    min-width: 300px;
    z-index: 9;
    overflow: hidden;
    height: auto;
}

@media only screen and (max-width: 2500px){
    .page-wrapper {
        overflow: hidden;
    }
}
    

/* ######################## HERO ######################## */
/* Img background specification */
#hero{
    height: 40.5rem;
    background-image: linear-gradient(rgba(226, 226, 226, 0), rgba(226, 226, 226, 0.227)), url(../img/banners/ngcnd_servicios.jpg);
    background-position: center;
    background-size: cover;
}

/* Link return specification */
#hero a{
    font-size: 3.5em;
    text-decoration: none;
    color: var(--light-text);
    transition: 0.3s ease-in-out;
    animation: appear 5s forwards;
}
#hero a:hover{
    text-decoration: none;
    color: var(--base-color1);
    transition: 0.3s ease-in-out;
}

/* Paragraph presentation specification */
#hero h3{
    color: var(--light-text);
    font-size: 1.75em;
    margin-bottom: 0.75rem;
    animation: scroll 3s forwards;
}

/* Paragraph presentation specification */
#hero p{
    text-align: justify;
    color: var(--light-text);
    font-size: 1.20em;
    animation: scroll 3s forwards;
}

.divisor {
    height: 12rem;
    padding-left: 0.5rem ;
    border-left: 3px solid var(--light-text);
}

@media screen and (max-width: 600px) {
    .divisor{
        border-left: none;
        padding-top: 0;
    }
}

/* ######################## MINI CARDS ######################## */
/* Section specification */
#services-section {
    margin: 3rem 0 3rem 0;
    padding: 2rem 0 4rem 0;
}

/* Structure specification */
.card{
    width: 90%;
    height: 100%; 
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: 2rem;
    margin-right: 1rem;
    padding: 0.5rem;
    border-color:var(--base-color1) !important;
    border-width: 2px !important;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    animation: up 2s linear;
}


.card:hover{
    box-shadow: 5px 5px 10px#47474785;
    transform: translateY(-10px);
}

/* Title specification */ 
.card h5{
    color: var(--dark-bg);
    text-align: center;
}

/* Text specification */ 
.card p{
    color: var(--dark-text);
    text-align: justify;
    flex-wrap: wrap;
    width: auto;
    max-height: 6rem;
    overflow-y: auto;
    padding-right: 0.3rem;
}

/* Image specification */ 
.card img{
   /*  width: 20.5rem; */
    width: 90%;
    margin-left: 1.1rem;
    border-radius: 0.7rem;
}

.card-body{
    width: 100%;
}

/* Button specification */ 
.card-body .btn-moreinfo{
    width: 50%;
    padding: 0.5rem 1rem;
    background: var(--base-color1);
    border-radius: 0.5rem;
    color: var(--dark-text);
    text-align: center;
    font-size: 1em;
    text-decoration: none;
    transition: 0.5s ease-in-out;
}
.card-body .btn-moreinfo:hover{
    background-color: var(--base-color2);
    color: var(--light-text);
    text-decoration: none;
    box-shadow: inset 10rem 0 0 0 var(--base-color2);
    box-shadow: 3px 3px 2px #9294976f;
    transition: 0.5s ease-in-out;
}

/* ######################## ANIMATIONS ######################## */
@keyframes scroll {
    0% {
        transform: translateX(-50%);
    }

    100% {
        left: 100px;
    }
}

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

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes up {
    0% {
        transform: translateY(-5%);
    }

    100% {
        top: 0px;
    }
}
