/* change whatever to make it cute! here's the color palette from our chosen color palette:
baby pink: #f6d9de
pink-purple: #c490be
lavender: #897dab
dark periwinkle blue: #8695c0
pale sky blue: #b2c7df
baby blue/close to white: #dfe8ef

we can discuss font in the group chat. try to make modules rounded and simple and cute!

check index.html for instructions relating to this file, since they're connected

 */

body {
    background: #dfe8ef;
    font-family: Verdana, sans-serif;
    text-align: center;
    color: #8695c0;
}
#pet-area img {
    width: 200px;
}
#pet-name {
    font-size: 1rem;
    font-weight: bold;
}
#inventory-module, #shop-module {
    display: block;
    vertical-align: top;
    width: 100%;
    margin: 10px 0;
    color: #dfe8ef
}

.inventory-item {
    width: 70px;
    padding: 6px;
    border-radius: 10px;
    background: #dfe8ef;
    text-align: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#inventory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}

.inventory-item img {
    width: 50px;
    height: 50px;
}

.inventory-item p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #8695c0;
}

.inventory-item.low {
    opacity: 0.35;
    filter: grayscale(30%);
}

.inventory-item .quantity {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #8695c0;
}

.panel {
    background: #b2c7df;
    padding: 15px;
    width: 40%;
    border-radius: 12px;
}
.sub-panel {
    background: #dfe8ef;
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    box-sizing: border-box;
}
#pet-area {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#flashcard-area {
    width: 100%;
    position: relative;
    perspective: 1000px;
    max-width: 300px;
    min-width: 220px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#flashcard-card {
    width: 100%;
    max-width: 260px;
    height: 160px;
    transform-style: preserve-3d;
    transition: transform .6s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
#flashcard-area::before, #flashcard-area::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 140px;
    left: 10px;
    background: #b2c7df;
    border-radius: 12px;
    z-index: 0;
}
#flashcard-area::before {
    top:10px;
}
#flashcard-area::after {
    top: 20px;
}
#setting-button {
    position: absolute;
    top: 10px;
    right: 10px;
}
.side {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    left: 0;
    top: 0;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    background: #b2c7df;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#flashcard-answer {
    margin-top: 30px;
    text-align: center;
    transform: rotateY(180deg);
}
.flipped {
    transform: rotateY(180deg);
}
#flashcard-counter {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    z-index: 10;
}
.stat-bar {
    width: 200px;
    height: 20px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    border: 2px #dfe8ef;
    margin: 10px auto;
}

.stat-fill {
    height: 100%;
    width: 100%;
    background: #8695c0;
    transition: width 0.4s linear;
    display: flex;
    justify-content: center;
    color: #dfe8ef;
}
main {
    width: 100%;
    height: 100vh;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}
#flashcard-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.game-layout {
    display: flex;
    gap: 24px;
    align-items: start;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}
.left .panel {
    width: 100%;
    box-sizing: border-box;
}
.center {
    flex: 1 1 auto;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.right {
    flex: 0 0 320px;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.flashcard {
    width: 100%;
    height: 100%;
}

#shop-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}

.shop-item {
    flex: 0 0 80px ;
    width: 80px;
    padding: 8px;
    text-align: center;
}

.shop-item img {
    width: 60px;
    height: 60px;
}

.shop-item p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #8695c0;
}

.shop-item.selected {
    outline: 3px solid #c490be;
    background: #f6d9de;
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modal-container.hidden {
    display: none;
}

#modal-container .modal-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    max-width: 90%;
    color: #8695c0;
    text-align: center;
}


.hidden {
    display: none;
}
