@font-face {
    /*Add this always on top to import saved font*/
    font-family: "Rockybilly";
    src: url("../fonts/start-screen/Rockybilly.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SpaceFont";
    src: url("../fonts/space/space.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
}
#dropdown-container select option {
    text-transform: capitalize;
}
#dropdown-container select {
    text-transform: capitalize;
}


.full-screen-layout {
    min-height: 100vh;
    background-image: url("../imgs/start/background.avif");
    background-size: cover;
    background-position: center;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#start-pencil {
    position: absolute;
    right: 5%;
    top: 65%;
    transform: translateY(-50%);
    height: 300px;
    pointer-events: none;
    animation: pencilWobble 2.5s ease-in-out infinite;
    transform-origin: bottom left;
}

#title,
#endGameMessage,
#wordReveal {
    font-family: "Rockybilly", cursive;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
}

#dropdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#dropdown-container select {
    font-family: "Rockybilly", cursive;
    font-size: 1.2rem;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #fff9e6;
    box-shadow: 2px 2px 0px #333;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#dropdown-container select:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px #333;
}

#start-btn {
    font-family: "Rockybilly", cursive;
    font-size: 1.5rem;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #fff9e6;
    box-shadow: 3px 3px 0px #333;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: red;
}

#start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #333;
}

#letters {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    gap: 10px;
    justify-content: center;
}

#game-board {
    min-height: 100vh;
    margin: 0;
}

h1,
h2,
h3 {
    margin-top: 0;
}

/* Theme Character */
#theme-character {
    position: absolute;
    bottom: 100px;
    left: 50px;
    height: 300px;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

#theme-character.hidden {
    display: none !important;
}

/*animations theme character */
#theme-character.fly-away {
    transform: translate(100vw, -100vh) rotate(360deg);
    opacity: 0;
    transition: transform 2s ease-in, opacity 2s ease-in;
}
#theme-character.win-grow {
    transform: scale(2);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#theme-character.cowboy-win{
    animation: cowboyRunCenter 1.5s forwards;
}
#theme-character.cowboy-lose{
    animation: cowboyRunOff 2s forwards;
}
/* Themes */
/* Space Theme */
#game-board.space {
    background-color: #0a0a30;
    background-image: url("../imgs/space/space-background.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    color: whitesmoke;
    position: relative;
}

#space-info {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 20px auto;
    padding: 0 5%;
    font-size: 1.2rem;
    font-weight: bold;
    color: #001a4d;
}

#space-info span {
    font-weight: bold;
}

#game-board.space #masked-word {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 250px;
}

#game-board.space {
    font-family: "SpaceFont", sans-serif;
}

#game-board.space h2,
#game-board.space h3 {
    text-align: center;
    margin: 5px 0;
}

#game-board.space #letters {
    display: grid;
    grid-template-columns: repeat(7, 70px);
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#game-board.space #letters button {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    background-color: #001a4d;
    border: 2px solid white;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.5s;
}

#game-board.space #letters button:hover {
    box-shadow: 0 0 15px 3px #ffffff;
    transform: scale(1.1);
}

#game-board.space #letters button:disabled {
    opacity: 0.3;
    background-color: #001a4d;
    pointer-events: none;
    transform: none;
    visibility: visible;
}

/* Western Theme */
#game-board.western {
    background-color: #f4e2c0;
    background-image: url("../imgs/western/western-background.png");
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 50px;
    color: #ffffff;
}
#game-board.western #letters button {
    width: 70px;
    height: 70px;
    background-image: url("../imgs/western/wanted.avif");
    background-size: cover;
    border: none;
    position: relative;
    color: #000000;
    font-size: 2rem; 
    font-weight: bold;
    line-height: 1.2;
    padding-top: 15px;
    padding-bottom: 0px;
}
#game-board.western #letters {
    display: grid;
    grid-template-columns: repeat(7, 70px);
    gap: 15px;
    justify-content: start;
    margin: 0;
}
#game-board.western #letters button.disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../imgs/western/bullet.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
/* Nature Theme */
#game-board.nature {
    background-color: #c3f0c3;
    background-image: url("../imgs/nature/nature-background.jpg");
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}

/* Invaders Theme */
#game-board.invaders {
    background-color: #000000;
    background-image: url("../imgs/invaders/invader-background.avif");
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}
button {
    padding: 10px;
    border-radius: 20px;
    background-color: red;
    color: azure;
    font-weight: bold;
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
}
.hidden {
    display: none !important;
    pointer-events: none;
}
#masked-word {
    font-family: monospace !important;
}
@keyframes pencilWobble {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    25% {
        transform: translateY(-52%) rotate(-2deg);
    }
    50% {
        transform: translateY(-50%) rotate(1deg);
    }
    75% {
        transform: translateY(-48%) rotate(-1deg);
    }
    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}
@keyframes cowboyRunCenter {
    0% {
        transform: translateX(0) scale(1);
    }
    100% {
        transform: translateX(calc(50vw - 50px)) scale(2);
    }
}

@keyframes cowboyRunOff {
    0% {
        transform: translateX(0) scale(1);
    }
    100% {
        transform: translateX(100vw) scale(1);
    }
    
}