/* Resetting margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wholepage-wrapper ul {
    background-color: transparent !important;
}

/* Body styling */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('../images/homepagebackground.png') center/cover no-repeat;
    background-color: #412939;
}

/* Wrapper styling */
.wholepage-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-top: 20%; 
}

/* Page header styling */
.page-header {
    background-image: url("../images/headerbackground.png");
    background-repeat: no-repeat; 
    background-color: white; 
    background-size: cover;
    opacity: 0.7;
    border-radius: 10px; 
    text-align: center;
    z-index: 1000;
    padding: 20px;
    margin-bottom: 20px; 
}

/* Page title styling */
.page-title {
    font-family: "Aboreto", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}
.page-header h2 {
    font-family: "Sacramento", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 2em;
}
/* Page header paragraph styling */
.page-header p {
    font-family: "Gotu", sans-serif;
    font-size: 1.2em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Orange tree styling */
.orangetree {
    animation: treesway 8s infinite;
    transform-origin: 50% 100% 0;
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 80%;
    z-index: -1;
}


@keyframes treesway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}


.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: 800px;
    width: 800px;
}

.card {
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    height: calc(25% - 10px);
    width: calc(25% - 10px);
}

.card.shake {
    animation: shake 0.35s ease-in-out;
}

/* Keyframes for shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-13px); }
    40% { transform: translateX(13px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.card .view {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 7px;
    background: #fff;
    pointer-events: none;
    backface-visibility: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.25s linear;
    overflow: hidden;
}

.card .front-view img, .card .back-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card .back-view {
    transform: rotateY(-180deg);
}

.card.flip .back-view {
    transform: rotateY(0);
}

.card.flip .front-view {
    transform: rotateY(180deg);
}
/* Popup background */
.win-popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    align-items: center;
    justify-content: center;
    z-index: 1000; 
}

/* Popup content */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.popup-content h2 {
    font-family: "Sacramento", cursive;
    font-weight: 400;
    font-style: normal;
}
.popup-content p {
    font-family: "Aboreto", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* Close button */
#close-popup {
    background: var(--purple-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
#close-popup:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media screen and (max-width: 700px) {
    .cards {
        height: 350px;
        width: 350px;
    }

    .card {
        height: calc(25% - 5px);
        width: calc(25% - 5px);
    }
}

@media screen and (max-width: 530px) {
    .cards {
        height: 300px;
        width: 300px;
    }

    .card {
        height: calc(33.33% - 5px);
        width: calc(33.33% - 5px);
    }
}
.page-footer {
    background-color: #412939;
    padding: 20px;
    margin-top: auto;
    text-align: center;
    font-family: "Gotu", sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-images {
    margin-bottom: 10px; 
}

.footer-images a {
    display: inline-block;
    margin: 0 10px; 
}

.footer-images img {
    width: 40px;
    height: auto;
}

.footer-text {
    color: white;
    margin: 5px 0; 
}