body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e3d3a1eb;
    font-family: 'Moglandemo', sans-serif;
}

@font-face {
    font-family: 'Satoshi';
    src: url('Fonts/Satoshi-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Aloevera';
    src: url('Fonts/Aloevera.ttf') format('truetype');
}

@font-face {
    font-family: 'Anbigu';
    src: url('Fonts/anbigu.ttf') format('truetype');
}

@font-face {
    font-family: 'Moglandemo';
    src: url('Fonts/moglandemo.regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Magilio';
    src: url('Fonts/magilio-font/MagilioRegular-8.otf') format('opentype');
}

@font-face {
    font-family: 'Cailyne';
    src: url('Fonts/Cailyne.ttf') format('truetype');
}

.hide-cursor {
    cursor: none;
}


.button-pressed {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3); /* Adjust for pressed effect */
    background-color: #ccc; /* Slightly darker to simulate being pressed */
    /* Other styles for pressed state */
}

.message {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease;
    /* Additional styling (font size, color, etc.) */
}

#messageTop {
    top: -160%; /* Adjust as needed based on your layout */
}

#messageBottom {
    bottom: -60%; /* Adjust as needed */
}


#infoSection p {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    padding-top: -50px;
}

#infoSection {
    font-family: 'sans-serif';
    position: fixed;
    top: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* Adjust the width as needed */
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Additional styling */
}

#controlSection {
    position: absolute;
    bottom: -340px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Adjust the width as needed */
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Additional styling */
}

/* ... existing styles ... */

/* Centering table text */
#controlSection table td {
    text-align: center;
}

/* Styling for the image container */
.image-container {
    display: flex;
    justify-content: center; /* Center the images horizontally */
    gap: 10px; /* Adjust the gap between images */
}

.image-container img{
    width: 150px;
    height: auto;
}

/* Adjustments for individual images */
#controlSection .image-container img {
    width: 300px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    /* Additional styling as needed */
}

/* ... remaining styles ... */


#controlSection img {
    width: 500px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    /* Additional styling as needed */
}

#controlSection table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: -40px;
}

#controlSection table td[colspan="3"] {
    text-align: center;
}

#infoSection, #controlSection {
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Add more styling as needed */
}

#infoSection:hover, #controlSection:hover {
    opacity: 1;
}


#toggleKeyLabels {
    font-family: 'Cailyne', sans-serif;
    bottom: 20px;
    left: 80%;
    transform: translateX(0%);
    cursor: pointer;
    
}

#chordButtons {
    font-family: 'Aloevera', sans-serif;
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust the gap between buttons */
    margin-top: 8px; /* Adjust based on your layout */
}

#chordButtons button {
    font-family: 'Magilio', sans-serif;
    font-size: 16px;
    width: 138px;
    height: 30px;
    border-radius: 25px;
    cursor: pointer;
}

#minorChordButtons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust the gap between buttons */
    margin-top: 20px; /* Space between the rows of buttons */
    padding-left: 20px; /* Slight offset to the right */
}

#minorChordButtons button {
    font-family: 'Magilio', sans-serif;
    font-size: 16px;
    width: 138px;
    height: 30px;
    border-radius: 25px;
    cursor: pointer;
    /* Additional styling as needed */
}


#keyboard div {
    font-family: 'Magilio', sans-serif;
}


#keyboard {
    position: relative; /* Parent container relative */
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
}

.label {
    /* Style your labels here */
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease, visibility 2s ease;
}

.label-visible .label {
    opacity: 1;
    visibility: visible;
    display: inline; /* or block, depending on your layout */
}


.key:active {
    box-shadow: inset 0 6px 26px rgba(0, 0, 0, 0.3); /* Adjust shadow for depth */
    background-color: #eee; /* Slightly lighter or darker to simulate depth */
}

.key {
    width: 72px; /* Width of hexagon */
    height: 67px; /* Height for regular hexagon */
    margin: -1px;
    background-color: #fffdd0; /* Cream-like color */
    display: inline-block;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    cursor: pointer;
    position: relative;
}

.label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.key.white {
    background-color: #fffdd0;
}

.key.black {
    width: 42px;
    height: 75px;
    background-color: darkgrey;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: absolute; /* Position black keys absolutely */
    z-index: 1;
}

/* Positioning of each black key */
#Csharp { left: 58px; top: -37px; }
#Dsharp { left: 132px; top: -37px; }
#Fsharp { left: 280px; top: -37px; }
#Gsharp { left: 354px; top: -37px; }
#Asharp { left: 428px; top: -37px; }

.ripple {
    opacity: 1;
    width: 25px;
    height: 25px;
    z-index: -1;
    position: fixed;
    border-radius: 50%;
    background-color: transparent;
    transform: scale(0);
    animation: ripple-effect 3s linear;
    pointer-events: none; /* Ignore mouse events */
}

@keyframes ripple-effect {
    to {
        transform: scale(50);
        opacity: 0;
    }
}
