/*
  custom properties for ALICE
*/


/* ---------- Header */


/* -----------   Main menu --------------*/

.nav .navbar-nav .scrollable-menu {
    text-align: right;
}

body header .nav .scrollable-menu>li>a {
    transition: all 0.8s ease-in-out 0s;
    font-size: 0.88em;
    padding: 0;
    line-height: 1.3em;
    position: relative;
    text-transform: uppercase;
    letter-spacing: unset;
    text-shadow: 1px 0px 1px black, 0px 1px 1px black, -1px 0px 1px black, 0px -1px 1px black, 0 0 1px black;
}


/*
body header .nav > li > a .caret {
   position: absolute;
   right: -13px;
   top: 47%;
}*/


/*
body header .nav > li > a:after {
   bottom: 1em;
}*/


/*
.sticky-header:not(.open-cern-menu) header .nav > li > a {
    font-size: .72em;
    line-height: 3.0rem;
}

.sticky-header:not(.open-cern-menu) header .nav > li > span {
    font-size: .72em;
}

body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav > li > a, 
body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav > li > span {
   line-height: 2.5em;
}
.dropdown-menu {
   font-size: 16px;
}

.toolbar-tray-open #cern-toolbar {
   top: 78px;
}

.sticky-header.no-admin-toolbar header {
   top: 43px !important;
}

header.toolbar-fixed.toolbar-tray-open header {
   top: 120px;
   transition: all 0.8s ease-in-out 0s;
}

.sticky-header.toolbar-fixed.toolbar-tray-open header {
   top: 78px;
}


.sticky-header.cern-toolbar main, .sticky-header.cern-toolbar footer {
   top: 109px;
   transition: all 0.8s ease-in-out 0s;
}



.contextual {
   z-index: 99;
}
*/


/* add by arteche */

body header .site-nav .region-header nav.main-menu ul.navbar-nav ul.dropdown-menu {
    right: 150px;
    top: 77%;
    border: 2px solid black;
}

.layout .field--items>.field--item>.component-row {
    max-width: unset;
}

#cern-toolbar {
    z-index: 300;
}

.toolbar-tray-open #cern-toolbar {
    top: 78px;
}

.sticky-header.no-admin-toolbar header {
    top: 43px !important;
}

header.toolbar-fixed.toolbar-tray-open header {
    top: 120px;
    transition: all 0.8s ease-in-out 0s;
}

