/**
 * @file
 * Positioning for responsive layout .
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/*
 * Center the page.
 */
#page-wrapper {
    overflow: hidden;
    min-width: 1034px;
  padding-bottom: 15px;
}
#modalContent {
  border: 20px solid rgba(0,0,0,0.6);
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  background: none;
}
#cboxLoadedContent {
  padding: 15px 20px;
  margin: 0;
}
#modalBackdrop {
  opacity: 0.6 !important;
  background: #000 !important;
}
#modalContent .form-text {
  width: 149px;
  padding: 4px 8px;
  font-size: 13px;
}
#modalContent .select-wrapper {
  width: 165px;
}
html > body .select-wrapper select {
  background-position: 144px center !important;
  width: 205px !important;
}
.form-actions .form-submit {
  width: 167px;
  padding: 7px 0;
}
#modalContent .popups-close,
#modalContent .popups-close:hover{
  background: url("/themes/seven/images/closelabel.png") no-repeat;
  height: 17px;
  width: 17px;
  right: 15px;
  bottom: 15px;
  position: absolute;
  z-index: 100;
}
.modal-header {
  background: #1f4a91 !important;
  background: -moz-linear-gradient(top,  #1f4a91 0%, #1b4488 16%, #0d2b5f 66%, #07204d 100%) !important;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1f4a91), color-stop(16%,#1b4488), color-stop(66%,#0d2b5f), color-stop(100%,#07204d)) !important;
  background: -webkit-linear-gradient(top,  #1f4a91 0%,#1b4488 16%,#0d2b5f 66%,#07204d 100%) !important;
  background: -o-linear-gradient(top,  #1f4a91 0%,#1b4488 16%,#0d2b5f 66%,#07204d 100%) !important;
  background: -ms-linear-gradient(top,  #1f4a91 0%,#1b4488 16%,#0d2b5f 66%,#07204d 100%) !important;
  background: linear-gradient(to bottom,  #1f4a91 0%,#1b4488 16%,#0d2b5f 66%,#07204d 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1f4a91', endColorstr='#07204d',GradientType=0 );
  font-size: 14px;
  margin: 0;
  padding: 15px 14px !important;
  text-transform: none;
  color: #fff;
}
.modal-header #modal-title {
  font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
  color: #fff !important;
}
div.modal-forms-modal-content .popups-container {
  border-radius: 0 !important;
}
#page,
.region-bottom {
  /* For screen sizes larger than 1200px, prevent excessively long lines of text
     by setting a max-width. */
  margin-left: auto;
  margin-right: auto;
  width: 1034px;
  margin-top: 80px;
}

/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */

#header,
#navigation,
#content,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 20px;
  padding-right: 20px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

#content,
.region-sidebar-first, .region-sidebar-second {
  padding: 0 10px;
}
.sidebar-second .region-sidebar-second { 
    float: left;
    width: 290px;
    margin-left: 744px;
    margin-right: -100%;
    margin-top: -100px;
  }

#content {
    float: left;
    width: 764px;
    margin-left: 0%;
    margin-right: -764px;
  }
.no-sidebars #content {
  width: 100%;
  margin-right: 100%;
}
/*
 * Containers for grid items and flow items.
 */

#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
/*#header:before,*/
#header:after,
#main:before, #main:after,
#footer:before, #footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/*
 * Navigation bar
 */

@media all and (min-width: 480px) {
  
  #main {
    --padding-top: 3em; /* Move all the children of #main down to make room. */
    position: relative;
  }

  #navigation {
    --position: absolute;
    --top: 0; /* Move the navbar up inside #main's padding. */
    --height: 3em;
    width: 100%;
  }
  

}





  /*
   * The layout when there is only one sidebar, the left one.
   */

  .sidebar-first #content { /* Span 4 columns, starting in 2nd column from left. */
    float: left;
    width: 80%;
    margin-left: 20%;
    margin-right: -100%;
  }
  .sidebar-first .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 20%;
    margin-left: 0%;
    margin-right: -20%;
  }

  /*
   * The layout when there is only one sidebar, the right one.
   */
  
 /** general **/
  .sidebar-second #content { 
    float: left;
    width: 66.667%;
    margin-left: 0%;
    margin-right: -66.667%;
  }
  .sidebar-second .region-sidebar-second { 
    float: left;
    width: 33.333%;
    margin-left: 66.667%;
    margin-right: -100%;
    margin-top: -100px;
  } 

 /** for trading-online **/
  .section-videos.sidebar-second #content,
  .custom #content { 
    float: left;
    width: 764px;
    margin-left: 0%;
    margin-right: -764px;
  }
  .section-videos.sidebar-second .region-sidebar-second,
  .custom .sidebars .region-sidebar-second { 
    float: left;
    width: 290px;
    margin-left: 744px;
    margin-right: -100%;
    margin-top: -20px;
  }
  .custom .sidebars .region-sidebar-second { 
    padding: 0 20px 0 30px;
  }
  
  /** for forums **/
  .page-forum.sidebar-second #content { 
    float: left;
    width: 744px;
    margin-left: 0%;
    margin-right: -744px;
  }
  
  .page-forum.sidebar-second .region-sidebar-second { 
    float: left;
    width: 320px;
    margin-left: 724px;
    margin-right: -100%;
    margin-top: -100px;
  } 
  
  /** for books **/
  .node-type-analisi-tecnica.sidebar-second #content,
  .node-type-book.sidebar-second #content { 
    float: left;
    width: 80%;
    margin-left: 0%;
    margin-right: -80%;
  }
  .node-type-analisi-tecnica.sidebar-second .region-sidebar-second,
  .node-type-book.sidebar-second .region-sidebar-second { 
    float: left;
    width: 20%;
    margin-left: 80%;
    margin-right: -100%;
    margin-top: -100px;
  }

  /*
   * The layout when there are two sidebars.
   */

  .two-sidebars #content { /* Span 3 columns, starting in 2nd column from left. */
    float: left;
    width: 60%;
    margin-left: 20%;
    margin-right: -80%;
  }
  .two-sidebars .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 20%;
    margin-left: 0%;
    margin-right: -20%;
  }
  .two-sidebars .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 20%;
    margin-left: 80%;
    margin-right: -100%;
  }
  
  .front.two-sidebars #content { /* Span 3 columns, starting in 2nd column from left. */
    float: left;
    width: 33.333%;
    margin-left: 33.333%;
    margin-right: -66.667%;
  }
  .front.two-sidebars .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 33.333%;
    margin-left: 0%;
    margin-right: -33.333%;
  }
  .front.two-sidebars .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 33%;
    margin-left: 66.667%;
    margin-right: -100%;
  margin-bottom: 2em;
  }

.region-content-bottom {
  clear:both;
}
h1 span.green {
  color: #55a806;
}

.page-node-23141.sidebar-second #content {
    float: left;
    width: 764px;
    margin-left: 0%;
    margin-right: -764px;
}
.section-videos.sidebar-second .region-sidebar-second,
.page-node-23141.sidebar-second .region-sidebar-second {
    float: left;
    width: 290px;
    margin-left: 744px;
    margin-right: -100%;
    margin-top: -20px;
}
.page-node-23141.sidebar-second .region-sidebar-second {
    padding: 0 20px 0 30px;
}



.section-404.sidebar-second #content{
    width: 712px;
    padding: 0 22px 0 20px;
  }
  .section-404.sidebar-second .region-sidebar-second{
    width: 300px;
    margin-left: 690px;
    padding: 0;
  }