* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: auto; /* Changed from hidden for mobile scrolling */
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

body {
    padding: 10px;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(135deg, #b7e7fc, #c491b1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 15px;
    }

    #chord-controls, 
    #scale-controls {
        flex-direction: column;
    }

    .select-container {
        width: 100%;
    }

    select {
        width: 100%;
        min-width: unset;
    }

    .fret {
        width: 50px;
    }

    .fret:first-child {
        width: 40px;
    }

    .note {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .fret-marker {
        width: 15px;
        height: 15px;
        bottom: 200px;
    }

    .info-box {
        padding: 10px;
    }

    .info-box h2 {
        font-size: 1.1rem;
    }

    .mode-switch {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .switch {
        transform: scale(0.8);
    }

    .footer-logo {
        height: 40px;
    }

    .fretboard-container {
        padding: 5px 0;
    }

    .fret-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        padding: 15px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .fret {
        width: 45px;
    }

    .fret:first-child {
        width: 35px;
    }

    .note {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }

    .string {
        height: 1.5px;
    }
}

/* Existing CSS remains same below this line */
/* ... (keep all your original CSS rules) ... */




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

body {
    padding: 10px;
}

.container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #b7e7fc, #c491b1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #009;
    background: #FFC;
    padding: 10px;
    border-radius: 8px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.mode-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #11e1e8;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

#chord-controls,
#scale-controls {
    display: flex;
    gap: 20px;
}

.select-container {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 16px;
    min-width: 150px;
}

.guitar-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.fretboard-container {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 0;
    position: relative;
    flex: 1;
}

.fretboard {
    display: flex;
    justify-content: flex-start;
    position: relative;
    min-width: max-content;
}

.string {
    height: 2px;
    background-color: #956113;
    position: absolute;
    width: 100%;
}

.string-1 {
    top: 0;
}
.string-2 {
    top: 40px;
}
.string-3 {
    top: 80px;
}
.string-4 {
    top: 120px;
}
.string-5 {
    top: 160px;
}
.string-6 {
    top: 200px;
}

.frets {
    display: flex;
}

.fret {
    width: 90px;
    height: 200px;
    border-right: 4px solid #888;
    position: relative;
}

.fret:first-child {
    width: 60px;
    border-left: 8px solid #333;
}

.fret-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fac7a5;
    border-radius: 50%;
    bottom: 225px;
    opacity: 0.5;
    left: 52%;
    transform: translateX(-50%);
}

.note {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #f5bd1f;
    border-radius: 50%;
    color: #6b4c37;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.note:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.note.inactive {
    background-color: #ccc;
    color: #666;
}

.note.root {
    background-color: #ca5cdd;
    box-shadow: 0 0 10px #fe0000;
}

.info-box {
    text-align: left;
    
    padding: 15px;
    background: linear-gradient(135deg, #b7e7fc, #91bbc4)
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    max-width: 600px;
}

.info-box h2 {
    margin-bottom: 10px;
    color: #333;
}

.info-box p {
    color: #666;
}

/* Fret number indicators */
.fret-numbers {
    position: relative;
    height: 30px;
    margin-bottom: 15px;
    width: 100%;
}

.fret-number {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    text-align: center;
}

/* String names */
.string-names {
    position: absolute;
    left: -30px;
    top: 0;
    height: 100%;
}

.string-name {
    position: absolute;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #333;
}

.string-name-1 {
    top: 0;
    transform: translateY(-10px);
}
.string-name-2 {
    top: 40px;
    transform: translateY(-10px);
}
.string-name-3 {
    top: 80px;
    transform: translateY(-10px);
}
.string-name-4 {
    top: 120px;
    transform: translateY(-10px);
}
.string-name-5 {
    top: 160px;
    transform: translateY(-10px);
}
.string-name-6 {
    top: 200px;
    transform: translateY(-10px);
}

/* Connection lines for scales */
.scale-line {
    position: absolute;
    background-color: rgba(147, 145, 155, 0.921);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 1100px) {
  html, body, .select-container, select {
    font-size: 0.75rem;
  }
}

/* Footer Styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #da3068, #ffff00);
    text-align: center;
    padding: 7px 0;
    border-top: 1px solid #ccc;
    z-index: 1000; /* Ensure it stays on top of other elements */
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #00ffbc;
}

.footer-logo {
    height: 60px; /* Adjust the size of your logo */
    vertical-align: middle;
    margin-left: 5px;
}

.container {
    padding-bottom: 30px; /* Adjust this value based on the footer height */
}
