button {
    cursor: pointer !important;
}

#gameContainer{
    text-align: center;
    position: relative;
}

#controlsDisplay {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: white;
    border: 3px solid black;
    border-radius: 15px;
    padding: 15px 20px;
    font-family: "Comic Sans MS", sans-serif;
    text-align: left;
    z-index: 100;
}

#controlsDisplay h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}

.control-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.control-item .key {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 2px solid black;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

#gameBoard{
border: 3px solid;
}

#scoreText{
    font-family: "comic sans ms", sans-serif;
    font-size: 100px;
}

#resetBtn{
    font-family: "comic sans ms", sans-serif;
    font-size: 22px;
    width: 100px;
    height: 50px;
    border: 4px solid;
    border-radius: 15px;
    cursor: pointer !important;
}
#resetBtn:hover{
    background-color: lightgray;
}

#coinDisplay{
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    border: 2px solid;
    border-radius: 15px;
    padding: 10px 15px;
}

#shopBtn{
    width: 60px;
    height: 58px;
    border: 2px solid;
    border-radius: 15px;
    background-color: white;
    padding: 5px;
    cursor: pointer !important;
    position: fixed;
    top: 20px;
    right: 110px;
}

#shopBtn:hover{
    background-color: lightgray;
}


#shopModal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(169, 169, 169, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#shopContent{
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    border: 4px solid black;
    max-width: 500px; 
    max-height: 80%;
    overflow-y: auto;
}

#shopTitle{
    font-family: 'Comic Sans MS', sans-serif;
    margin-top: 0;
    text-align: center;
}

#shopSectionTitle{
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}

#closeShopBtn{
    font-family: 'Comic Sans Ms', sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: white;
    display: block;
    border: 3px solid black;
    border-radius: 10px;
    cursor: pointer;
    background-color: white;
    display: block;
    margin: 20px auto 0 auto;
}

#closeShopBtn:hover{
    background-color: lightgray;
}

#colorOptions{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.colorCard{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 3px solid black;
    border-radius: 10px;
    background-color: white; 
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.colorCard:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.colorPreview{
    width: 80px;
    height: 80px;
    border: 3px solid black;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    text-shadow: 2px 2px 4px black;
}

.colorPreview.owned{
    border-color: gold;
    border-width: 4px;
}

.colorName{
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.colorPrice{
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 14px;
    color: #666;
}