@import url("https://fonts.googleapis.com/css?family=Merriweather:900&display=swap");
body {
    /* body top margin so body content isnt' obscured by header */
    margin-top: 90px;
}

/* ########## Fixed header ########## */

#ddfixedheader {
    position: fixed;
    display: flex;
    left: 0;
    top: 0;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgb(248, 185, 104);
    border-bottom: 1px solid rgb(2, 29, 105);
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    font-size: 14px ;
   font-family: Georgia, "Times New Roman", Times, serif;
    text-transform: uppercase;
    /* use Google font */
    transition: all .5s;
}

#ddfixedheader, #ddfixedheader * {
    box-sizing: border-box;
    
}

/* ########## Left logo DIV area ########## */
#ddfixedheader #logoarea {
    width: 250px;
    margin-right: 10px;
    margin-left: 30px;
   
}

#ddfixedheader #logo img {
    width: 237px;
    margin-left: 30px;
    height: auto;
    transition: all .5s;
}

/* ########## Uneven Line Menu ########## */
div.uneven-hamburger-icon {
    float: left;
    width: 37px;
    /* keep width/height ratio to 1.56 if changing dimensions */
    height: 24px;
    position: relative;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    display: none;
    margin-right: 25px;
    justify-content: space-between;
}

div.uneven-hamburger-icon > div {
    width: 37px;
    height: 5px;
    background: black;
    transform-origin: 12% 5px;
    transition: all .5s;
}

div.uneven-hamburger-icon > div.change {
    width: 100%;
    height: 7px;
    transform: translate(0, 15px) rotate(-45deg);
   
}

/* ########## Center UL Menu inside Fixed Header ########## */

#ddfixedheader ul#ddmainulmenu {
    margin-left: auto;
    margin-right: 120px;
    position: relative;
}

#ddfixedheader ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ddfixedheader ul#ddmainulmenu a {
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
    color: #290202;
}

#ddfixedheader ul#ddmainulmenu > li {
    /* top level LIs */
    display: inline-block;
    position: relative;
}

#ddfixedheader ul#ddmainulmenu li > a {
    /* top level LI links */
    border-bottom: 2px solid rgb(247, 162, 4);
   
}

#ddfixedheader ul#ddmainulmenu > li:hover > a {
    /* top level LI links */
    border-bottom-color: 1px solid rgb(240, 8, 8);
    z-index: 15;
}

#ddfixedheader ul#ddmainulmenu li > a:after {
    /* Arrow beneath top level LI links  */
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border: 6px solid transparent;
    border-top-color: #eee;
    bottom: -12px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

#ddfixedheader ul#ddmainulmenu li:hover > a:after {
    /* Arrow beneath top level LI links hover style */
    border-top-color: rgb(243, 22, 22);
}

#ddfixedheader ul#ddmainulmenu li > a:only-child {
    /* style for top level LI links with no sub UL */
    border-bottom: none;
}

#ddfixedheader ul#ddmainulmenu li > a:only-child:after {
    /* style for top level LI links with no sub UL */
    display: none;
}
  /* style boton hover */
#ddfixedheader ul#ddmainulmenu > li > a:hover {
    background: rgb(248, 200, 137);
    color: black;
}

#ddfixedheader ul#ddmainulmenu > li ul {
    /* sub ULs style */
    position: absolute;
    top: 100%;
    left: 0;
    border: 0px solid rgb(233, 172, 5);
    background: rgb(248, 200, 137);
    overflow: hidden;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 4px 4px 2px rgba(0,0,0,.1);
    transform: translateY(10%);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
}

#ddfixedheader ul#ddmainulmenu > li:hover > a {
    color: black;
}

#ddfixedheader ul#ddmainulmenu > li:hover ul {
    opacity: 1;
    overflow: auto;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: opacity .5s, -webkit-transform .5s, visibility 0s;
    transition: opacity .5s, transform .5s, visibility 0s;
}

#ddfixedheader ul#ddmainulmenu > li ul a {
    display: block;
    padding: 20px;
}

