*{
    box-sizing: border-box;
    margin:0;
    padding:0;
    font-family: 'Poppins', sans-serif;
}
body {
    color: white;
    background: #00c6ff;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #0072ff, #00c6ff);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #0072ff, #00c6ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    overflow-x: hidden;
}
.intro{
    height: 90vh;
    color: rgb(224, 224, 224);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;;
    align-items:center;
    transition: opacity 0.5s ease;
}
.intro h1{
    font-size: 40px;
    letter-spacing:0.5em;
    color:white;
}
.category,
.character{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .5s ease .5s;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
.category h1,
.character h1{
    font-size: 32px;
    letter-spacing:0.2em;
    display:flex;
    justify-content: center;
    text-align: center;
}
.characters img{
    width: 165px;
    height: 165px;
    padding: 10px;
    cursor: pointer;
}
.characters img:hover{
    opacity:0.6;
}
.img-hangman{
    width:300px;
    height: 300px;    
}
.btn-play{
    color: rgb(224, 224, 224);
    width: 120px;
    height: 50px;
    border: none;
    font-size: 20px;
    font-family: sans-serif;
    letter-spacing: 0.2em;
    background-color: white;
    color: black;
    border-radius: 3px;
    cursor: pointer;
}
.categories{
    display:flex;
    height:60vh;
    width:100vw;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;    
}
.btn-category{
    color: rgb(224, 224, 224);
    width: 190px;
    height: 40px;
    border: none;
    font-size: 20px;
    letter-spacing: 0.2em;
    background-color: white;
    color: black;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
    margin: 8px;
}
.btn-characters{
    color: rgb(224, 224, 224);
    width: 40px;
    height: 40px;
    border: none;
    font-size: 20px;
    letter-spacing: 0.2em;
    background-color: white;
    color: black;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin: 8px;
}
.characters{
    display:flex;
    height:70vh;
    width:90vw;
    align-items: center;
    justify-content: center;  
    align-content: center;
    flex-wrap:wrap;    
}
.gameplay {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size:1.5rem;
    letter-spacing: 0.1em;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease 1s;    
    font-family: 'Poppins', sans-serif;    
    width: 100%;
    height: 100%;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 40px 1fr 1fr ;
    justify-items: center;
}
.gameplay-header{       
    font-size:25px;
    grid-column-start: 1;
    grid-column-end: 3;
    height: 40px;
    margin-top: 11px;
}
.game-word{
    font-size: 40px;
    text-align: center;   
    display:flex;
    flex-wrap: wrap;                                                                                                                                                                                        
    justify-content: center;
    grid-column-start: 1;
    grid-column-end: 3;
    align-items: center;
    align-self:center;
}
#win-loss-modal{    
    font-size: 50px;  
}
.gallows{    
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-start: 3;
    display: flex;
    align-items: start;
    background-image: url("./images/gallows_empty.png");
    background-size:contain;
    background-repeat: no-repeat;    
}
.gallows img{    
    height:400px;
    width:300px;
}
.letter-wrapper{
    display: flex;
    justify-content: center;
}
.letters {    
    margin: 10px;
    border-bottom: black 2px solid;
    width: 40px;   
    height: auto;
}
.spaces {
    margin: 10px;
    width: 40px;  
}
.hidden{
    opacity:0;
}
.alphabet-container{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-start: 3;
    align-self: center;
    justify-content: center;
    align-items: center;
}
.alphabet button, 
.alphabet-final button{
    width:40px;
    height: 40px;
    font-size: 25px;
    cursor: pointer;
    border: solid black 1px;
    border-radius: 3px;
    margin:3px;
}
.alphabet-final{
text-align: center;
}
.btn-main-menu{    
    width: 200px;
    height: 50px;
    border: 1px solid black;
    font-size: 20px;
    font-family: sans-serif;
    letter-spacing: 0.1em;
    background-color: #7FFFD4;
    color: black;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 20px;
}
.lose-win{
    font-size: 48px;
    color: black;
}
.correct-word{
    font-size: 32px;
    color:black;
}
.clicked{
    opacity:0.5;
    pointer-events: none;
}
.incorrect {
    opacity:0.5;
    color:white;
    background-color:red;
    border:none;
}
.fadeOut{
    opacity: 0;
    pointer-events: none;
}
.fadeIn{
    opacity: 1;
    pointer-events: all;
}
/* On screens that are 992px or less*/
@media screen and (max-width: 992px) {
    .intro h1{
        font-size: 28px;
    }
    .btn-play{
        color: rgb(224, 224, 224);
        width: 90px;
        height: 40px;   
        font-size: 18px;
        color: black;
    }
    .img-hangman{
        width:250px;
        height: 250px;    
    }
    .btn-category,
    .btn-character{
        width: 200px;
        height: 40px;    
        font-size: 20px;
    }
    .category h1,
    .character h1{
        font-size: 24px;
    }
    .characters img{
        width: 150px;
        height: 150px;
        padding: 10px;
        cursor: pointer;
    }    
    .gallows{    
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-start: 3;
    }
    .game-word{
        font-size: 25px;
    }
    .letters {    
        margin: 5px;
        border-bottom: black 2px solid;
        width: 25px;   
        height: auto;
    }
    .spaces {
        margin: 5px;
        width: 25px;  
    }
    .alphabet-container{
        grid-row-start: 4;
        grid-row-end: 5;
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .alphabet button, 
    .alphabet-final button{
        width:30px;
        height: 30px;
        font-size: 20px;
        margin: 1px;
    }
    .gallows img{    
        height:280px;
        width:220px;
    }
    #win-loss-modal{    
        font-size: 34px;  
    }
    .lose-win{
        font-size: 32px;
        color: black;
    }
    .correct-word{
        font-size: 24px;
        color:black;
    }
    .btn-main-menu{    
        width: 140px;
        height: 35px;  
        font-size: 17px;      
    }
}
@media screen and (max-height: 600px) {
    .intro h1{
        font-size: 25px;
    }
    .img-hangman{
        width:150px;
        height: 150px;    
    }
    .btn-play{        
        width: 60px;
        height: 25px;       
        font-size: 13px;       
    }
    .category h1,
    .character h1
    {
        font-size: 24px;
    }
    .btn-category{        
        width: 150px;
        font-size: 14px;
        margin: 8px;
    }
    .characters img{
        width: 100px;
        height: 100px;
        padding: 1px;
        cursor: pointer;
    }
    .characters {
        display:flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    .gallows img{    
        height:250px;
        width:175px;
    }
    .game-word{
        font-size: 25px;
    }
    .letters {    
        margin: 5px;
        border-bottom: black 2px solid;
        width: 25px;   
        height: auto;
    }
    .spaces {
        margin: 5px;
        width: 25px;  
    }
    .alphabet button, 
    .alphabet-final button{
        width:30px;
        height: 30px;
        font-size: 20px;
        margin: 1px;
    }
    .alphabet-container{
        grid-row-start: 3;
        grid-row-end: 4;
        grid-column-start: 2;
        grid-column-end: 3;
    }
    .gallows{    
        grid-column-start: 1;
        grid-column-end: 2;
    }
    #win-loss-modal{    
        font-size: 34px;  
    }
    .lose-win{
        font-size: 32px;
        color: black;
    }
    .correct-word{
        font-size: 24px;
        color:black;
    }
    .btn-main-menu{    
        width: 140px;
        height: 35px;  
        font-size: 17px;      
    }
}
@media screen and (max-height: 375px) {
    .alphabet button, 
    .alphabet-final button{
        width:24px;
        height: auto;
        font-size: 16px;
        margin: 0;
    }
    .letters {    
        margin: 2px;
        border-bottom: black 2px solid;
        width: 20px;   
        height: auto;
    }
    .spaces {
        margin: 2px;
        width: 20px;  
    }
    #win-loss-modal{    
        font-size: 34px;  
    }
    .lose-win{
        font-size: 32px;
        color: black;
    }
    .correct-word{
        font-size: 24px;
        color:black;
    }
    .btn-main-menu{    
        width: 140px;
        height: 35px;  
        font-size: 17px;      
    }
    .gallows img{    
        height:200px;
        width:155px;
    }
}
@media screen and (max-height: 280px) {
    .alphabet button, 
    .alphabet-final button{
        width:24px;
        height: auto;
        font-size: 16px;
        margin: 0;
    }
    .letters {    
        margin: 2px;
        border-bottom: black 2px solid;
        width: 20px;   
        height: auto;
    }
    .spaces {
        margin: 2px;
        width: 24px;  
    }
    .gallows img{    
        height:140px;
        width:100px;
    }   
    .gameplay-header{       
        font-size:15px;
        grid-column-start: 1;
        grid-column-end: 3;
        height: 20px;
    }
    .game-word{
        font-size: 22px;
    }
    .characters img{
        width: 90px;
        height: 80px;
        padding: 10px;
        cursor: pointer;
    }
}
@media screen and (max-width: 280px) {
    .alphabet button, 
    .alphabet-final button{
        width:20px;
        height: auto;
        font-size: 16px;
        margin: 0;
    }
    .letters {    
        margin: 2px;
        border-bottom: black 2px solid;
        width: 20px;   
        height: auto;
    }
    .spaces {
        margin: 2px;
        width: 24px;  
    }
    .gallows img{    
        height:200px;
        width:150px;
    }   
    .gameplay-header{       
        font-size:15px;
        grid-column-start: 1;
        grid-column-end: 3;
        height: 20px;
    }
    .characters{
        width: 100vw;
        justify-content: center;
    }
    .btn-characters{
        height: 120px;
        width: 50px;
    }
    .characters img{
        width: 100px;
        height: 100px;
        padding: 5px;
        cursor: pointer;
    }
    .game-word{
        font-size: 22px;
    }
}
@media screen and (min-height: 1024px) {
    .alphabet button, 
    .alphabet-final button{
        width:40px;
        height: auto;
        font-size: 28px;
        margin: 2px;
    }
    .letters {    
        margin: 3px;
        border-bottom: black 2px solid;
        width: 40px;   
        height: auto;
        font-size: 38px;
    }
    .spaces {
        margin: 2px;
        width: 40px;  
    }
    #win-loss-modal{    
        font-size: 40px;  
    }
    .lose-win{
        font-size: 40px;
        color: black;
    }
    .correct-word{
        font-size: 36px;
        color:black;
    }
    .btn-main-menu{    
        width: 200px;
        height: 42px;  
        font-size: 28px;      
    }
    .gallows img{    
        height:460px;
        width:340px;
    }
    .category h1,
    .character h1{
        font-size: 48px;        
    }
    .gameplay-header{    
        margin-top: 16px;
    }
}