body header .nav>li>a {
    -webkit-transition: all 0.3s ease-in-out 0s;
    -khtml-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    font-size: 1.4rem;
    font-family: "opensans-bold";
    padding: 0;
    line-height: 76px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header .dropdown {
    justify-content: space-between;
    font-size: 1.4rem;
}

.has-header header {
    position: relative;
}

.sticky-header:not(.open-cern-menu) header .nav>li>a {
    -webkit-transition: all 0.3s ease-in-out 0s;
    -khtml-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    line-height: 3.0rem;
    font-size: 1.4rem;
    font-family: "opensans-bold";
    padding: 0;
    line-height: 76px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>a,
body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>span {
    line-height: 2.5em;
}

body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>a,
body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>span {
    cursor: pointer;
    line-height: 56px;
    font-size: 1.4rem;
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav>li>span {
    -webkit-transition: all 0.3s ease-in-out 0s;
    -khtml-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    font-size: 1.4rem;
    font-family: "opensans-bold";
    padding: 0;
    line-height: 76px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* end of add by arteche */


/* =========== main content */


/* page title */

h1.page-header {
    font-size: 2.5rem;
    text-align: left;
    line-height: 1.2em;
}


/* sidebars */

.sidebar-left .region-left>nav,
.sidebar-left .region-right>nav,
.sidebar-right .region-left>nav,
.sidebar-right .region-right>nav {
    padding: 15px;
    width: 30%;
}

.region-left>section:not(.without-shadow),
.region-right>section:not(.without-shadow),
.component-row__sidebar-right>section:not(.without-shadow),
.component-row__sidebar-left>section:not(.without-shadow) {
    box-shadow: unset;
    padding: 15px 25px;
    margin-bottom: 5px;
}


/*
.col-md-6 {
  width: 30%;  
}
*/


/* Blocks */

.block-title {
    font-size: 2rem;
    text-align: left;
    margin: 26px 16px 10px 16px;
}

.sidebar-left .region-left>section:not(.without-shadow),
.sidebar-left .region-right>section:not(.without-shadow),
.sidebar-right .region-left>section:not(.without-shadow),
.sidebar-right .region-right>section:not(.without-shadow) {
    box-shadow: none;
    padding: inherit;
}


/* page */

main .page h1 {
    font-size: 3.5rem;
}

main .page h2 {
    font-size: 2.6rem;
}

main .page h3 {
    font-size: 1.8rem;
}

main .pageh4 {
    font-size: 1.4rem;
}

main .page h5 {
    font-size: 1.2rem;
}

.region-content>nav.tabs {
    margin-bottom: 10px;
}

a {
    color: #0855a0;
}


/* ==== table ----- */

table img {
    display: inline-table;
}

tr.even {
    background-color: #fcfcfc;
}

tr.odd {
    background: #f3f3f3;
}

table caption {
    display: table-caption;
    margin: 0 8px;
}


/* google chart */

table {
    border-collapse: separate;
}

.google-visualization-orgchart-table tr {
    background: inherit !important;
}

table.google-visualization-orgchart-table {
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 45px !important;
}

table.google-visualization-orgchart-table a {
    text-decoration: none;
}


/* === Article ====== */

.img-full-article {
    float: right;
    display: flex;
    margin: 10px;
}

.img-full-article img {
    margin: 10px;
}

.img-two-column img {
    margin-bottom: 40px;
}


/* ========   calendar */

#calendar ul.w3-ul {
    line-height: 1;
}

.alicecal {
    font-size: 1.5rem;
    padding: 0;
}

.alicecalheader h4,
.alicecalheader h3 {
    text-align: center;
}

table th.alicecal {
    border-bottom: 1px solid #ddd;
    border-top: 2px solid #ddd;
}

table.alicecal,
table th.alicecal,
table td.alicecal {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 1px 0 0;
    margin: 0;
    text-align: center;
}

table.alicecal thead {
    display: table-row-group;
}

table td.alicecal a {
    display: block;
}

table td.today a {
    background-color: rgb(160, 185, 185);
    color: #666;
}

table td.alicecal a:hover {
    background-color: #E0E9E9;
    color: #666;
}


/* ALICE  menu*/

ul.menu li.menu-icon-1700 a {
    background-size: 42px;
}

.w3-bar-block .w3-bar-item {
    width: 100%;
    padding: 0px 36px 36px 36px;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
    color: transparent;
}


/* ALICE logo menu*/


/* ================ fields */


/* ===== drop down menu */

body header .dropdown-menu>li>a {
    padding: 0 0 7px 20px;
    line-height: 1.3;
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav>li.dropdown.open>ul.dropdown-menu li>a,
body header .site-nav .region-header nav.main-menu ul.navbar-nav>li.dropdown.open>ul.dropdown-menu li>span {
    padding: 0 0 7px 20px;
    line-height: 1.3;
}

nav.main-menu .dropdown-menu>li>a {
    min-height: 28px;
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav li.dropdown ul a:after {
    bottom: 10px;
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav li span:after {
    top: 16px;
}

.field--type-text-with-summary {
    margin-top: 10px;
    margin-right: 15px;
    margin-left: 15px;
}

.field--type-text-with-summary {
    margin-top: 10px;
    margin-right: 15px;
    margin-left: 15px;
}

div.field.field.field--type-entity-reference .field--label,
.field--label,
.panel-title {
    font-family: "sourcesans-bold";
    font-weight: normal;
}

div.field--label {
    margin-right: 5px;
}

div.field--label::after {
    content: " :";
}

div.field--label-inline div.field--label {
    float: left;
}

div.field--label-inline div.field--item {
    display: block;
}

div.field--label-inline div.field--label,
div.field--label-inline div.field--items {
    display: inline-block;
}


/*.field--name-field-fig-image  */


/*div.field--item img {
   margin: 10px;
}*/

.field.field--type-entity-reference .field--items .field--item {
    display: inline;
}

.shadow {
    border: 2px solid rgb(217, 217, 217);
    -moz-box-shadow: 5px 5px 5px #888;
    -webkit-box-shadow: 5px 5px 5px #888;
    box-shadow: 5px 5px 5px #888;
    margin-bottom: 5px;
}

.file-size,
.file-link {
    margin-left: 6px;
}


/* =========== add arrow to arccordion "Detail" mode fro a group */


/* arrow left */

div.panel-heading>a.panel-title.collapsed::before {
    content: "";
    display: inline-block;
    margin: 2px 7px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid;
}


/* arrow down */

div.panel-heading>a.panel-title::before {
    content: "";
    display: inline-block;
    margin: 2px 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid;
}


/* ========== change Form componentes ============== */


/* ========== change input/button shape */

input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="submit"]:hover {
    border-radius: 4px;
    vertical-align: baseline;
    height: auto;
    padding: 6px 15px 2px 15px;
    margin: 0px 6px;
    color: #fff;
    border: 1px solid #1e5c90;
    background-color: #0071b8;
    background-image: -webkit-linear-gradient(top, #007bc6, #0071b8);
    background-image: linear-gradient(to bottom, #007bc6, #0071b8);
    text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
    -webkit-font-smoothing: antialiased;
    transition: all 0.1s;
    font-weight: 600;
}

input[type="submit"]:hover {
    background-color: #2369a6;
    background-image: -webkit-linear-gradient(top, #0c97ed, #1f86c7);
    background-image: linear-gradient(to bottom, #0c97ed, #1f86c7);
    box-shadow: 0 1px 2px hsla(203, 10%, 10%, 0.25);
}

input[type="submit"]:focus {
    z-index: 100;
    border: 1px solid #3ab2ff;
    box-shadow: 0 0 0.5em 0.1em hsla(203, 100%, 60%, 0.7);
}

input[type="submit"]:active {
    -webkit-transition: none;
    z-index: 20;
    transition: none;
    border: 1px solid #3ab2ff;
    background-image: -webkit-linear-gradient(top, #08639b, #0071b8);
    background-image: linear-gradient(to bottom, #08639b, #0071b8);
    box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.2);
}

input[type="text"] {
    padding: 0.2em 0.5em 0.1em 0.5em;
    /*   border-radius: 4px;
   border: 1px solid #ccc; */
}

input[type="radio"],
input[type="checkbox"] {
    margin: 0px 3px 0px 10px;
}

legend {
    width: auto;
    padding: 0px 10px;
    border: none;
}

fieldset {
    margin: 10px 2px;
    border-radius: 2px;
}


/* ======== views =============== */

.w3-center img {
    margin-left: auto;
    margin-right: auto;
}

.img-responsive {
    max-width: 100%;
}

.view .wrapper-center>h1,
.view>h1 {
    font-size: 2rem;
    margin: 3rem 0 !important;
    text-align: left;
    display: none;
    /*by guille to hide view title*/
}


/* ---- Views exposed ---- */

.view .views-exposed-form .form-inline {
    justify-content: left;
}

.view .views-exposed-form .form-inline .form-item {
    flex: none;
}

.view .views-exposed-form .form-inline .form-item.form-type-textfield:first-child {
    width: auto;
}

.view .views-exposed-form .form-inline .form-item.form-type-textfield:first-child input {
    padding-left: 3em;
}

.view .views-exposed-form .form-inline .form-item.form-type-textfield:first-child:before {
    left: auto;
    bottom: .3em;
    width: auto;
    height: auto;
}

.view-filters .form-wrapper label,
.view-filters .form-item label {
    margin-bottom: 5px;
    bottom: -5px;
    font-size: medium;
}


/*
.view .view-content *, .view.event-grid .view-content * {
   width: 100%;
   padding-left: 3px; 
   padding-right: 3px; 
}  remove by Paco */


/*  ==== end views =====*/


/* This is to remove the hiding of the info in the Field Groups during the scrolling  (arteche)*/

.fade.out {
    /* -webkit-opacity: 0; */
    -khtml-opacity: 1;
    -moz-opacity: 1;
    -ms-opacity: 1;
    -o-opacity: 1;
    opacity: 1;
    transform: unset;
}

.toolbar .toolbar-bar .toolbar-tab>.toolbar-icon {
    width: auto;
    padding-right: 1.3333em;
    padding-left: 2.75em;
    text-indent: -9999px;
    background-position: left center;
}


/* tooltip for list of papers */

.papertooltip {
    position: relative;
    display: inline-block;
}

.papertooltip .tooltiptext {
    visibility: hidden;
    top: 111%;
    left: 10%;
    width: 55vw;
    background-color: #bdbcbc;
    color: black;
    text-align: center;
    border-radius: 6px;
    border: 2px solid #bdbcbc;
    padding: 6px;
    /*  margin: 200px 0;*/
    box-shadow: 2px 8px 8px #B8B8B8;
    position: absolute;
    z-index: 1000;
}

.papertooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    /* At the top of the tooltip */
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #bdbcbc transparent;
}

.papertooltip:hover .tooltiptext {
    visibility: visible;
}

#block-submissionsblock {
    margin-bottom: 60px;
}

#block-alicemision {
    margin-top: 45px;
}

#block-alicenewsletter {
    margin-top: 35px;
    padding: 3px;
}


/* ==================== */

@media (min-width: 768px) {
    .navbar-nav>li {
        float: none;
        display: inline-block;
    }
}

@media (min-width: 992px) {
    .container {
        width: 90%;
    }
}

@media (min-width: 1400px) {
    .container {
        width: 80%;
    }
    /* increase font size for main menu in large sreen. E. Lopez */
    body header .nav>li>a {
        font-size: 1.4rem;
        line-height: 1.5em;
    }
    body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>a,
    body.sticky-header:not(.open-cern-menu) header .navbar-default.main-menu .nav>li>span {
        font-size: 1.4rem;
        line-height: 1.5em;
    }
    .card .card-image .card-title-1 a {
        font-size: 1.1rem;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1080px) {
    body header .site-nav {
        top: -2px;
    }
    body header.menu-expanded {
        top: 39px;
    }
    body header.menu-expanded .site-info__logo {
        max-width: 99%;
    }
    body header .site-nav .region-header nav .navbar {
        display: flex;
        height: auto;
    }
    body header .site-nav .region-header nav {
        width: 80%;
        float: left !important;
    }
    body header .site-nav .region-header nav .navbar .container-fluid {
        margin-left: 0;
    }
}

@media only screen and (min-width: 1081px) {
    body header .site-nav .region-header nav.main-menu ul.navbar-nav>li.dropdown {
        margin-right: 30px;
    }
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav>li span.caret {
    right: -13px;
}

@media (max-width: 768px) {
    /* site name  */
    body header .site-info__text__name {
        font-size: 2.0rem;
    }
    body header .site-nav {
        top: -2px;
    }
    body header .site-nav .region-header nav {
        width: 80%;
        float: left !important;
    }
    body header .site-nav .region-header nav .navbar .container-fluid {
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    /* site name  */
    body header .site-info__text__name {
        font-size: 3.5rem;
    }
}


/*------------- add by guille ----------*/

@media only screen and (max-width: 768px) {
    .view .views-exposed-form .form-inline .form-item {
        width: auto;
    }
}

body header .site-nav .region-header nav.main-menu ul.navbar-nav ul.dropdown-menu {
    /* width: 320px !important;*/
    /* width: auto !important;*/
    padding: 15px;
}


/* END.  Keep  @media staments at the end of the file!!! */


/*esto es para jugar con el ancho de las columnas del landing page */


/*@media (min-width: 992px){
   .col-md-6 {
      width: 33%;
   }
}*/

@media (min-width: 992px) {
    .col-md-3 {
        width: 23%;
    }
}


/* for information page julia request
boxes like https://usersoffice.web.cern.ch/forms-and-templates
*/

.box-reduced-width {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
}

.box-column {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
}

.box-reduced-width div {
    flex: 1;
    min-height: 110px;
    background-color: #E2E3E6;
    padding: 20px 15px 10px 22px;
    margin: 0 10px 10px 0;
}

.box-gray {
    flex: 1;
    min-height: 110px;
    background-color: #E2E3E6;
    padding: 20px 10px 10px 10px;
    margin: 0 10px 10px 0;
}

.box-reduced-width div p {
    margin: 0;
    margin-bottom: 2px;
}


/**titulo del hero header****/

.cern-component-header-blocks .component-header__carousel .header-block {
    position: absolute;
    min-height: 100%;
    min-width: 100%;
}

.cern-component-header-blocks .component-header__carousel .header-block__title h3.header-block__name {
    text-align: center;
    background-color: rgba(8, 85, 160, .8);
    color: white;
    padding: 20px 20px 20px 20px;
    position: absolute;
    bottom: 0;
    max-width: 90%;
}

body.has-header.cern-toolbar.toolbar-fixed.toolbar-vertical .is_full_height .cern-component-header-blocks.component-header .header-block__title {
    width: 100vh;
}


/************** view que llena los News del main menu*/

.cern-view-display-page.cern-view-display-resources .view-content .views-row,
.card-grid .view-content .views-row {
    width: calc(33.3% - 31px);
    margin: 15px;
    float: left;
    box-shadow: 6px 8px #7d7c7c40;
    padding: 15px;
    border: 1px solid #cac8c8;
    border-radius: 7px;
    min-width: 300px;
}

.card .card-image img {
    margin: auto;
}

.card .card-image .card-title-1 {
    background: rgba(14, 126, 181, 0.61);
    top: -34px;
    position: relative;
    left: 16px;
    padding: 2px 5px 2px 8px;
    display: block;
    margin-right: 30px;
}

.card .card-image .card-title-1 a {
    font-size: 18px;
    max-width: 90%;
    padding: 6px;
    color: white !important;
    text-shadow: 1px 0px 1px black, 0px 1px 1px black, -1px 0px 1px black, 0px -1px 1px black, 0 0 1px black;
}


/***********************************imagenes dentro del newsletter**********************************/

.news_center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/********************para la pagina de institutos la barra de orden alfabetico********************************/

.w3-black,
w3-hover-black:hover {
    color: #fff!important;
    background-color: #000!important;
}

.w3-bar {
    width: 100%;
    overflow: hidden;
}

.w3-container,
.w3-panel {
    padding: 0.01em 16px;
}

.w3-large {
    font-size: 18px!important;
}

.w3-display-topright {
    position: absolute;
    right: 0;
    top: 0;
}

.w3-btn,
.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

button,
select {
    text-transform: none;
}

button,
input,
select,
textarea {
    font: inherit;
    margin: 0
}

optgroup {
    font-weight: bold
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}

button,
html [type=button],
[type=reset],
[type=submit] {
    -webkit-appearance: button
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
    border-style: none;
    padding: 0
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
    outline: 1px dotted ButtonText
}

.w3-btn,
.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap
}

.w3-btn:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}

.w3-btn,
.w3-button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.w3-disabled,
.w3-btn:disabled,
.w3-button:disabled {
    cursor: not-allowed;
    opacity: 0.3
}

.w3-disabled *,
:disabled * {
    pointer-events: none
}

.w3-btn.w3-disabled:hover,
.w3-btn:disabled:hover {
    box-shadow: none
}