/* CSS Document */
body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Ensures no scrollbars */
    background: #000; /* Dark wintery background */
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
    font-family: Arial, sans-serif;
    background: rgb(0, 0, 0);
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(59, 72, 251, 1) 89%, rgba(139, 59, 251, 1) 100%);
}
.snowflake {
    position: absolute;
    top: -50px;
    color: white;
    font-size: 10px;
    opacity: 0.8;
    animation: fadeOut 3s linear infinite;
}
@keyframes fadeOut {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}
h1, h2 {
    background-image: url("../img/h1-christmas-bingo.png");
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 50px;
    text-indent: -999em;
    margin: auto;
}
h1 {
    margin: 100px auto;
    clear: both;
    position: absolute;
}
.colhalf {
    height: calc(100% - 50px);
    top: 50px;
    width: 50%;
    position: fixed;
    z-index: 1;
    overflow: hidden;
}
/* Control the left side */
.left {
    left: 0;
}
/* Control the right side */
.right {
    right: 0;
    padding-top: 100px;
    border-left: dotted 3px #D0A44C;
}
#button-wrap {
    z-index: 500;
    position: fixed;
    bottom: 125px;
    text-align: center;
    width: 100%;
}
/* Shiny golden bauble button */
button.golden-bauble {
    background: linear-gradient(145deg, #ffd700, #ffac33);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 200%;
    font-weight: bold;
    padding: 20px;
    width: 100px;
    height: 100px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button.golden-bauble::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
button.golden-bauble:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.6);
}
button.golden-bauble:active {
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}
#random-image-display, #second-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.image-box {
    padding: 0 0 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.image-box img {
    max-width: 100%;
    max-height: 100%;
}
.left .image-box {
    margin: auto;
    width: 500px;
    height: 500px;
}
.right .image-box {
    width: 75px;
    height: 75px;
}
/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    color: #000;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 10px solid #b9ced7;
    border-radius: 25px;
    width: 70%;
    min-height: 150px;
}
.modal-content img {
    float: left;
    margin-right: 20px;
    max-width: 80px;
}
#modalclose {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
#modalclose:hover, #modalclose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Landscape Phone */
@media only screen and (min-width: 415px) and (max-width: 959px) {
    h1 {
        display: none;
    }
    .left .image-box {
        max-width: 100%;
        max-height: 100%;
    }
    .right .image-box {
        max-width: 10%;
        padding: 0;
        margin: 0;
    }
    #button-wrap {
        bottom: 0px;
    }
}
/* Portrait Phone */
@media only screen and (max-width: 414px) {
    .modal-content h2 {
        width: 100%;
        background-size: contain;
    }
    .modal-content p {
        font-size: 85%;
    }
    .modal-content img {
        width: 30%;
    }
    .colhalf.left {
        width: 100%;
    }
    .image-box {
        max-width: 100%;
    }
    .colhalf.right {
        display: none;
    }
}