@font-face {
    font-family: 'Gordita';
    src: url('Gordita-Regular.ttf') format('truetype');
    src: url('Gordita-Bold.ttf') format('truetype');
    font-style: normal;
}

#main {
    height: 88px;
    width: 728px;
    background-color: rgb(31,83,198);
    color: white;
    position: relative;
    font-style: normal;
    border: 1px black solid ;
    font-family:'Gordita';

    text-size-adjust: none !important; 
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    max-height:1000000px;
}

#main-content {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    user-select: none;
}

#main-logo{
    text-align: center;
    position: absolute;
    left: 10px;
    top: 30px;
    height: 35px;
    width: 118px;
    background-repeat: no-repeat;
}

#selected-pet {
    position: absolute;
    top: 14px;
    left: 140px;
    width: 50px;
    height: 50px;
    background-size: cover;
    border-radius: 50%;
    border: 5px solid rgb(47,138,253);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 1s ease-in-out;
}

#selected-pet.shown {
    visibility: visible;
    opacity: 1;
}

.carousel-title {
    position: absolute;
    text-align: center;
    z-index: 1;
}

.card-wrapper {
    position: absolute;
    left: 0px;
    opacity: 1;
    transition: all 1s;
    overflow: initial;
}

.title {
    font-size: 30px;
    text-align: center;
    border-radius: 50%;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.node {
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    float: left;
}

.overlay {
    background: rgba(255,255,255, .8);
    position: absolute;
    border-radius: 50%;
    display: none;
}

.invalid-data-node {
    background-color: rgba(255,255,255);
}

.invalid-data-node .title, 
.node.invalid-data-node:hover .title {
    color: red;
}

.node:hover > .overlay, 
.node.hovered > .overlay {
    display: block;
}

.node:hover > .title, 
.node.hovered > .title {
    color: rgb(33,83,192);
}

/************* Opening Card *************/

.opening-card {
    width: 728px;
    height: 88px;
    left: 0px;
    transition: left .5s;
}

.opening-card.card-wrapper {
    overflow: hidden;
}

.opening-card .carousel-title {
    font-size: 20px;
    line-height: 20px;
    width: 230px;
    height: 60px;
    top: 15px;
    left: 162px;
    transition: top .4s, left 0s;
}

.opening-card.fade-out .carousel-title {
    top: 90px;
}

.opening-card .title {
    color: transparent !important;
}

.opening-card .node {
    pointer-events: none;
    transition: all .5s ease-out;
}

.opening-card .node-2 {
    height: 140px;
    width: 140px;
    top: -18px;
}

.opening-card.fade-out .node-2 { 
    height: 88px;
    width: 88px;
    top: 0px;
}

.opening-card.fade-out .node-2.index-0 {
    left: 470px;
}

.opening-card.fade-out .node-2.index-1 {
    left: 595px;
}

.opening-card .node-2 > .title {
    height: 285px;
    width: 285px;
}

.opening-card .node-2.index-0 {
    left: 410px;
}

.opening-card .node-2.index-1 {
    left: 570px;
}

/******** Pre carousel ***************/

.pre-carousel {
    top: 0px;
    opacity: 1;
    transition: top .4s, left 0s, opacity 0.15s;
}

.pre-carousel.fade-out {
    top: 90px;
    opacity: 0;
}

.pre-carousel .carousel-title {
    top: 15px;
    font-size: 40px;
    width: 180px;
    height: 65px;
    left: 190px;
}

.pre-carousel .node-2 {
    width: 88px;
    height: 88px;
    top: 0px;
}

.pre-carousel .node-2 > .overlay {
    width: 88px;
    height: 88px;
}

.pre-carousel .node-2 > .title {
    height: 80px;
    width: 70px;
    left: 10px;
    top: 2px;
}

.pre-carousel .node-2.index-0 {
    left: 470px;
}

.pre-carousel .node-2.index-1 {
    left: 595px;
}

/******************** Active Carousel **************/

.active-card {
    top: 0px;
    opacity: 1;
    transition: top .3s, left 0s, opacity 0.1s;
}

.active-card.fade-out {
    top: 90px;
    opacity: 0;
}

.active-card .carousel-title {
    top: 15px;
    font-size: 28px;
    width: 145px;
    height: 60px;
    left: 210px;
}

.active-card .node-3, 
.active-card .node-4,
.active-card .node-3 > .overlay, 
.active-card .node-4 > .overlay {
    width: 72px;
    height: 72px;
}

.active-card .node-3 > .title, 
.active-card .node-4 > .title {
    width: 68px;
    height: 42px;
    top: 15px;
    left: 2px;
}


.active-card .node-3,
.active-card .node-4 {
    top: 9px;
}

.active-card .node-3.index-0,
.active-card .node-4.index-0 {
    left: 365px;
}

.active-card .node-3.index-1,
.active-card .node-4.index-1 {
    left: 455px;
}

.active-card .node-3.index-2,
.active-card .node-4.index-2 {
    left: 544px;
}

.active-card .node-4.index-3 {
    left: 633px;
}

.node.blink-out {
    animation: 0.7s ease-in-out blink-out;
}

.node.blink-in {
    animation: 0.5s ease-in-out blink-in;
}

@keyframes blink-out {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink-in {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

