html {
    overflow-y: scroll;
}

body {
    background-color: #1e1c2e;
    margin: 0;
}

#main-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

#art {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 600px;
    container-type: inline-size;
}

#art-splashlogo {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 5%;
}

#art-footersplash {
    position: relative;
    z-index: 5;
    text-align: left;
    width: 12%;
    padding-left: 3%;
    padding-top: 2%;
    float: left;
}

#ballCanvas {
    border: 2px solid white;
}

#text {
    position: relative;
    font-size: 22px;
    font-family: 'Segoe UI';
    line-height: 1.5;
    color: #ffffff;
    filter: drop-shadow(0px 3px 3px #000000);
    text-align: center;
    margin-top: 2%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.leftbox {
    display: inline-block;
    text-align: left;
}

#form {
    position: relative;
    font-size: 18px;
    font-family: 'Segoe UI';
    line-height: 1.5;
    color: #ffffff;
    filter: drop-shadow(0px 3px 3px #000000);
    text-align: center;
    margin-top: 2%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#submitForm {
    font-size: 28px;
}

.tinytext {
    font-size: 14px;
    font-style: italic;
    opacity: 70%;
}

.formStyle {
    height: 25px;
    font-size: 14px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 3px;
}

.buttonStyle {
    font-size: 14px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 3px;
    cursor: pointer;
}

.chartStyle {
    min-width: 400px;
    height: 400px;
    margin: 8px;
}

#outputEquation {
    font-size: 26px;
    line-height: 1;
    font-weight: 600;
    text-decoration: dotted underline #37d37d;
}

.columnStyle {
    column-count: 2;
    column-gap: 20px;
}

#usrMsg {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    /* include padding/border in width calculation */
    resize: vertical;
    /* allow vertical resizing only */
    overflow-wrap: break-word;
    /* break long words to avoid overflow */
    height: 50px;
    padding: 8px;
    font-size: 16px;
}

#outputError {
    color: rgb(197, 106, 106);
    font-weight: bold;
}

#addrState {
    height: 25px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 3px;
}

#birthMonth {
    height: 25px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 3px;
}

#birthDay {
    height: 25px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 3px;
}

#footer-block {
    width: 100%;
    padding: 4px;
    font-size: 20px;
    background-color: #0c0b11;
    filter: drop-shadow(0px 3px 3px #000000);
    font-family: 'Segoe UI';
    line-height: 1.2;
    color: #ffffff;
    text-align: right;
    margin-top: 30%;
    font-family: Helvetica, sans-serif;
    position: sticky;
    bottom: 0%;
}

#footer-block-art {
    width: 100%;
    font-size: 20px;
    background-color: #0c0b11;
    filter: drop-shadow(0px 3px 3px #000000);
    font-family: 'Segoe UI';
    line-height: 1.2;
    color: #ffffff;
    text-align: right;
    margin-top: 2%;
    font-family: Helvetica, sans-serif;
    position: sticky;
    bottom: 0%;
}

#footer-text {
    padding-right: 4%;
    padding-top: 2%;
    padding-bottom: 2%;
    font-size: 14px;
    display: inline-block;
}

#mail-link {
    color: #747474;
    font-size: 12px;
    text-decoration: none;
}

h3 {
    font-size: 30px;
    line-height: 1;
    text-decoration: wavy underline #5FA4F4;
}

h4 {
    font-size: 26px;
    text-decoration: double underline #37d37d;
}

.subtext {
    font-size: 18px;
    font-style: italic;
    opacity: 70%;
}

.highlight {
    text-decoration: dotted underline #5FA4F4;
    text-decoration-thickness: 3px;
}

#cardContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.card {
    background: rgb(51, 48, 68);
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    padding: 12px;
    width: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    transition: transform 0.3s ease;
}

.dragcard-container {
    width: 100px;
    height: 145px;
    perspective: 600px;
}

.dragcard {
    width: 80%;
    height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    background: rgb(51, 48, 68);
    padding: 6px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateY(-50px);
}

.dragcard.dealt {
    opacity: 1;
    transform: translateY(0);
}

.dragcard.flipped {
    transform: rotateY(180deg);
}

.dragcard-front,
.dragcard-back {
    position: absolute;
    width: 87%;
    height: 90%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.dragcard-back {
    background: url('cards/cardback.svg') center/cover no-repeat;
}

.dragcard-front {
    transform: rotateY(180deg);
}

.dragcard:active {
    cursor: grabbing !important;
}

.dragcard.no-transition {
    transition: none !important;
}

.dragcard.dragging {
    opacity: 0.5;
    cursor: grabbing !important;
    transform: rotate(5deg) scale(1.1);
}

#discardField {
    width: 80px;
    height: 120px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #d3b8b8;
    margin-inline: auto;
    transition: background 0.2s ease;
}

