/* Original/Initial Gnome character styles */
/* All other CSS for Gnome per page adjustments based on these initial settings */
.gnome-character-container {
    position: relative;
    width: 350px;
}

.gnome-image {
    position: absolute;
    bottom: 15px;
    left: 139%;
    width: 80px;
    height: auto;
    z-index: 1;
}

.speech-bubble {
    position: absolute;
    top: -165px;
    left: 133%;
    background-color: white;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 0.8rem;
    width: 125px;
    text-align: center;
    z-index: 2;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-sizing: border-box;
    word-wrap: break-word;
    height: auto;
    overflow: visible;
}

.speech-bubble .initial-text {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    color: #367A4C;
    font-weight: bold;
}

.speech-bubble .hover-text {
    display: none;
    width: 100%;
    box-sizing: border-box;
    color: #367A4C;
    font-weight: bold;
}

.speech-bubble:hover .initial-text {
    display: none;
}

.speech-bubble:hover {
    top: -215px;
}

.speech-bubble:hover .hover-text {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 795px) {
    .gnome-character-container {
        width: 300px;
        height: 50px;
    }

    .gnome-image {
        width: 70px;
        left: 20%;
        top: 6%;
    }      .speech-bubble {
        font-size: 0.7rem;
        padding: 6px 10px;
        width: 100px;
        top: -15%;
        left: 125px;
    }
    
    .speech-bubble:hover {
        top: -20%;
        left: 125px;
    }
}
