html {
  box-sizing: border-box;
}
.group:after {
  content: "";
  display: table;
  clear: both;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body{
    height:100%;
    /*overflow: hidden;*/
}
body{
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#fc5f23+0,fc5f23+31,000000+31,000000+31,000000+70,000000+70,e7c4a6+70,e7c4a6+70,e7c4a6+99 */
  background: #fc5f23; /* Old browsers */
  background: -moz-linear-gradient(top,  #fc5f23 0%, #fc5f23 31%, #000000 31%, #000000 31%, #000000 70%, #000000 70%, #e7c4a6 70%, #e7c4a6 70%, #e7c4a6 99%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  #fc5f23 0%,#fc5f23 31%,#000000 31%,#000000 31%,#000000 70%,#000000 70%,#e7c4a6 70%,#e7c4a6 70%,#e7c4a6 99%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  #fc5f23 0%,#fc5f23 31%,#000000 31%,#000000 31%,#000000 70%,#000000 70%,#e7c4a6 70%,#e7c4a6 70%,#e7c4a6 99%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc5f23', endColorstr='#e7c4a6',GradientType=0 ); /* IE6-9 */

}
h1, h2, h3, h4{
    background: #000;
    color: #fff;
    padding: 8px;
}
h1 a, h2 a, h3 a, h4 a{
    color: #fff;
}
p{
    line-height: 1.4;
}
a{
    text-decoration: none;
    font-weight: bold;
}
#wrapper{
    min-height: 100vh;
}
/*header[role="banner"]{
    padding: 10px 20px;
    height: 100px;
    position: relative;
    z-index: 222;
}
#logo{
    background: url('../images/logo.png') 50% 50% no-repeat;
    background-size: cover;
    height: 80px;
    width:143px;
}*/
.social-icons{
    position: relative;
    margin: 10px;
    float: right;
    text-align: right;
    width: 280px;
    z-index: 333;
}
.social-icons a{
    color: #FC5F31;
    display: inline-block;
    text-align: center;
    width:24px;
    margin: 0 5px;
}
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.btn{
    background: #fff;
    display: inline-block;
    border: 4px solid #000;
    margin: 4px;
    padding: 12px;
    color: #000;
}

.container{
    max-width:1200px;
    margin: 0 auto;
    position: relative;
}

#flag{
    position: absolute;
    top:0;
    left:0;
    height: 100%;
    width:100%;
    z-index: 0;
}
#flag > div{
    height:33.333332%;
}
#flag > div:nth-child(1){
    background-color: #ff5e08;
}
#flag > div:nth-child(2){
    background-color: #000000;
}
#flag > div:nth-child(3){
    background-color: #E8C4A4;
}
#flag #mask{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index: 111;
}

div#teaser-photo,
#teaser-photo img,
#teaser-photo video{
    /*position: absolute;
    top:calc(50% + 12px);;
    left:50%;
    height: 100%;
    max-height: 90%;
    transform: translateX(-50%) translateY(-50%);*/
}
#teaser-photo{
    display: block;
    text-align: center;
    width:90%;
    z-index: 1;
    
    /*position: absolute;
    top:50%;
    left:50%;*/
    max-width:700px;
    width:100%;
    /*-ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);*/
    /*padding: 40px;*/
    height: auto;
    margin-bottom: 40px;
}
#teaser-photo img,
#teaser-photo video{
    height:auto;
    max-height: 100%;
    max-width: 100%;
}
#teaser-video{
    top:100px;
    left:50%;
    width:100%;
    position: absolute;
    max-width:1000px;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0 auto;
}
#teaser-video > div{
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
    padding-bottom: 56.25%;
}
#teaser-video iframe{
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
}

video#bgvid { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url(polina.jpg) no-repeat;
    background-size: cover; 
}


@media (max-width: 600px) {
    header[role="banner"]{
        padding: 10px;
        height:80px;
    }
    #logo{
        height: 56px;
        width: 100px;
    }
    .social-icons{
        width:204px;
    }
    .social-icons a{
        margin: 0 2px;
        width:20px;
    }
    .icon {
      display: inline-block;
      width: 18px;
      height: 18px;
    }
    #flag{

    }
}


/******* TABLES *******/

.table-container {
  background: #E7C4A6;
  width: 100%;
  overflow-y: scroll;
  /* has to be scroll, not auto */
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.8em;
}

.table li {
  border-bottom: 1px solid #777;
  list-style: none;
}

table,
.table {
  width: 100%;
}
table th,
table td,
.table th,
.table td {
  word-wrap: break-word;
  max-width: 400px;
}
table thead,
table .thead,
.table thead,
.table .thead {
  background: #777;
}
table .thead > div,
table .tr > div,
.table .thead > div,
.table .tr > div {
  display: flex;
  flex-wrap: wrap;
}
table .thead > div > span,
table .tr > div > span,
.table .thead > div > span,
.table .tr > div > span {
  display: inline-block;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
}
table th,
table .th,
.table th,
.table .th {
  text-align: left;
  text-transform: uppercase;
}
table tr,
table .tr,
.table tr,
.table .tr {
  border-bottom: 1px solid #000;
}
table tr:hover,
table .tr:hover,
.table tr:hover,
.table .tr:hover {
  
}
table tr a,
table .tr a,
.table tr a,
.table .tr a {
  color: #FFF;
}
table td,
.table td {
  vertical-align: middle;
}

@media only screen and (max-width: 600px) {
  table tr,
  table .tr,
  .table tr,
  .table .tr {
    border-bottom: 4px solid #000;
  }
  table thead,
  table .thead,
  .table thead,
  .table .thead {
    display: none;
  }
  table tr > div,
  table .tr > div,
  .table tr > div,
  .table .tr > div {
    display: inline-block;
  }
  table tr > div > span,
  table .tr > div > span,
  .table tr > div > span,
  .table .tr > div > span {
    padding: 6px 6px 6px 100px;
    width: 100%;
  }
  table tr > div > span:before,
  table .tr > div > span:before,
  .table tr > div > span:before,
  .table .tr > div > span:before {
    float: left;
    vertical-align: middle;
    display: block;
    content: attr(data-column-title);
    position: absolute;
    left: 10px;
    font-style: italic;
    font-size: 0.9em;
  }
}
