@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: 251, 233, 204;
    --nerdle-header-title: var(--nerdle-red);
    --nerdle-light-grey: 229, 229, 229;
    --nerdle-title-red: 255, 49, 49;
}

body {
    background-color: rgb(var(--nerdle-background)) !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: "Barlow", sans-serif;
    
}

h6 {
    font-family: "Montserrat", sans-serif;
    
}

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

a {
    color: inherit!important;
}

.nerdle-win-image {
    width: 250px;
    margin-left: 30px;
    margin-right: 0px;
}

.nerdle-win-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

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

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

    height: 100px;
    width: 100px;
    background-color: rgb(var(--nerdle-white));
    border-radius: 50%;
    position: relative;
    border: 1px solid rgb(var(--nerdle-green));

    cursor: pointer;
}

.advent-door-number {
    color: rgb(var(--nerdle-title-red));
    font-size: 1.8em;
    font-family: "Barlow", sans-serif;
}

.advent-door-image {
    width: 100%;
    height: 100%;
    transform: scale(1);
}

.title {
    margin: 0;
    color: rgb(var(--nerdle-title-red));
    text-align: center;
}

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

.title h1 {
    font-size: 4rem;
}

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

.sleigh-wrapper {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

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

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

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

.popup-inner {
    background-color: rgb(var(--nerdle-white));
    color: rgb(var(--nerdle-black));
    border: 1px solid rgb(var(--nerdle-green));
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.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: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    border: none;
}

.show {
    display: block;
}

.hide {
    display: none;
}

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

.popup-title {
    font-weight: 300;
    font-family: "Barlow", sans-serif;
    font-size: 2em;
    color: #F85232
}

.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: 425px) {
    .content {
        max-width: 400px !important;
    }
}

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

    .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(3, auto);
    }

    .advent-door {
        height: 100%;
    }

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

@media screen and (max-width: 500px) {
    /* .win-puzzle-book-card-inner {
        flex-direction: column!important;
    } */

    .nerdle-puzzle-book-cover {
        margin-right: 0px;
        margin-bottom: 0px;
    }

    .popup-inner {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0px;
    }

    .custom-close-btn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        left: 10px;
        font-size: 1.2em;
    }
}

@media screen and (max-width: 355px) {
    .custom-btn {
        margin-bottom: 5px;
    }
    .title h1 {
        font-size: 3em;
    }
}

.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;
    }
}

.win-puzzle-book-card {
    background-color: rgb(var(--nerdle-light-grey));
    color: black!important;
    padding: 10px 20px;
    border-radius: 8px;
}

.win-puzzle-book-card p,
.win-puzzle-book-card h1,
.win-puzzle-book-card h2,
.win-puzzle-book-card h3,
.win-puzzle-book-card h4,
.win-puzzle-book-card h5 {
    color: black!important;
}

.win-puzzle-book-card-inner {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}