@font-face {
    font-family: 'Circe';
    src: url('../fonts/Circe-Regular.woff2') format('woff2'),
        url('../fonts/Circe-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
html, body {
    height: 100%;
}
*, *:before, *:after {
    box-sizing: border-box;
}
h1, h2, h3 {
    font-weight: normal;
}
a {
    text-decoration: none;
}
video:focus {
    outline: none;
}
:root {
    --rco-red:#ec2a3a;
    --light-shade-01: #f3efec;
    --light-shade-02: #dedad6;
    --grey-shade-01: #635d5d;
    --grey-shade-02: #454040;
    --brown-shade-01: #6d6161;
}
.advent-calendar {
    background-color: rgba(80, 25, 0, 0.1);
    background-image: url('../img/img-noise-512x512.png');
    background-repeat: repeat;
    font-family: 'Circe';
    color: #454040;
    overflow: initial;
}
.advent-calendar.zoomed {
    overflow: hidden;
}
.advent-calendar-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url('../img/horizon.png');
    background-repeat:repeat-x;
    background-position: bottom;
    /* background-size: 70%; */
}
.advent-calendar-content {
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 40px 6%;
    background-color: #6d6161;
    background-image: url('../img/img-noise-512x512.png');
    background-repeat: repeat;
    display: none;
    box-shadow: 0 0 300px rgba(0,0,0,0.15) inset;
    overflow-y: auto;
}
.zoomed .advent-calendar-content {
    display: block;
}
.cal-content-nav {
    position: relative;
}
.cal-content-close {
    position: absolute;
    opacity: 0.3;
    width: 40px;
    height: 40px;
    right: 0;
    cursor: pointer;
}
.cal-content-close:hover {
    opacity: 1;
  }
.cal-content-close:before, 
.cal-content-close:after {
    position: absolute;
    left: 19px;
    content: ' ';
    height: 40px;
    width: 2px;
    background-color:#f3efec;
}
.cal-content-close:before {
    transform: rotate(45deg);
}
.cal-content-close:after {
    transform: rotate(-45deg);
}

.cal-content-nav-item {
    font-size: 1.6em;
    letter-spacing: -3px;
    margin-right: 8px;
    color: #454040;
    opacity: 0.4;
    display: none;
}
.cal-content-nav-item.active.selected, 
.cal-content-nav-item.active:hover  {
    opacity: 1;
}
.cal-content-nav-item.active {
    color: #dedad6;
    cursor: pointer;
}
.content-title {
    position: relative;
    text-transform: none;
    margin: 0 60px 50px 0;
    font-size: 1.4em;
    max-width: 1000px;
    padding-left: 100px;
    pointer-events: none;
}
.content-title a {
    color: #ec2a3a;
    pointer-events: all;
}
.cal-content-item {
    color: #dedad6;
    display: none;
}
.content-title span {
    position: absolute;
    left: 0;
    font-size: 2em;
    width: 70px;
    height: 1em;
    opacity: 0.3;
    border-right: 2px solid white;
}
.cal-content-item p {
    font-size: 1.25em;
    margin-bottom: 40px;
}
.cal-content-item.active {
    display: block;
}
.content-wrapper.fitheight {
    height: calc(100vh - 200px);
}
.content-wrapper video {
    /* position: absolute; */
    object-fit: contain;
    object-position: top center;
    width: 100%;
    height: 93%;
    background-color: black;
}
.content-wrapper img,
.content-wrapper video {
    width: 100%;
    border: 0.75vw solid white;
    box-shadow: 0 10px 32px rgba(69, 64, 64, .6);
}
.advent-calendar-container {
    position: relative;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}
.advent-calendar-container header {
    max-width: 1988px;
    padding: 10%;
    margin: 0 auto;
}
.advent-calendar-container header h2 {
    margin-top: 7%;
    font-size: 1.9vw;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.rc-logo {
    width: 40%;
    min-width: 180px;
}
.zoomed .advent-calendar-container {
    pointer-events: none;
    perspective: none;
    overflow:hidden;
}
.zoomed .advent-calendar-container header {
    visibility: hidden;
}
.house-wrapper {
    width: 100%;
    padding: 0 10% 0;
    max-width: 1988px;
    margin: 0 auto;
}
.house-container {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 1590px;
}
.house-container.hidden {
    visibility: hidden;
}
.house-img {
    width: 100%;
    display: block;
    position: relative;
    pointer-events: none;
}
.window {
    display: block;
    position: absolute;
    width: 7.5%;
    background-image: url('../img/window-r-1.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.window.active {
    background: none;
    background-color: #6d6161;
    cursor: pointer;
}
.window.active.hidden {
    background-color: transparent;
}
.window.active:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-position 0.4s ease-in;
}
.window.active:hover:before,
.window.active:visited:before,
.window.active.visited:before {
    background-position: 0 0;
    transition: background-position 0.8s ease-out;
    transition-timing-function: cubic-bezier(0.190,  1.000, 0.220, 1.000);
}
.window.active.opened:before,
.window.active.opened:hover:before {
    background-position: 0 -100%;
    transition: background-position 0.3s ease-out;
}
.window.r-5.active.opened:before,
.window.r-5.active.opened:hover:before {
    background-position: 0 -150%;
}
.window.active.cointreau:before {
    background-image: url('../img/cointreau.svg');
}
.window.active.metaxa:before {
    background-image: url('../img/metaxa.svg');
}
.window.active.louis:before {
    background-image: url('../img/louisXIII.svg');
}
.window.active.passoa:before {
    background-image: url('../img/Passoa.svg');
}
.window.active.remy:before {
    background-image: url('../img/remymartin.svg');
}
.window.active.botanist:before {
    background-image: url('../img/thebotanist.svg');
}
.window.active.mountgay:before {
    background-image: url('../img/mountgay.svg');
}
.window.active.stremy:before {
    background-image: url('../img/remy.svg');
}
.window.active.rc:before {
    background-image: url('../img/rc.svg');
}
.window.active.rcg:before {
    background-image: url('../img/rcg.svg');
}
.window.active.westland:before {
    background-image: url('../img/westland.svg');
}
.window.active.bruichladdich:before {
    background-image: url('../img/bruichladdich.svg');
}
.window.active.hautesglaces:before {
    background-image: url('../img/hauteglaces.svg');
}
.window.active.fondation:before {
    background-image: url('../img/fondation-rc.svg');
}
.window-num {
    position: relative;
    background-image: url('../img/rco-shape.svg');
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 20%;
    padding: 12% 7% 7%;
    font-size: 2.6vw;
    letter-spacing: -1px;
    color: #635d5d;
    pointer-events: none;
}
.window.active .window-num {
    height: 100%;
    margin-top: 0;
    padding: 20%;
    background-image: url('../img/rco-shape-red.svg');
    background-size: 220%;
    font-size: 3.6vw;
    color: #f3efec;
    transition: background-size 0.4s ease-out, margin-top 0.2s ease 0.1s, padding-top 0.6s;
}
.window.active:hover .window-num,
.window.active.visited .window-num {
    margin-top: 80%;
    padding-top: 125%;
    background-size: 125%;
    background-position-y: center;
    transition: background-size 0.35s ease-out, margin-top 0.2s ease, padding-top 0.6s, background-position 0.35s;;
}
.window.active.visited .window-num {
    font-size: 1.8vw;
}
.window.active.visited:hover .window-num{
    padding-top: 10%;
    background-position-y: 90%;
    transition: background-size 0.35s ease-out, margin-top 0.2s ease, padding-top 0.6s, background-position 0.35s;;
}
.window.active.opened .window-num,
.window.active.opened:hover .window-num {
    margin-top: 80%;
    padding-top: 125%;
    background-size: 125%;
    background-position-y: 200%;
}
.wrapper {
    margin: 0 auto;
    max-width: 1600px;
}
.r-1 {
    top: 25.5%;
    height: 10.25%;
}
.r-2 {
    top: 40%;
    height: 11.2%;
}
.r-3 {
    top: 55.7%;
    height: 11.1%;
}
.r-4 {
    top: 71.25%;
    height: 11%;
    background-image: url('../img/window-r-4.jpg');
}
.r-4.c-4 {
    top: 71.3%;
    height: 11.1%;
}
.r-4.c-5 {
    top: 71.4%;
    height: 11.2%;
}
.r-5 {
    top: 85.3%;
    height: 8.6%;
    background-image: url('../img/window-r-5.jpg');
}
.r-5.c-4 {
    top: 85.6%;
}
.r-5.c-5 {
    top: 85.72%;
    width: 7.4%;
}
.c-1 {
    left: 8.8%;
}
.c-2 {
    left: 25.6%;
}
.c-3 {
    left: 46.1%;
}
.c-4 {
    left: 66.5%;
}
.c-5 {
    left: 83.36%;
}

@media screen and (min-width: 1980px) {
    .advent-calendar-container header h2 {
        font-size: 2.2em;
    }
    .window-num {
        font-size: 54px;
    }
    .window.active .window-num {
        font-size: 70px;
    }
    .window.active.visited .window-num {
        font-size: 40px;
    }
    .house-wrapper {
        padding: 0 200px;
    }
}
@media screen and (max-width: 1024px) {
    .advent-calendar-container header h2  {
        font-size: 1.1em;
    }
}
@media screen and (max-width: 640px) {
    .content-title {
        font-size: 1.1em;
        letter-spacing: normal;
        padding-left: 0;
        margin-bottom: 25px;
        margin-right: 0;
    }
    .content-title span {
        display: block;
        margin-bottom: 20px;
        border-right: none;
        position: static;
    }
    .content-wrapper.fitheight {
        height: auto;
    }
    .advent-calendar-container header h2  {
        font-size: 0.8em!important;
    }
    .advent-calendar-bg {
        background-size: 100%;
    }
    .window-num {
        font-size: 3vw;
    }
    .advent-calendar-container header {
        height: 50vh;
        padding: 20%;
    }
    .cal-content-close {
        width: 30px;
        height: 30px;
    }
    .cal-content-close:before, .cal-content-close:after {
        left: 15px;
        height: 30px;
    }
}
