@font-face {
    font-family: BreeSerif;
    src: url("/fonts/BreeSerif-Regular.ttf")
      format("truetype");
}
  
@font-face {
    font-family: Roboto;
    src: url("/fonts/RobotoSlab-Regular.ttf")
      format("truetype");
}

html {
    background-color: #111927;
}

body {
    margin: 0;
    padding: 0;
    background-color: #111927;
    background-image: 
        radial-gradient(at 47% 33%, hsl(274.25, 50%, 38%) 0, transparent 59%), 
        radial-gradient(at 82% 65%, hsl(217, 60%, 17%) 0, transparent 55%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    margin: 0;
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

main h1 {
    font: 900 24px/1.5 "BreeSerif", sans-serif;
    color: white;
    text-align: center;
    margin: 0;
}

main p {
    font: 300 16px/1 "Roboto", sans-serif;
    color: white;
    opacity: 1;
    text-align: center;
    width: 90%;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem;
}


#clue-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#clue-revealed {
    min-width: 100px;
    max-width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.5rem;
}

.revealed {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.5rem;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    background-color: rgba(17, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
    color: rgba(255, 255, 255, 0.808);
    font-family: Roboto;
    font-size: 14px;
}

.historical-character {
    display: flex;
    justify-content: center;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    background-color: rgba(17, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
    overflow: hidden;
    width: 200px;
    height: 300px;
    border-radius: 0.5rem;
    position: relative;
    transition: 0.5s ease;
}

#clue-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    transition: 0.5s ease;
}

.character-revealed {
    height: 50px;
    width: 100%;
    opacity: 1;
    text-transform: uppercase;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    font-family: BreeSerif;
    font-weight: 900;
    font-size: 24px;
    align-items: center;
    text-align: center;
    border-radius: 0.5rem;
    margin: 0;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    background-color: rgba(17, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

#character-revealed {
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    font-family: BreeSerif;
    font-weight: 900;
    text-align: center;
    margin: 0;
    filter: brightness(50%) opacity(0.5);
}

#result {
    text-align: center;
    padding: 0.5rem;
    bottom: 0;
    font: 900 16px/1.5 "Roboto", sans-serif;
    color: white;
    line-height: 1;
    height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    transition: 0.2s ease;
    scale: 0;
}

.container-buttons {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    width: 100%;
}

#guess {
    appearance: none;
    background-color: transparent;
    font: 300 16px/1 "Roboto", sans-serif;
    padding: 0.5rem;
    color: white;
    flex: 1;
    border-radius: 0.5rem;
    background-color: rgba(17, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

button {
    height: 100%;
    background-color: transparent;
    font: 300 16px/1 "Roboto", sans-serif;
    padding: 0.5rem;
    color: white;
    border-radius: 0.5rem;
    background-color: rgba(72, 23, 128, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
    transition: 0.2s ease;
}

button:hover {
    background-color: rgba(72, 23, 128, 0.5);
    cursor: pointer;
    scale: 1.05;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

button:active {
    scale: 1;
}

#character-skip {
    height: auto;
    margin: 0.5rem;
    background-color: transparent;
    font: 300 16px/1 "Roboto", sans-serif;
    padding: 0.5rem;
    color: white;
    border-radius: 0.5rem;
    background-color: rgba(17, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.125);
    transition: 0.2s ease;
}

#character-skip:hover {
    background-color: rgba(17, 25, 40, 0.5);
    
    cursor: pointer;
    scale: 1.05;
}

#character-skip img {
    height: 20px;
    width: 30px;
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 600px) {

    main {
        padding-top: 1rem;
    }

    #game-container {
        margin: 0.5rem;
        gap: 0.25rem;
    }
    #clue-container {
        gap: 0.25rem;
    }
    .revealed {
        font-size: 12px;
    }
    #character-revealed {
        font-size: 18px;
    }
    
}