@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323:wght@300;400;500;600;700&display=swap');

:root {
    --nerdle-red: 130, 4, 88;
    --nerdle-red-dark: 112, 1, 75;
    --nerdle-green: 56, 138, 117;
    --nerdle-grey: 152, 148, 132;
    --nerdle-black: 26, 26, 26;
    --nerdle-white: 255, 255, 255;
    --nerdle-dark-grey: 51, 51, 51;
    --nerdle-background: 242, 242, 242;
    --nerdle-header-title: var(--nerdle-red);
    --nerdle-light-grey: 229, 229, 229;
}

body {
    background-color: rgb(var(--nerdle-black)) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px;
    color: rgb(var(--nerdle-white));
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: "Quicksand", sans-serif;
}

p, a, button, input {
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
    color: white;
}

.advent-grid {
    display: grid;
    grid-template-columns: repeat(6, auto);
    grid-gap: 10px;
    background-color: rgba(var(--nerdle-black), 0.5);
}

.advent-door {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    height: 80px;
    width: auto;
    background-color: transparent;
    border-radius: 10px;
    position: relative;
    border: 1px solid #9f9c9c;

    cursor: pointer;
}

.advent-door:hover {
    background-color: #ffffff0f;
}

.advent-door-open {
    background-color: rgba(var(--nerdle-green), 0.6);
}

.advent-door-open:hover {
    background-color: rgba(var(--nerdle-green), 0.8);
}

.advent-door-number {
    color: #5f5a5a;
    font-size: 1.2em;
    font-family: "Montserrat", sans-serif;
}

.advent-door-image {
    width: 5px;
    height: auto;
    transform: scale(10);
}

#advent-door-25 {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
    width: auto;
}

#advent-door-25 .advent-door-image {
    transform: scale(35);
}

#advent-door-25 .advent-door-number {
    font-size: 2em;
}

.title {
    margin: 0;
    color: rgb(255, 49, 49);
    text-align: center;
}

.title h1,
.title h2,
.title h3,
.title h4,
.title h5 {
    font-family: "Quicksand", sans-serif;
    font-weight: 200!important;
}

.nerdle-sleigh {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.sleigh-wrapper {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color:rgba(0,0,0,.5);

}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-bottom: 50px;
}

#todays-date {
    color: rgb(255, 49, 49);
    font-family: "Montserrat", sans-serif;
}

.popup {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 200%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.popup-inner {
    background-color: rgb(var(--nerdle-black));
    color: rgb(var(--nerdle-white));
    margin: 5px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid white;
    width: 95%;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    position: absolute;
    top: 0;

}

.custom-btn {
    background-color: rgb(var(--nerdle-red));
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    border: none;
}

.custom-close-btn {
    background-color: rgb(var(--nerdle-grey));
    color: white;
    text-decoration: none;
    padding: 3px 6px;
    margin: 3px;
    border-radius: 5px;
    display: inline-block;
    border: none;
}

.show {
    display: block;
}

.hide {
    display: none;
}

#popup-nerdle-day-num, #popup-nerdle-clue {
    font-weight: normal;
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.slide-in-right {
    animation: slide-in-right 0.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-in-right {
    0% {
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slide-out-left 0.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-out-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-1000px);
        opacity: 0;
    }
}

.fade-in {
    animation: fade-in 0.5s;
    animation-fill-mode: forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-out {
    animation: fade-out 0.5s;
    animation-fill-mode: forwards;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media screen and (min-width: 768px) {
    .content {
        max-width: 600px !important;
    }
}

@media screen and (max-width: 768px) {
    .advent-door {
        height: 80px;
    }

    .popup {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    #advent-door-25 {
        grid-row: 2 / span 2;
        grid-column: 2 / span 2;
        height: auto;
    }

    .advent-grid {
        grid-template-columns: repeat(4, auto);
    }

    .advent-door {
        height: 70px;
    }

    .empty-advent-door {
        display: none;
    }
}

@media screen and (max-width: 355px) {
    .custom-btn {
        margin-bottom: 5px;
    }
}

.share-btn {
    position: absolute;
    right: 0px;
    bottom: 0px;
    font-weight: 200;
    color: white;
    background-color: rgb(255, 49, 49);
    padding: 5px 20px;
    border-radius: 5px;
    border: none;
    font-family: "QuickSand", sans-serif;
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    background-color: rgb(255, 49, 49);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: white;
    padding: 20px;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
}

.slide-in-top {
    animation: slide-in-top 0.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-out-top {
    animation: slide-out-top 0.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-out-top {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px);
        opacity: 0;
    }
}