
@import url('https://fonts.googleapis.com/css2?family=Patua+One&family=Roboto:wght@300&display=swap');


/* The javascript is based on Udemy Tutorial by Laurence Svekis:
"JavaScript Create 5 Fun Word Games"
The tutorial included minimal CSS; this CSS is my own work.*/

:root {
 /* Codes from background image - remove final "ff" */
    --scarlet: #F53519ff;
    --cambridge-blue: #7AB2A9ff;
    --sandy-brown: #FBAA69ff;
    --bone: #E2DBC9ff;
    --space-cadet: #0D2656ff;
    --giants-orange: #F8682Bff;
    --lapis-lazuli: #04668Dff;
    --wheat: #F4DBAFff;
    --indigo-dye: #0A446Fff;
    --cerulean: #086D90ff;
    font-family: 'Patua One', serif;
    font-family: 'Roboto', sans-serif;
    font-family: 'Times New Roman', Times, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "";
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("https://i.postimg.cc/7L7rt5Qg/rainbow-background.jpg"); 
    background-color: #E2DBC9; 
    height: 500px; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover; 
    animation: fadeInAnimation ease 1.4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

main {
    display: flex; 
    flex: 1 0 auto; 
    align-items: center; 
}

#game-area {
    display: flex;
    flex-direction: column;
    /* flex: 1 0 auto;  */
    align-items: center;
    justify-content: center;
    background-color: #086D90;
    padding: 4rem;
    min-width: 20rem;
    max-width: 20rem; 
    max-height: 20rem;
    min-height: 20rem; 
    border-radius: 5px;
}

#heading-wordscramble {
    color: white;  
    font-size: 1.8rem; 
    text-align: center; 
    position: absolute; 
    margin-top: -13rem;
    padding-bottom: 1.4rem;
    font-family: 'Patua One', serif;
    font-weight: normal;
}
    
ul {
    color: white;  
    list-style-type: none;  
    font-family: 'Patua One', serif;
    font-size: 0.9rem;
    padding-top: 2.4rem;
    padding-bottom: 2rem;    
}

li {
    font-family: 'Patua One', serif;
    padding: 0.3rem;
}

.div-scoreboard {
    color: white; 
    margin: 5px 5px; 
    letter-spacing: 0.1rem;
    font-family: 'Patua One', serif;
}

.btn-start {
    border-radius: 5px;
    border: none;
    padding: 0.75rem;
    margin: 5px 5px;
    width: 14rem;
    height: 4rem; 
    font-size: 1.2rem;
    font-family: 'Patua One', serif;
    color: #0D2656; 
}

button {
cursor:pointer;
}

.btn-start:hover, #btn-refresh:hover {
    background-color: #fdeda8; 
}

/* Create and style refresh button */
#btn-refresh  {
    border-radius: 4px; 
    border: none; 
    padding: 0.35rem;
    margin: 5px 5px; 
    font-family: 'Patua One', serif;
    font-size: 1rem;
    color: #0D2656ff; 
}

.div-played-words {
    background-color: #7AB2A9;
    font-size: 2rem; 
    border-radius: 5px; 
    width: 14rem;
    letter-spacing: 0.3rem;
    text-align: center; 
    position: relative; 
    padding: 0.5rem;
    margin: 5px 5px; 
    font-family: 'Times New Roman', Times, serif;    
}

.input-text {
    letter-spacing: 0.3rem;
    width: 14rem;    
    font-size: 1.5rem;
    text-align: center; 
    border-radius: 5px;
    padding: 0.6rem;
    margin: 5px 5px;   
    overflow: hidden; 
    font-family: 'Roboto', sans-serif;
}

.input-text::placeholder {
    font-size: 0.7rem; 
    text-align: center; 
    letter-spacing: 0rem;   
    padding-top: 1rem; 
    color: black;
}

.div-gameover {
    font-size: 1.4rem; 
    color: white; 
    font-family: 'Patua One', serif;
}

.footer__link  {
    background-color: #0A446F;
    width: 100vw; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

footer a, footer i { 
    background-color: #0A446F; 
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
    color: white; 
    padding: 0.4rem;
    text-decoration: none; 
}
