@keyframes vibrate {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


/* body */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #48453E;
    background-image: url(./img/wallpaper.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px);
}

/* Screen Container */
#screenContainer {
    position: relative;
    height: 100vh;
    width: calc(100vh * 9/19.5);
    border: #01586A 1px solid;
    overflow: hidden;
    margin: 0 auto;
}

/* Start Screen */
#startScreen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0); /* Initial position */
    background-image: url(./img/start.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Guitar Screen */
#guitarScreen {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-evenly;
    justify-items: center;
    width: 100%;
    height: 100vh;
    transform: translateY(100%); /* Initially off the screen */
    background-image: url(./img/guitar.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Unlock Screen */
#unlockScreen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%); /* Initial position */
    background-image: url(./img/unlock.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#title {
    /* height: 15vh; */
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    color: #E29752;
}

/* guitar */
#guitar {
    width: 250px;
    height: 60vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 100px;
}

/* lines */
#lines {
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allows clicks to pass through */
}

#lines div {
    width: 1px;
    height: 100%;
    opacity: 0.5;
    background: #826352;
    /* animation: vibrate 0.3s infinite; */
}

/* fretboard */
#fretboard {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    height: 60vh;
    gap: 1px;
    padding: 3px;
    opacity: 0.4;
}

button.fret {
    width: 100%;
    height: 100%;
    background: #01586A;
    border: 1px solid #01586A;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

button.fret:hover {
    background: #A3B1D9;
}


/* Strings */
#strings {
    grid-template-columns: repeat(6, 1fr);
    background: #E1BD80;
    opacity: 0.4;
    width: 100%;
    height: 30%;
    gap: 1px;
    padding: 3px;
    border-radius: 10px;
}

#strings button:hover {
    background: #01586A;
}

#strings div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#strings button {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

div.string button {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    transition: background-color 0.5s;
    /* Default transition duration */

    /* Shorter transition duration when turning on (hover) */
    &:hover {
        transition: background-color 0.2s;
        /* Adjust this duration for turning on */
    }
}