html, body {
    font-family: 'Luckiest Guy', cursive;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.loading-screen {
    height: 100vh;
    background-color: #000000;
}

#progress-bar {
    position: relative;
    top: 50%;
    left: 50%;
    width: 20%;
    height: 3%;
    background-color: #000000;
    border-radius: 10px;
    border: white solid 1px;
    transform: translate(-50%, -50%);
}

#fill-bar {
    position: absolute;
    border-radius: 10px;
    bottom: 2%;
    height: 100%;
    background-color: white;
    width: 0%;
}

#loading-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    color: white;
    font-size: 40px;
    transform: translate(-50%, -50%);
}

.start-container{
    width: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.start-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-button-div-container {
    position: absolute;
    padding-top: 1.7%;
    padding-bottom: 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 10%;
}

.logo-image {
    width: 100%;
    min-width: 350px;
    max-width: 500px;
    height: auto;
}

.start-menu-button-div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.play-button {
    background-image: url('./assets/menu-buttons-long.png');
    background-position: -10px -8px;
    background-repeat: no-repeat;
    width: 443px;
    height: 90px;
}

.play-button:hover {
    background-position: -10px -118px;
}

.settings-button {
    background-image: url('./assets/menu-icons-short.png');
    background-position: -10px -8px;
    background-repeat: no-repeat;
    width: 200px;
    height: 90px;
}

.settings-button:hover {
    background-position: -10px -118px;
}

.button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 30px;
    text-align: center;
    font-family: 'Luckiest Guy', cursive;
}
/* write media query for small buttons */

.level-menu-container {
    background: url("./assets/level-menu-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    display: none;
}

.levels-container {
    max-width: 625px;
    max-height: 625px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.level-icon {
    width: 123px;
    height: 128px;
    background-image: url("./assets/menu-level-selection.png");
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8); 
    /* margin: 0 -5px; Adjust margins to compensate for the scaling */
}

.level-icon-text {
    font-size: 40px;
    color: rgb(255, 255, 255);
    -webkit-text-stroke: rgb(0, 0, 0) 1px;
    font-weight: 600;
}

.locked-level-icon {
    background-position: -5px -130px;
}

.unlocked-level-icon {
    background-position: -5px -0px;
}

.level-selection-back-button {
    background-image: url("./assets/menu-buttons-1.png");
    background-position: -10px -6px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: 2%;
    left: 1%;
    scale: 0.8;
}

.level-selection-back-button:hover {
    background-position: -143px -6px;
}

.top-star-container {
    position: absolute;
    top: 2%;
    right: 1%;
    display: flex;
    align-items: center;
    gap: 2%;
}

.top-star-icon {
    background: url("./assets/star-icons.png");
    background-position: -2px -385px;
    width: 80px;
    height: 55px;
}

.star-count-div {
    color: white;
    font-size: 40px;
    font-weight: 600;
}

@media (min-width: 1220px) {
    .start-background-image {
        object-position: 0 min(-36vw, -200px); 
    }
}

@media (max-width: 549px) {
    .start-background-image {
        object-position: 0 -1vw; 
    }

    .logo-button-div-container {
        padding-top: 15%;
    }
    
    .logo-image {
        scale: 0.7;
    }

    .play-button {
        scale: 0.7;
    }

   .settings-button {
        scale: 0.7;
    }
    .level-selection-back-button {
        scale: 0.6;
    }
}

