body {
    color: #555;
}

#maincontainer2 {
    margin: 0 auto;
}

#header {
    margin: 0 auto;
    background: #867e88;
}


#header.index {
    background: url(header.jpg) no-repeat top center #000;
    height: 500px;
}

#header a {
    color: #fff;
}

#mainfeat {
    font-size: 130%;
    width: 40%;
    float: right;
    margin: 3em 0 0 0;
    color: #867e88;
    font-family: georgia;
    font-weight: 200;
}

#mainfeat .author {
    font-family: arial;
    font-size: 55%;
    text-transform: uppercase;
    text-align: right;
}

#mainfeat a {
    font-weight: 800;
    color: #dc0066;
}

#logo {
    margin: 1.9em 0 1.5em 0;
    float: left;
    opacity: 0.8;
    background: #867e88;
}

.index #logo {
    opacity: 1;
    background: transparent;
}

.index .navbar-default {
    background-color: transparent;
}

.navbar-default {
    background-color: #867e88;
    border-color: #867e88;
    float: right;
    margin-bottom: 0;
    margin-top: 2em;
    font-size: 90%;
    font-weight: bold;
}

.navbar-default li:first-child.dropdown {
    display: none;
}

.nav>li>a {
    padding: 10px 10px;
}

.nav>li>a:hover {
    color: #333 !important;
    background: #867e88;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.open>a {
    background: #867e88;
    box-shadow: none;
    color: #333 !important;
}

.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.open>a:hover {
    background: #867e88;
    box-shadow: none;
    color: #333 !important;
}

.navbar-collapse {
    padding-right: 0;
}

#tagline {
    display: none;
}

#language {
    color: #867e88;
    font-family: georgia;
    float: right;
    text-align: right;
    margin-top: 1em;
    font-size: 85%;
}

#language a {
    color: #c3bfc4;
    padding: 5px 0;
}

#footer {
    font-size: 0.8em;
    background: #867e88;
    color: #fff;
    height: 120px;
    margin: 0 auto;
    width: 100%;
    text-align: right;
}

#footer .container {
    background: rgba(0, 0, 0, 0) url("logo.png") no-repeat scroll 15px 50px / 300px auto;
}

#footer a {
    color: #fff;
}

#made-by-cs a {
    color: #555;
    margin-top: 1em;
}

#utilities {
    text-transform: uppercase;
    text-align: right;
    margin-right: 15px;
    padding: 1em 0 3em;
}

/***portada*****************************/

#newsblog {
    background: #f3f2f3;
}

#news {
    background: #e8e6e8;
}

#mainnews,
#lastblog {
    padding: 3em;
}

#mainnews .newsitem {
    border-bottom: 0;
    padding-bottom: 1em;
}

#mainnews h2,
#lastblog h2,
#otherfeatured h2 {
    font-size: 36px;
}

#otherfeatured h2 {
    padding: 1em 0;
    text-align: center;
}

#otherfeatured {
    padding-bottom: 3em;
}

#otherfeatured .featured {
    border-right: 1px solid #f2f3f2;
    text-align: center;
}

#otherfeatured .featured:last-child {
    border-right: 0;
}

#mainnews h3,
#lastblog h3 {
    font-size: 24px;
}

h2 .blogtitle,
h1 .blogtitle {
    font-weight: bold;
}

h1 {
    font-size: 260%;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    letter-spacing: -1px;
    color: #000;
    margin-bottom: 30px;
}

h2 {
    font-size: 150%;
    font-family: Georgia, "Times New Roman", Times, serif;
    margin-bottom: 0.5em;
    color: #000;
    font-weight: normal;
    line-height: 1.1em;
}

h3 {
    font-size: 125%;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #000;
}

h4 {
    font-size: 0.85em;
    padding: 0.5em 0 0.5em 0;
    width: 70%;
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    letter-spacing: 1px;
    font-family: Arial;
    font-weight: 800;
    line-height: 180%;
}

h5 {
    font-size: 90%;
}

h6 {
    font-size: 85%;
}

p {
    margin: 0 0 20px;
}

a {
    color: #CC0066;
    text-decoration: none;
    font-weight: normal;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

img,
img a {
    border: 0px;
    /*! max-width: 100%; */
    margin-bottom: 1em;
}

#firstfeatured .featured h1,
#lastblog h1,
#lastnew h1,
#otherfeatured h1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0 0 8px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #999;
    /* border-bottom: 1px solid #999; */
    /* width: 60%; */
    background: url(portizen.gif) no-repeat -40px 12px;
    margin: 1em 0 0 0;
}

/*
.blog h1.blogmain {
        font-size: 600%;
       
    }*/
/*.blog h1 {
        font-size: 200%;
        margin: 0 0 10px 0;
        font-weight: normal;
        color: #ccc;
    }*/

.blog #content h3 {
    font-size: 1.4em;
    line-height: 1.1em;
}

.blog #content h2,
.blog #content h1 {
    font-size: 260%;
    margin-bottom: 0.25em;
    line-height: 1.1em;
}

.blog #content h1.blogmain {
    font-size: 350%;
}

.blog #menu h2 {
    text-decoration: none;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    margin-top: 1em;
    padding: 2px 10px;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    background: url(menubloga.gif) no-repeat;
    color: #fff;
}

#replies h2#comments,
h2#reply_yes {
    font-size: 1.5em !important;
    text-transform: uppercase;
}

.blogitem {
    padding-bottom: 1em;
    border-bottom: 1px solid #ccc;
}

.blog #content ul {
    padding: 0;
}

.blog #content li {
    background: rgba(0, 0, 0, 0) url("dash.gif") no-repeat scroll 0 7px;
    list-style: outside none none;
    margin: 0 0 3px;
    padding: 3px 0 3px 20px;
}

