.non-select {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
}
.icon{
    height:25px;
}
body {
    font-family: "Avenir", "Helvetica", sans-serif;
    background-color: #dfe9ee;
}


#calendar {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    overflow-x: hidden;
}

.dates {
    display: grid;
    grid-template-columns: 14.2857% 14.2857% 14.2857% 14.2857% 14.2857% 14.2857% 14.2857%;
    grid-template-rows: 2em 16.6666% 16.6666% 16.6666% 16.6666% 16.6666% 16.6666%;
    justify-content: space-evenly;
    margin: auto;
    min-height: 36em;
    height: 95%;
    min-width: 36em;
    width: 95%;
    text-align: right;
}

@media (width <=750px) {
    .dates {
        grid-template-columns: 90%;
        grid-auto-rows: 10%;
        min-width: 100vw;
        grid-template-rows: inherit;
    }

    .day {
        display: none;
    }

    .card {
        padding: 2.5em !important;
        max-width: 100vw !important;
    }

    #light-mode {
        position: fixed !important;
        font-size: 1.25em;
    }
}

.day,
.date,
.month {
    padding: 0.5em;
}

.date {
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: large;
}

.active,
.toggle {
    color: #960000;
    font-weight: bold;
}

.date:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

#light-mode {
    float: right;
    position: relative;
    z-index: 1;
    padding-right: 1em;
}

.toggle.active {
    display: none;
}

.month .year {
    font-weight: normal;
}

body:has(#dark.active) .active,
body:has(#dark.active) .toggle {
    color: #FCB600;
}

body:has(#dark.active) {
    color: white;
    background-color: #072955;
}

body:has(#dark.active) .date {
    border-color: rgba(255, 255, 255, 0.1);
}

body:has(#dark.active) .not-this-month {
    color: rgba(255, 255, 255, 0.25);
}

body:has(#dark.active) .date:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.not-this-month {
    color: rgba(0, 0, 0, 0.25);
}


.black-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    align-content: center;
    background-color: rgba(0,0,0,0.2);
    z-index: 1;
}

.card {
    margin: auto;
    padding: 5em;
    background-color: #960000;
    border-radius: 2em;
    -moz-border-radius: 2em;
    -webkit-border-radius: 2em;
    border: 1em solid white;
    color: white;
    max-height: 75vh;
    overflow: auto;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 3;
    max-width: 75vw;
}

.card:has(.failure){
    background-color: rgba(0,0,0,0.1);
    border:none;
}


.card a {
    margin: auto;
    margin-top: auto;
    padding: 1em;
    display: block;
    background: rgb(0, 150, 50);
    color: wheat;
    border-radius: 1em;
    border: 1em;
    margin-top: 1em;
    text-align: center;
}

.x {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: transparent;
    border: none;
    font-size: 2.5em;
}

body:has(.dragged.party) .card{
background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExdm01a2JjZzF5MWFxcWQ5aDZ6ZnE5MzQwZmk5NDgwN2hpcjg2ZGI4byZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3FoCLhuJfNJ8zIukIn/giphy.webp");;
color:rgba(0,0,0,0);
/* background-color:rgba(0,0,0,0); */
border:none;
}
body:has(.dragged.party) .card a{
    display:none;
}
body:has(.dragged.party) .card,
body:has(.dragged.party) .black-window{
    overflow-y:hidden;
}
body:has(.dragged.party) .black-window{
    background-image: url("https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExd2JqYnI5bWl6MDd3YWM1ZnEyb2FwZzY4bzFtM3RrZDlhdmNzNGo3biZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/l378wcSfS7eXWQgla/giphy.webp");
}
body:has(.animal-crossing-background) .black-window{
    background-image: url("./animal_crossing_background.webp");
    background-size:100vh;
}
body:has(.dragged){
    cursor:none;
    touch-action: none;
}