#ddfixedheader ul#ddmainulmenu > li ul a:hover {
   background: rgb(246, 174, 80);
    color: black;
}

/* ########## Right DIV containing search and social icons ########## */
#ddfixedheader #rightarea {
    font-size: 18px;
    width: 50px;
    
}

#ddfixedheader #rightarea ul {
    margin: 30px;
    padding: 30px;
    list-style: none;
}

#ddfixedheader #rightarea ul li{
    display: inline;
}

#ddfixedheader #rightarea ul li > *{
    padding: 10px;
}

#ddfixedheader #rightarea ul li label {
    cursor: pointer;
}

/* ########## Fixed header when user begins to scroll down ########## */
html.collapseheader #ddfixedheader {
    position: fixed;
    border-bottom-width: 0;
    border-bottom-color: white;
    box-shadow: 0 2px 2px #eee;
    opacity: .9;
}

/* ########## Logo area when user begins to scroll down ########## */
html.collapseheader #ddfixedheader #logoarea {
    width: 170px;
    
}

html.collapseheader #ddfixedheader #logo img {
    width: 200px;
    
}

/* ########## Shared style for mobilemenucontainer and ddsearchcontainer DIVs ########## */
div#ddmobilemenucontainer, div#ddsearchcontainer {
    position: fixed;
    width: 100%;
    z-index: 10000;
    display: block;
    background: rgb(244, 5, 5);
    left: -100%;
    /* initially position container out of view */
    top: 90px;
    /* shift container downwards so the header is still visible when search is shown */
    bottom: 0;
    padding-top: 50px;
    opacity: 0;
    cursor: crosshair;
    text-align: center;
    font: 14px "Merriweather", serif;
    /* use google font */
    -webkit-transform: scale(.9) translate3d(-0, -50px, 0);
    transform: scale(.9) translate3d(-0, -50px, 0);
    -webkit-transition: -webkit-transform .5s, opacity .5s, left 0s .5s;
    transition: transform .5s, opacity .5s, left 0s .5s;
}

/* ######### Mobile Menu Container DIV style ######### */
div#ddmobilemenucontainer {
    text-align: left;
    overflow: auto;
}

div#ddmobilemenucontainer, div#ddmobilemenucontainer * {
    box-sizing: border-box;
}

    /* ########## Accordion Menu main UL style ########## */

div#ddmobilemenucontainer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 380px;
    position: relative;
    margin: 0 auto;
}

div#ddmobilemenucontainer ul li {
    display: block;
    position: relative;
}

div#ddmobilemenucontainer ul li a {
    width: 100%;
    display: block;
    color: white;
    text-decoration: none;
    padding: 30px;
    display: block;
    box-sizing: border-box;
}

div#ddmobilemenucontainer ul li a:hover {
    background: rgb(174, 32, 32);
    color: black;
}

div#ddmobilemenucontainer ul li a.header {
    /* style for accordion headers */
    background: rgb(212, 40, 40);
    color: white;
    outline: none;
}

div#ddmobilemenucontainer ul li a span.accordionarrow {
    /* style for right arrow span added to headers */
    position: absolute;
    right: 10px;
    transition: all .2s;
}

div#ddmobilemenucontainer ul li a.header.active {
    /* style for accordion header when expanded */
    background: black;
}

div#ddmobilemenucontainer ul li a.active span.accordionarrow {
    /* style for right arrow span when header expanded */
    transform: rotate(90deg);
}

div#ddmobilemenucontainer > ul ul {
    /* hide sub ULs inside accordion by default */
    display: none;
}

div#ddmobilemenucontainer > ul li ul a {
    padding-left: 30px;
}

/* ########## DD Search Container DIV ########## */
div#ddsearchcontainer div {
    padding: 5px;
    color: white;
}

div#ddsearchcontainer form {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
    -webkit-transition: all .5s 0s;
    transition: all .5s 0s;
}

div#ddsearchcontainer form input[type="text"] {
    width: 90%;
    top: 0;
    left: 0;
    z-index: 99;
    padding: 10px;
    border: none;
    border-bottom: 2px solid gray;
    outline: none;
    font-size: 3em;
    background: #eee;
}