#cards {
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

#discardField.over {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgb(139, 34, 34);
}

.close:hover {
    color: black;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.cardmodal {
    justify-content: center;
    width: 50%;
    height: 50%;
    object-fit: cover;
    align-content: center;
    display: cover;
    border-radius: 12px;
}

.card h2 {
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.card p {
    margin: 3px 0;
    font-size: 12px;
}

.modal {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(16, 15, 27, 0);
    transform: translate(-50%, -50%);

    display: flex;
    flex-wrap: wrap;
    z-index: 0;
}

#cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.modal-content {
    background-color: #404153de;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.719);
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #dee2e9;
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
}

.button-wrapper {
    float: right;
    width: 100%;
    filter: drop-shadow(0px 3px 3px #000000);
    transition: margin-left 0.1s ease 0.1s;
    transition-delay: 0s;
    transform-origin: 0px 90px;
    transform: scale(1);
}

.button-wrapper:hover {
    margin-left: 20px;
    transform-origin: 0px 90px;
    transform: scale(1.02);
}

#button-art {
    position: absolute;
    right: 8%;
    width: 50%;
    text-align: right;
}

#button-art-icon {
    position: absolute;
    right: 46%;
    margin-top: 1.4%;
    width: 14%;
    z-index: 5;
    pointer-events: none;
}

#art-collage {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
    display: block;
}

#flex-art-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 80px;
}

#art-shark {
    flex: 1;
    width: 60%;
    height: 60%
}

#art-column {
    display: flex;
    flex-direction: column;
    width: 33.4%;
}

#art-nickit {
    position: relative;
    text-align: center;

}

#art-wooper {
    position: relative;
    text-align: center;

}

#art-maushold {
    position: relative;
    text-align: center;

}

#art-constructionbar {
    margin-top: 5%;
}

.h4 {
    line-height: 0.2;
}

.text-caption {
    font-size: 12px;
    font-style: normal;
    opacity: 80%;
}

#back-to-top {
    position: relative;
    font-size: 22px;
    font-family: 'Segoe UI';
    color: #ffffff;
    filter: drop-shadow(0px 3px 3px #000000);
    text-align: center;
    margin-top: 20%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-decoration: wavy underline #5FA4F4;
}

/* navbar stuff */

.navbar {
    font-family: 'Segoe UI';
    display: flex;
    text-shadow: -1px 1px 5px #000000;
    padding: 0px;
    margin-top: 2%;

}

.navbar-right {
    margin-left: auto;
    display: flex;
}

#navbar-left {
    justify-content: flex-start;
}

.navbar a,
.navbar .dropbtn {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
}

.navbar a:hover,
.navbar .dropdown:hover .dropbtn {
    background-color: #3b3d5841;
}
.navbar a:visited {
    color: #ffffff;
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3b3d5841;
    backdrop-filter: blur(4px);
    text-shadow: -1px 1px 5px #000000;
    min-width: 100%;
    z-index: 1;
    top: 100%;
    left: 0;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    text-decoration: solid underline #5FA4F4;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#computer-guy {
    transition: transform 0.3s ease;
}

#computer-guy:hover {
    transform: scale(1.1);
}

.modal h2 {
    margin-top: 0;
}

.rightjustify {
    font-size: 25px;
    display: block;
    text-align: right;
}

.modal-overlay {
    justify-content: center;
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    top: 10%;
    left: 10%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
}

.shopModal {
    display: block;
    padding-top: 0.5em;
    padding: 40px;
    border-radius: 12px;
    width: 100%; height: 100%;
    top: 0;
    text-align: center;
}

.shopModal button {
    background: #007bff;
    border: none;
    font-size: 18px;
    color: white;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    align-content: center;
}

.shopModal button:hover {
    background: #0056b3;
}

#checkoutBtn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    margin-left: 1em;
    cursor: pointer;
}

#checkoutBtn:hover {
    background: #1e7e34;
}

.catalog {
    color: black;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    margin-top: 1em;
}

.item {
    background: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 18px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);

    /* Transition for transform & opacity */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100px;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.4));
}

.item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    /* prevent clicks when hidden */
}

/* Optional: add hover effect */
.item:hover {
    transform: scale(1.03);
}

.add-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #1e7e34;
}

.catalog button {
    background-color: #477cf0;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #a71d2a;
}

#cms-table-container {
    max-width: 100%;
    overflow-x: auto;
}

#myTable {
    width: 100%;
    font-size: 12px;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#myTable th, #myTable td {
    padding: 8px;
    border: 1px solid #ccc;
    word-wrap: break-word;
    white-space: normal;
}

a:visited {
    color: #c19cda;
    text-decoration: none;
}
