@font-face {
    font-family: 'Quicksand';
    src: url('Quicksand-Regular.ttf') format('truetype');
}


html, body {
    font-family: 'Quicksand', sans-serif;

    background: rgba(255,255,255,1);
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(237,237,237,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=0 );

    background-size: cover;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;

    text-align: center;

    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Full height of the viewport */

    overflow: hidden; /* Prevents overflow from the wrapper itself */
}

.container {
}

.header {
    max-width: 600px;
    padding: 25px 25px 0 25px;
}

.grid-container {
    z-index: 2;
    flex-grow: 1;
    width: 100%;
    overflow-y: auto;
}

#day0, #day25 {
    display: block;
    margin-left: calc(50% - 148px);
}
#day0 i, #day25 i {
    font-size: 4em;
    bottom: 0;
    right: 0;
    color: #c7b59d;
}

.grid-item {
    width: 256px; /* Fixed width */
    height: 256px; /* Fixed height */
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    display: inline-block;
    margin: 10px;

    position: relative;
    overflow: hidden;

    transition: all .3s;

    user-select: none;

    background-size: cover;
    background-position: center center;
}

a, a:visited, a:hover, a:active {
    color: #c98c18;
    font-weight: bold;
    text-decoration: none;
}

.grid-item:hover {
    border-color: #c98c18;
    border-radius: 5%;
    outline: 2px solid #f0d55e;
}

.grid-item i {
    font-size: 20em;
    font-family: monospace;
    position: absolute;
    right: -34px;
    bottom: -66px;
    font-weight: bold;
    color: #ffffffcc;
    z-index: 15;
}

.list i {
    font-size: 4em;
    font-family: monospace;
    color: #c7b59d;
    display: block;
    margin: 20px;
}

.list ul {list-style: none; margin: 0;}
.list ul li {
    margin: 0px;
    cursor: pointer;
}
.list ul.images img {
    object-fit: cover;
    transition: transform 1s;
}

.list ul.images li:hover img {
    transform: scale(1.1);
}

#ListContainer {
    max-width: 900px;
    overflow-y: auto;
    padding-bottom: 10vh;
}

#ListContainer #day0, #ListContainer #day25 {
    margin-left: 0;
}

.images {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates a 4-column layout */
    grid-auto-rows: minmax(100px, auto); /* Sets the minimum height for rows */
    gap: 10px; /* Adds a gap between grid items */
    padding: 25px;
}

.images li {
    flex: 1; /* Each li item takes equal space */
    overflow: hidden; /* Ensures images don't overflow their container */
    list-style-type: none; /* Removes bullet points from li elements */
}

.images li:first-child {
    grid-column: span 2; /* The first item will take two columns */
    grid-row: span 2; /* The first item will take two rows */
    height: 250px; /* Or any other value for double height */
    max-width: 370px;
}

.images li:not(:first-child) {
    list-style-type: none;
    height: 120px; /* Height for all other items */
    max-width: 180px;
}

.images img {
    width: 100%; /* Ensures image takes full width of its container */
    height: 100%; /* Ensures image takes full height of its container */
    object-fit: cover; /* Ensures images are cropped, not stretched */
}

@media screen and (max-width: 600px) {
    .images {
        grid-template-columns: repeat(4, 1fr); /* Keep 4-column layout for small screens */
    }

    .images li:first-child {
        grid-column: 1 / -1; /* Large image takes up all columns */
        grid-row: 1; /* Large image is in the first row */
        height: 200px; /* Adjust height for smaller screens */
    }

    .images li:not(:first-child) {
        grid-column: span 1; /* All other images take up 1 column */
    }
}

.grid-item .add {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.7);
    background-image: url(add.svg);
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 75%;
    z-index: 16;

    transition: opacity .3s;
    cursor: pointer;
}
.grid-item:hover .add {
    opacity: 1;
}

.snowflakes_body {
    z-index: 1 !important;
}

.dz-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}
.dz-image img {
    width: 100%; /* Stretch to cover the grid item */
    height: 100%;
    object-fit: cover; /* This ensures the image covers the area without distortion */
}