/* ########## Uneven Hamburger Icon style ########## */
html.openddmobilemenu div.uneven-hamburger-icon div.line1 {
    width: 80%;
    transform: rotate(45deg);
}

html.openddmobilemenu div.uneven-hamburger-icon div.line2 {
    opacity: 0;
    transform: translate3d(-10px,0,0);
}

html.openddmobilemenu div.uneven-hamburger-icon div.line3 {
    transform: rotate(-45deg);
}

/* ########## Mobile Menu and Search Containers style when visible ########## */
html.openddmobilemenu div#ddmobilemenucontainer, html.opensearch div#ddsearchcontainer {
    left: 0;
    opacity: 1;
    -webkit-transform: scale(1) translate3d(0, 0, 0);
    transform: scale(1) translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform .5s, opacity .5s, left 0s 0s;
    transition: transform .5s, opacity .5s, left 0s 0s;
}

html.opensearch div#ddsearchcontainer form {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: all .5s .5s;
}


/* ###################################################################################################################################### */
/* ############################################################### Media Logo ########################################################### */
/* ###################################################################################################################################### */

/* ########## Media Query Breakpoints ########## */

@media screen and (max-width: 1400px) and (min-width: 900px){
    #ddfixedheader  {
        position: fixed;
        width: 100%;
        display: flex;
        left: 0;
        top: 0;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: rgb(248, 185, 104);
          border-bottom: 1px solid rgb(248, 4, 4);
        background-image: url(../logo/Esto-news-001.svg) ; 
        background-repeat: no-repeat;
        z-index: 1500;

    }
    #ddfixedheader #logo img {
        width: 237px;
        margin-left: 30px;
        height: auto;
        transition: all .5s;
        
        }
    }   

    @media screen and (max-width: 900px) {
        #ddfixedheader  {
            position: fixed;
            width: 100%;
            display: flex;
            left: 0;
            top: 0;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: rgb(248, 185, 104);
            border-bottom: 1px solid rgb(248, 4, 4);
            background-image: url(../logo/Esto-news-001.svg) ; 
            background-repeat: no-repeat;
            z-index: 1500;
    
        }
        #ddfixedheader #logo img {
            width: 237px;
            margin-left: 30px;
            height: auto;
            transition: all .5s;
            
            }
        }   

    
@media (max-width: 800px) {
    #ddfixedheader  {
        position: fixed;
        display: flex;
        left: 0;
        top: 0;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: rgb(248, 185, 104);
        border-bottom: 1px solid rgb(248, 4, 4);
        background-image: url(../logo/estonews-blanco.svg) ;
        background-repeat: no-repeat;
        background-position: center bottom; 
    }
        #ddfixedheader #logo img {
            width: 237px;
            margin-left: 30px;
            height: auto;
            transition: all .5s;
            
        }
    }
    @media screen and (max-width: 700px) and (min-width: 300px){
    #ddfixedheader  {
        position: fixed;
        display: flex;
        left: 0;
        top: 0;
        justify-content: space-between;
        align-items: right;
        padding: 10px;
        background: rgb(248, 185, 104);
        border-bottom: 1px solid rgb(248, 4, 4);
        background-image: url(../logo/estonews-blanco.svg) ;
        background-repeat: no-repeat;
  background-position: center bottom; 
        z-index: 1500;
    }
    #ddfixedheader #logo img {
        width: 237px;
        margin-left: 30px;
        height: auto;
        transition: all .5s;
        
    }
}

@media (max-width: 860px) {
    #ddfixedheader ul#ddmainulmenu {
        display: none;
    }

    div.uneven-hamburger-icon {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    #ddfixedheader ul#ddmainulmenu {
        display: none;
    }

    div.uneven-hamburger-icon {
        display: flex;
        margin-left: auto;
    }
}


@media (max-width: 480px) {
    #ddfixedheader #rightarea ul li:not(:first-of-type) {
        display: none; 
    }

    div#ddsearchcontainer form input[type="text"] {
        width: 95%;
    }
       
        }
    




.container {
  display: inline-block;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}


