* {
  margin: 0;
  padding: 0;
  font: 20px/20px Arial,sans-serif;
  color: #333;
}

/* navigation */
header {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
}
header:before {
  content: '';
  position: absolute;
  top: 27px;
  right: 30px;
  border: 15px solid transparent;
  border-bottom: none;
  border-top: 25px solid #333;
  transition: .4s;
}
header.open:before {
  transform: rotate(60deg);
}

h1 {
  position: relative;
  padding: 30px;
  cursor: pointer;
}
ul {
  display: none;
  list-style-type: none;
  padding: 30px;
}
li {
  padding: 5px 0;
}
ul a {
  text-decoration: none;
  color: #339;
}
ul a:hover {
  text-decoration: underline;
}

/* ad wrappers */

.w1 {
  padding: 50px;
  background-color: #eee;
}
.w1:nth-child(even) {
  background-color: #ccc;
}
.w2 {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
}

@media (min-width: 1100px) {
  .w1.size-728x90  { text-align: center; background: #ccc url(/img/bg-728x90-c.png)  50% 0 no-repeat; min-height: 150px; }
  .w1.size-300x250 { text-align: right;  background: #ccc url(/img/bg-300x250-r.png) 50% 0 no-repeat; min-height: 500px; }
  .w1.size-300x600 { text-align: left;   background: #eee url(/img/bg-300x600-l.png) 50% 0 no-repeat; min-height: 700px; }
  .w1.size-160x600 { text-align: right;  background: #ccc url(/img/bg-160x600-r.png) 50% 0 no-repeat; min-height: 700px; }
}

/* iframes */

iframe { display: inline-block; border: 0; }
.size-160x600 iframe { width: 160px; height: 600px; }
.size-300x250 iframe { width: 300px; height: 250px; }
.size-300x600 iframe { width: 300px; height: 600px; }
.size-728x90  iframe { width: 728px; height: 90px ; }


/* buttons */
a.refresh,
a.open {
  display: block;
  padding-top: 10px;
  font-size: 15px;
}
a.refresh:before {
  content: 'Refresh';
}
a.open:before {
  content: 'Open';
}

@media (min-width: 1100px) {
  a.refresh,
  a.open {
    position: absolute;
    width: 40px;
    height: 35px;
    background: url(/img/btn-refresh.png) 0 0 no-repeat;
    background-size: 40px;
  }
  a.open {
    background: url(/img/btn-open.png) 0 0 no-repeat;
    background-size: 40px;
  }
  a.refresh:before,
  a.open:before {
    content: none;
  }

  .size-160x600 a.refresh { top: 665px; right:   0; }
  .size-300x250 a.refresh { top: 275px; right:   0; }
  .size-300x600 a.refresh { top: 625px; left:  260px; }
  .size-728x90  a.refresh { top: 115px; right: 137px; }

  .size-160x600 a.open { top: 668px; right:  50px; }
  .size-300x250 a.open { top: 278px; right:  50px; }
  .size-300x600 a.open { top: 628px; left:  210px; }
  .size-728x90  a.open { top: 118px; right: 187px; }


}