/** DEFAULT STYLES */

#slide1 {
  height: 42.75vw;
  /* padding-top: 4em; */
  background: url('/static/img/background_1.jpg');
  /* background-position: 0 3em; */
  background-size: 100vw 42.75vw;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
}

#slide3 {
  height: 33.90vw;
  background: url('/static/img/background_2.jpg');
  background-position: 0 0;
  background-size: 100vw 33.90vw;
  background-repeat: no-repeat;
  /*background-attachment: fixed;*/
}

.grid {
  color: #52757a;
  margin: auto;
  max-width: 760px;
  padding: 4em 1em;
}

.grid .cell {
  position: relative;
  /* display: inline-block; */
  /* width: 50%; */
  text-align: center;
  vertical-align: bottom;
  margin: 4px;
  max-height: 113px;
}

.grid .cell, .grid .cell > * {
  box-sizing: border-box;
}

.grid .big-cell {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.grid .cell .icon, .grid .big-cell .icon  {
  font-size: 8em;
  font-weight: 900;
  display: inline-block;
  height: 1em;
  line-height: 1em;
}

.icon.homemenu {
  margin-top: -15px !important;
}

.grid .cell .button, .grid .big-cell .button {
  height: 4em;
  background-color: #e3e3e3;
  padding: 1em;
  border: 1px solid #52757a;
  cursor: pointer;
  /* margin: 0 1em; */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.grid .cell .button:hover, .grid .big-cell .button:hover{
  color: #f19100;
  background-color: #efefef;
}

.description {
  background-color: #e3e3e3;
  border: 1px solid #52757a;
  max-height: 148px;
}

.content {
  padding: 0 20px;
}

.card-page-container {
  width: 100% !important;
  margin-top: 56px;   
}

.double-card-page-container {
  width: 100%;
  margin-top: 56px;
}

#error-dialog {
  width: 80% !important;
}

/* RIBBON STYLES */
@import url(https://fonts.googleapis.com/css?family=Lato:700);
/* body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f0f0f0;
} */
.box {
  position: relative;
  max-width: 600px;
  width: 90%;
  height: 400px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
}

/* common */
.ribbon {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: absolute;
}
.ribbon::before,
.ribbon::after {
  position: absolute;
  z-index: -1;
  content: '';
  display: block;
  border: 5px solid #2980b9;
}
.ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 15px 0;
  background-color: #52757a;
  box-shadow: 5px 5px 10px rgba(0,0,0,.8);
  color: #fff;
  font: 700 18px/1 'Lato', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  text-transform: uppercase;
  text-align: center;
}

/* top left*/
.ribbon-top-left {
  top: -10px;
  left: -10px;
}
.ribbon-top-left::before,
.ribbon-top-left::after {
  border-top-color: transparent;
  border-left-color: transparent;
}
.ribbon-top-left::before {
  top: 0;
  right: 0;
}
.ribbon-top-left::after {
  bottom: 0;
  left: 0;
}
.ribbon-top-left span {
  right: -25px;
  top: 30px;
  transform: rotate(-45deg);
}

/* top right*/
.ribbon-top-right {
  top: -10px;
  right: -10px;
}
.ribbon-top-right::before,
.ribbon-top-right::after {
  border-top-color: transparent;
  border-right-color: transparent;
}
.ribbon-top-right::before {
  top: 0;
  left: 0;
}
.ribbon-top-right::after {
  bottom: 0;
  right: 0;
}
.ribbon-top-right span {
  left: -25px;
  top: 30px;
  transform: rotate(45deg);
}

/* bottom left*/
.ribbon-bottom-left {
  bottom: -10px;
  left: -10px;
}
.ribbon-bottom-left::before,
.ribbon-bottom-left::after {
  border-bottom-color: transparent;
  border-left-color: transparent;
}
.ribbon-bottom-left::before {
  bottom: 0;
  right: 0;
}
.ribbon-bottom-left::after {
  top: 0;
  left: 0;
}
.ribbon-bottom-left span {
  right: -25px;
  bottom: 30px;
  transform: rotate(225deg);
}

/* bottom right*/
.ribbon-bottom-right {
  bottom: -10px;
  right: -10px;
}
.ribbon-bottom-right::before,
.ribbon-bottom-right::after {
  border-bottom-color: transparent;
  border-right-color: transparent;
}
.ribbon-bottom-right::before {
  bottom: 0;
  left: 0;
}
.ribbon-bottom-right::after {
  top: 0;
  right: 0;
}
.ribbon-bottom-right span {
  left: -25px;
  bottom: 30px;
  transform: rotate(-225deg);
}
