/* Global Style */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body { 
    background: #EEEDDE;
    width: 100%;
    height: 100vh;
}

#header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 10%;
}

.logo {
    margin-left: 5px;
    width: 50px;
    height: 50px;
}

#home {
    display: flex; /* Flex */
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
}

#home-add-word {
    display: none; /* Flex */
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
}

#home-game {
    display: none; /* Flex */
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 80%;
}

#footer {
    width: 100%;
    margin-top: auto;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    background: #E0DDAA;
}

.networks {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
    font-size: 30px;
    gap: 20px;
    color: #141E27;
}

.networks a {
    text-decoration: none;
    color: #141E27;
}

.input-area {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
}

.btn-add {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 20%;
}

.game-header {
    width: 100%;
    height: 30%;
    display: flex;
    position: relative;
    justify-content: flex-end;
}

.heart img {
    width: 40px;
    height: 40px;
}

.victory-card {
    text-align: center;
    width: 400px;
    height: 200px;
    position: absolute;
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.victory {
    text-align: center;
    border-radius: 7px;
    background: #E0DDAA;
    color: #141E27;
    font-size: 18px;
    padding-top: 3px;
    font-weight: 550;
    height: 30px;
    border: 2px solid #141E27;
}

.restart-game {
    background: #141E27;
    font-size: 25px;
    font-weight: 550;
    color: #E0DDAA;
    padding-top: 60px;
    border: 2px solid #E0DDAA;
    border-radius: 7px;
    height: 150px;
}

.defeat-card {
    text-align: center;
    width: 400px;
    height: 200px;
    position: absolute;
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.defeat {
    text-align: center;
    border-radius: 7px;
    background: #E0DDAA;
    color: #141E27;
    font-size: 18px;
    padding-top: 3px;
    font-weight: 550;
    height: 30px;
    border: 2px solid #141E27;
}

.play-again {
    background: #141E27;
    font-size: 25px;
    font-weight: 550;
    color: #E0DDAA;
    padding-top: 60px;
    border: 2px solid #E0DDAA;
    border-radius: 7px;
    height: 150px;
}
.hearts {
    display: flex;
    justify-content: flex-end;
    margin-right: 25px;
    gap: 10px;
    width: 25%;
    height: 20%;
}

.main-game {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    width: 100%;
    height: 50%;
}

.main-game .game-words .word p {
    display: none;
}

.tips {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10%;
}

.tip {
    font-size: 30px;
    color: #141E27;
    opacity: 50%;
    letter-spacing: 10px;
    margin-left: 10px;
}

.game-words, .disabled-words {
    width: 100%;
    height: 30%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    font-size: 18px;
    font-weight: 550;
    gap: 25px;
    align-items: center;
}

.word {
    display: flex;
    justify-content: center;
    border: 2px solid #141E27;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: #141E27;
    background:#E0DDAA;
    align-items: center;
    width: 4%;
    height: 50%;
}

.text {
    width: 30px;
    height: 20px;
    font-size: 20px;
    border: none;
    background: transparent;
    text-align: center;
}

.disabled {
    display: flex;
    justify-content: center;
    border: 2px solid #141E27;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: #141E27;
    background:#EEEDDE;
    opacity: 50%;
    align-items: center;
    width: 4%;
    height: 50%;
}

.game-btn {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 20%;
    gap: 30px;
}

.board {
    display: none;
}

/* Menu Style */

.btn-primary-home, .btn-secondary-home {
    width: 20%;
    height: 8%;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 550;
    transition: 0.5s;
    cursor: pointer;
}

.btn-primary-home {
    background: #203239;
    color: white;
    margin-bottom: 20px;
}

.btn-secondary-home {
    color: black;
    background: transparent;
    border: 2px solid #141E27;
}

.btn-secondary-home:hover, .btn-primary-home:hover {
    box-shadow: 2px 1px 5px #203239;
    transform: scale(1.1);
}

.btn-save, .cancel {
    width: 15%;
    height: 30%;
    border-radius: 10px;
    border: 2px solid #141E27;
    font-size: 16px;
    font-weight: 550;
    cursor: pointer;
    transition: 0.5s;
}

.btn-save {
    background: #141E27;
    color:#EEEDDE;
    margin-right: 50px;
}

.cancel {
    color: #141E27;
}

.btn-save:hover, .cancel:hover {
    transform: scale(1.1);
    box-shadow: 2px 1px 5px #203239;   
}

.cancel:active {
    background: #141E27;
    color: #EEEDDE;
}

.new-game-btn, .give-up-btn {
    width: 20%;
    height: 35%;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 550;
    cursor: pointer;
    transition: 0.5s;
}

.new-game-btn {
    background: #141E27;
    color: #EEEDDE;
}

.give-up-btn {
    background: #E0DDAA;
    color: #141E27;
}

.new-game-btn:hover, .give-up-btn:hover {
    transform: scale(1.1);
    box-shadow: 2px 1px 5px #141E27;
}

/* Layout Style */
.autor {
    font-size: 18px;
    color: #141E27;
    font-weight: 550;
}

.home-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20%;
    margin-bottom: 100px;
}

.main-title {
    color: #141E27;
    font-size: 40px;
}

.input-word, .input-tip {
    width: 40%;
    height: 40%;
    text-align: center;
    background: transparent;
    border-radius: 15px;
    font-size: 30px;
    font-weight: 550;
}

.input-word {
    background: #141E27;
    color: #EEEDDE;
    border: 2px solid #141E27;
    margin-bottom: 10px;
}

.input-tip {
    color: #141E27;
    margin-top: 10px; 
}

/* Media Queries */

@media screen and (max-width: 820px) {
    .btn-primary-home, .btn-secondary-home {
        width: 60%;
        font-size: 30px;
    }

    .autor {
        font-size: 27px;
    }

    .main-title {
        color: #141E27;
        font-size: 50px;
    }

    .networks {
        font-size: 40px;
    }

    .input-word, .input-tip {
        width: 70%;
        height: 40%;
        font-size: 25px;
    }

    .btn-add {
        display: flex;
        flex-flow: column wrap;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }

    .btn-save, .cancel {
        width: 50%;
        height: 40px;
        margin: 0px;
        font-size: 20px;
    }

    .game-words, .disabled-words {
        gap: 10px;
        height: 40%;
    }
    
    .word {
        width: 10%;
        height: 40%;
        font-size: 25px;
    }

    .tips {
        height: 15%;
        align-items: flex-end;
    }

    .tip { 
        font-size: 35px;
    }

    .disabled {
        width: 10%;
        height: 40%;
        font-size: 25px;
    }

    .new-game-btn, .give-up-btn {
        width: 40%;
        height: 50%;
    }

    .game-header {
        width: 100%;
        height: 20%;
        display: flex;
        position: relative;
        justify-content: flex-end;
    }

    .board {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 20%;
    }

    .key-1 {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 30%;
        gap: 20px;
    }

    .key-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 8px;
        height: 30%;
        gap: 20px;
    }

    .key-3 {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 8px;
        width: 100%;
        height: 30%;
    }

    .key {
        width: 50px;
        height: 40px;
        text-align: center;
        border-radius: 10px;
        color: #141E27;
        font-weight: 550;
        font-size: 18px;
        background: #E0DDAA;
        border: 2px solid #141E27;
    }

    .key p{
        pointer-events: none;
    }

    .inactive-key {
        width: 50px;
        height: 40px;
        text-align: center;
        border-radius: 10px;
        color: #141E27;
        font-weight: 550;
        font-size: 18px;
        background: #E0DDAA;
        border: 2px solid #141E27;
    }

    .inactive-key p {
        font-size: 30px;
        color: #141E27;
        text-align: center;
    }

    .main-game {
        display: flex;
        flex-flow: column wrap;
        justify-content: center;
        width: 100%;
        height: 48%;
    }

    .game-btn {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 12%;
        gap: 30px;
    }


}

