/* AUTHOR: Ezequiel Lopez Saaied for Cerveza Baum */

/* IMPORTS */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Economica:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
    font-family: 'Norwester';
    src: url('../fonts/norwester.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* GENERAL STYLES */

:root {
    --main-bg-color: #050505;
    --main-bg-light-color: #222;
    --main-details-color: goldenrod; /* SANPATRICIO:#38845c */ 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    scroll-behavior: smooth;
    justify-content: center;
    align-items: center;
}
.flc {display: flex; flex-direction: column;}
.flr {display: flex; flex-direction: row;}
.cnt {align-items: center; justify-content: center;}
.w100 {width: 100%;}
.fade {animation-name: fade; animation-duration: 1s;}
.hidden { display: none; }
.show { display: flex; }
a:link, a:visited, a:hover, a:active { text-decoration: none; }
body {
    background-color: var(--main-bg-color);
    background-image: url(../images/bg-texture.png);	 
    background-size: contain;
    background-repeat: repeat;
    background-attachment: fixed;
    min-height: 100dvh;
}

/* STARTSCREEN */

#startscreen {
    height: 100dvh;
    width: 100%;
    justify-content: flex-start;
    background-color: var(--main-bg-color);
    background-image: url(../images/bg-texture.png); 
    background-size: contain;
    background-repeat: repeat;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    transition: opacity 1s;
    z-index: 9995;
}
#startscreenLogo { height: calc(100px * 0.55); margin-top: calc(100px * 0.45 / 2);} /* { height: calc(100px * 0.80); margin-top: calc(100px * 0.20 / 2); margin-bottom: auto; } */
#startscreenTxt { max-width: 90%; max-height: 70dvh; margin-top: 15px;}
#startscreenBtn { width: 15px; margin-top: 30px; margin-bottom: auto; }

/* LOGO STYLES */

#logoCont {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 100px;
    background-color: var(--main-bg-color);
    border-bottom: 1px solid var(--main-details-color);
    }
#logo { height: 55% } /* 80% */

/* MAIN AREA STYLES */

#mainCont { margin-bottom: auto; }

/* NEWS SLIDER IMAGES LOADER */

#imgsLoader {
    z-index: 10;
    display: grid;
    grid-template: 1/2/1/2;
    justify-items: center;
    transition: opacity 1s;
    grid-area: 1/2/1/2;
}
#imgsLoader > img { vertical-align: middle; grid-area: 1/2/1/2; }
#imgsLoaderImg { width: 30%; animation: pulse 1s ease infinite; }
#imgsLoaderBg { background-color: var(--main-bg-color); }

/* NEWS SLIDER STYLES */

#slidesCont {
    max-width: 600px;
    position: relative;
    display: grid;
    grid-template: 1/2/1/2;
    border: none;
    border-bottom: 1px solid var(--main-details-color);
}
.slide {display: none; grid-area: 1/2/1/2;}
.slide > img {vertical-align: middle;}
.slidesArrows {
    color: var(--main-details-color);
    width: 10%;
    height: 100%;
    padding: 3px;
    grid-area: 1/2/1/2;
    z-index: 2;
    background: linear-gradient(270deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(255,255,255,0) 100%)
}
#slidesArrowL {
    transform: scale(-1, 1);
    margin-right: auto;
}
#slidesArrowR {
    margin-left: auto;
    margin-right: 0;
}
.slidesArrows > span { text-align: center; font-weight: 600; }
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--main-bg-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: 1px solid var(--main-details-color);
}
.dotActive { background-color: var(--main-details-color); }

/* MAIN BUTTONS */

.buttonCont { margin: 15px auto; width: 90%; }
.buttonCont > div { 
    width: 100%;
    margin-top: 5px;
    opacity: 0;
    transition: .6s ease opacity,.6s ease max-height;
    overflow: hidden;
}
.buttonCont > button, .buttonCont > a {
    background:  var(--main-bg-color);
    border: 1px solid var(--main-details-color);
    box-sizing: border-box;
    box-shadow: 0px 0px 5px 2px black;
    width: 70%;
    height: 30px;
    margin: 0 15%;
    border-radius: 20px;
    z-index: 99;
    cursor: pointer;
    color: white;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
#buttonImg, #hh {
    width: 70%;
    margin: 0 15%;
}

/* SOCIAL BUTTONS FOOTER */

#socialCont {
    width: 90%;
    margin: 20px 0px;
    flex-wrap: wrap;
}
.socialLink {
    margin: 0px 5px;
    border-radius: 50%;
    height: 50px;
}
.socialImg {
    width: 50px;
    border: 1px solid var(--main-details-color);
    background-color: var(--main-bg-color);
    border-radius: 50%;
    box-sizing: border-box;
}

/* ANIMATIONS AND RESPONSIVE STYLES */

@keyframes fade {
    from {opacity: 0.6} 
    to {opacity: 1}
}
@keyframes rotate {
    from {scale: rotate(0deg);} 
    to {transform: rotate(360deg);}
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* RESPONSIVE STYLES */

@media screen and (min-width: 600px) {
    #startscreenTxt { max-width: 600px; }
    #slidesCont { border: 1px solid var(--main-details-color); border-top: none; }
    .buttonCont { width: 350px; }
    #socialCont { width: 100%; }
}


