body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #eddfcc;
    margin: 0;
    position: relative;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Center items vertically */
}

.vertical-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.open-strings {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: calc(90vh / 5);  /* 1/5th of 90% of the viewport height */
    margin-bottom: 8px;
}

.open-string {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

.guitar-neck {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 9% 8.8% 8.6% 8.4% 8.2% 8% 7.8% 7.6% 7.4% 7.2% 7% 6.8%;
    width: calc(90vh / 5);  /* 1/5th of 90% of the viewport height */
    height: 90vh;  /* 90% of the viewport height */
    border-top: 8px solid #000; /* Thick border on top like a guitar nut */
    border-left: none;
    border-right: none;
    border-bottom: none;
    position: relative;
}

.string {
    position: absolute;
    width: 2px;
    background-color: #aaa; /* Change string color to #aaa */
    top: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1; /* Ensure strings are above the frets */
}

.string-1 { left: calc(8.33% - 1px); } /* Position strings at the center of each column */
.string-2 { left: calc(25% - 1px); }
.string-3 { left: calc(41.67% - 1px); }
.string-4 { left: calc(58.33% - 1px); }
.string-5 { left: calc(75% - 1px); }
.string-6 { left: calc(91.67% - 1px); }

.fret {
    position: relative;
    background-color: #D2B48C; /* Change fret background to #D2B48C */
    border-bottom: 2px solid #333; /* Add darker line between frets */
    display: flex;
}

.note {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0; /* Ensure notes are below strings */
}

.note.highlighted, .open-string.highlighted {
    background-color: yellow;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    left: -20px; /* Position the dot to the left of the fret */
    z-index: 3; /* Ensure dot is above everything else */
}

.clickable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2; /* Ensure clickable layer is on top */
}

.right-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 150px;
}

.note-display {
    border: 3px solid green;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    background: #fff;
    height: 200px;
}

.note-display img {
    max-width: 100%;
    max-height: 100%;
    transition: opacity 0.3s ease-in-out; /* Smooth transition effect */
    opacity: 1;
}

.studio-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-style: italic;
    color: #aaa;
}