@media screen and (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .main-title {
        color: #141E27;
        font-size: 40px;
    }

    .btn-primary-home, .btn-secondary-home {
        width: 50%;
        font-size: 18px;
    }

    .autor {
        font-size: 20px;
    }
    
    .networks {
        font-size: 25px;
    }

    .input-word, .input-tip {
        width: 90%;
        height: 40%;
        font-size: 20px;
    }

    .btn-add {
        display: flex;
        flex-flow: column wrap;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }

    .btn-save, .cancel {
        width: 80%;
        height: 30px;
        margin: 0px;
    }

    .victory-card {
        width: 350px;
    }

    .game-words, .disabled-words {
        gap: 5px;
        height: 40%;
    }

    .word {
        width: 15%;
        height: 40%;
    }

    .tips {
        height: 15%;
        align-items: flex-end;
    }

    .tip {
        font-size: 18px;
    }
    
    .disabled {
        width: 10%;
        height: 40%;
    }

    .hearts {
        gap: 5px;
        width: 25%;
        height: 20%;
    }

    .new-game-btn, .give-up-btn {
        width: 40%;
        height: 65%;
    }

    .board {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 25%;
    }

    .key-1 {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 30%;
        gap: 5px;
    }

    .key-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 30%;
        gap: 5px;
    }

    .key-3 {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 8px;
        width: 100%;
        height: 30%;
    }

    .key {
        width: 40px;
        height: 30px;
        text-align: center;
        border-radius: 10px;
        color: #141E27;
        font-weight: 550;
        font-size: 18px;
        background: #E0DDAA;
        border: 2px solid #141E27;
    }

    .key p{
        pointer-events: none;
    }

    .inactive-key {
        width: 50px;
        height: 40px;
        text-align: center;
        border-radius: 10px;
        color: #141E27;
        font-weight: 550;
        font-size: 18px;
        background: #E0DDAA;
        border: 2px solid #141E27;
    }

    .inactive-key p {
        font-size: 30px;
        color: #141E27;
        text-align: center;
    }

    .game-header {
        width: 100%;
        height: 20%;
        display: flex;
        position: relative;
        justify-content: flex-end;
    }

    .main-game {
        display: flex;
        flex-flow: column wrap;
        justify-content: center;
        width: 100%;
        height: 43%;
    }

    .game-btn {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 12%;
        gap: 30px;
    }

}

/* Animations */

@keyframes fadeOut {
    from {
        opacity: 1;
    } 
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