.return {
    color: #cc0066;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 15px;
}

/***********bigarren menua*******************/

#menulist {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#menulist li {
    list-style: none;
    margin-left: 0;
}

#menu ul {
    margin: 0;
    padding: 0;
}

#menu ul li {
    list-style: none;
}

#menulist li a,
#menu li a {
    padding: 1em;
    background: #e7e5e7;
    margin-bottom: 1px;
    display: block;
    width: 100%;
    color: #867e88;
}

#menulist li.active,
#menulist li a:hover,
#menu li.selected,
#menu li a:hover {
    padding: 1em;
    background: #867e88;
    color: #fff;
    margin-bottom: 1px;
    display: block;
    width: 100%;
    text-decoration: none;
}

.navbar-default {
    background-image: none;
    background-repeat: repeat-x;
    border-radius: 0;
    box-shadow: none;
    border: 0;
}

.navbar-default .navbar-nav>li>a {
    color: #fff;
    text-transform: uppercase;
}

.navbar-brand,
.navbar-nav>li>a {
    text-shadow: none;
}

/********edukia************************/

#container {
    padding: 2em 0;
}

#container.atxaga {
    padding: 0 0 0 0;
}

.atxaga #maincontent.row {
    margin: 0;
}

#breadcrumb {
    color: #867e88;
    font-size: 90%;
}

#content {
    color: #555;
    font-size: 17px;
    line-height: 160%;
}

.news #content img {
   width: 100%;
    margin-bottom: 1em;
}
.news #content img.newsphoto.col-md-2 {
    width: 16.66666667% !important; 
}


#content h1 {
    color: #000;
}

.imgrightber,
.imgrighthor,
.imgright {
    float: right;
    margin: 0 0 1em 1em;
}

.imgrightber p,
.imgrighthor p,
.imgright p {
    font-size: 80%;
    font-family: georgia;
    width: 200px;
    line-height: 120%;
    margin: 10px 0 0 15px;
}


blockquote {
    border-left: 4px solid #efefef;
    font-style: italic;
    margin-left: 2em;
    padding-left: 0.5em;
    font-size: 16px;
    line-height: 130%;
}

.smalllink {
    font-size: 80%;
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
}



.newsitem {
    border-bottom: 1px solid #efefef;
    padding-bottom: 1em;
}

.newsitem p {
    font-size: 16px;
}

.summary {

    font-family: georgia;
    font-size: 20px;
    font-style: italic;
    margin-top: 1em;
}

.newscontent h2,
.newscontent p {
    margin: 0;
}

.data {
    text-transform: uppercase;
    font-size: 12px !important;
    margin: 5px 0 15px !important;
    letter-spacing: 1px;
}

.newsitem p.data {
    margin: 7px 0 5px !important;
}

#content li {
    background: rgba(0, 0, 0, 0) url("menugeza.gif") no-repeat scroll 0 10px;
    list-style: outside none none;
    margin: 0 0 3px;
    padding: 3px 0 3px 15px;
}

/************Bibliografia*************/

.edizioa img {
    float: left;
    background: transparent url(itzala.gif) no-repeat scroll right top;
    padding: 0 5px 0 0;
    margin: 0 1em 0 0;
}

#lehen_edizioa {
    margin: 1em 0;
}

#lehen_edizioa img,
.featured img {
    background: transparent url(itzala.gif) no-repeat scroll right top;
    padding: 0pt 5px 0 0;
    max-width: 100%;
    height: auto;
}

.edizioa {
    padding: 16px;
    min-height: 160px;
    font-size: 90%;
}

.edizioa p {
    margin: ;
}

.edizioa h3 {
    margin-top: 0;
}

#argumentua {
    margin-top: 1em;
}

.testua ul {
    margin-left: 0;
    padding-left: 0;
}

#galeria1 .thumbnail {
    text-align: center;
    font-size: 80%;
}

#galeria1 .thumbnail img {
    margin: 5px auto 10px;
}

#galeria1 .thumbnail {
    text-align: center;
    font-size: 80%;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

.btn-primary {
    background-image: linear-gradient(to bottom, #b70e5d 0px, #e1267d 100%);
    background-repeat: repeat-x;
    border-color: #df1371;
    list-style: none;
}

.btn-primary:focus,
.btn-primary:hover {
    background-color: #e1267d;
    border-color: #e1267d;
}

.btn-primary.active,
.btn-primary:active {
    background-color: #e1267d;
    border-color: #e1267d;
}

.form-group em {
    font-size: 80%;
    margin-top: 5px;
}


@media (max-width: 500px) {
    #logo img {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #logo {
        float: left;
    }

    #mainnews,
    #lastblog {
        padding: 1em
    }

    .navbar-default {
        float: left;
        width: 100%;
        margin-top: 0;
    }

    .imgrightber,
    .imgrighthor,
    .imgright {
        float: none;
        margin: 0 0 1em 0;
    }

    #header.index {
        background: #000 url("header.jpg") no-repeat scroll 20% top;

    }

    #mainfeat {
        width: 100%;
        margin: 2em 0 0 0;
        text-shadow: 1px 1px #333;
        font-size: 130%;
        color: #ccc;
        padding: 0 1em;
    }

    #lehen_edizioa_info {
        margin-top: 1em;
    }


    #logo {
        width: 80%;
        float: left;
        margin-bottom: -35px;
        position: relative;
        z-index: 9;
    }

    #content ul {
        padding: 0;
    }

    #otherfeatured .featured h3 {
        margin-bottom: 3em;
    }

    #utilities,
    #made-by-cs {
        text-align: left;
        margin-left: 1.5em;
    }
    .news #content img.newsphoto.col-md-2 {
    width: 80% !important;
    margin: 1em 0;
    }
}