* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0px;
}

body {
    background: url(fondo.jpg);
    background-size: cover;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.imgLogo {
    width: 100px;
}

.imgLogoContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

#firstContainer {
    display: flex;
    align-items: center;
}

.couple {
    width: 70%;
    border-radius: 15px;
}

.imageContainer {
    text-align: center;
    display: none;
}

.textContainer {
    display: flex;
    flex-direction: column;
}

.buttonStart {
    font-family: Lucida Console;
    font-size: 20px;
    color: #caf0f8;
    background-color: #e93c3c;
    border-radius: 20px;
    padding: 15px 30px;
    border: 0px;
    cursor: pointer;
}

.buttonContainer {
    text-align: center;
    padding: 15px;
}

.firstScreen {
    height: 100vh;
    justify-content: center;
    display: flex;
    align-items: center;
}

.fourthScreen,
.fifthScreen {
    height: 100vh;
}

.primerParrafo {
    font-family: Candara;
    font-size: 20px;
    text-align: center;
    padding: 15px;
    font-weight: bold;
}

.texth5 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    text-align: center;
    color: #b7094c;
    padding: 15px;
    font-weight: 700;
}

.sectionInstruction {
    padding-bottom: 20px;
}

.segundoParrafo {
    padding: 15px 0px 0px 15px;
    font-weight: 700;
}

.buttonsFirstScreen {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
}

.decode,
.code,
.codify {
    background: #b8375b;
    color: #caf0f8;
    border: #caf0f8;
    border-radius: 5px;
    padding: 8px 15px;
}

.textToCode,
.textToDecode,
.codedText,
.decodedText {
    width: 70%;
    height: 150px;
    background: #e8e8e4;
    text-align: center;
    padding: 6px;
    border-radius: 5px;
}

.textSecondScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttonSecondScreen,
.buttonThirdScreen {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.buttonSecondScreen>input,
.buttonThirdScreen>input {
    margin: 10px;
}

.desplazamiento {
    width: 120px;
    border-radius: 5px;
    padding: 3px;
}

.buttonSection {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.clean,
.back {
    background: #a7415e;
    color: #caf0f8;
    border: #caf0f8;
    border-radius: 5px;
    padding: 5px 15px;
    width: 120px;
}

.codeTextSection {
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

/*navBar*/
.open-menu {
    display: none;
}

.root {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #edede8;
    ;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 20px;
    padding: 10px;
}

.nav-list a {
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 600;
}

.nav ul {
    margin: 0;
}

.title {
    color: #f10909;
    font-family: garamond;
    margin: 0;
}

.close-menu {
    display: none;
}

/* --- */

.titleh1 {
    color: #c81d25;
    font-size: 40px;
    text-align: center;
    font-family: Brush Script MT;
}

.thirdScreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h3,
h2 {
    text-align: center;
    padding: 10px;
}

.secondScreen,
.fourthScreen,
.fifthScreen {
    position: relative;
    flex-direction: column;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #edede8;
    height: 6%;
    margin-top: 1rem;
}

footer>p {
    margin: 0px;
}

@media (max-width: 630px) {
    .open-menu {
        display: flex;
        margin: 10px;
    }
    .nav {
        opacity: 0;
        visibility: hidden;
    }
    .nav {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #edede8;
        padding: 20px;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 15px
    }
    .nav.visible {
        opacity: 1;
        visibility: visible;
        z-index: 100;
    }
    .nav-list {
        flex-direction: column;
        align-items: end;
    }
    .close-menu {
        display: flex;
        padding: 0px 15px;
    }
    .bi-list {
        width: 30px;
        height: 30px;
    }
    .close-wrapper {
        width: 100%;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 60px;
    }
    .imageContainer {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .logoInstruction {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    .imgLogo {
        width: 150px;
    }
    .buttonsFirstScreen {
        padding-top: 50px;
    }
    .code,
    .decode {
        font-size: 20px;
    }
    .textSecondScreen {
        flex-direction: row;
    }
    .sectionAll {
        display: flex;
        flex-direction: column;
        align-content: center;
        height: 60%;
        justify-content: space-evenly;
    }
    footer {
        height: 10%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .sectionInstruction {
        font-size: 22px;
    }
    h3 {
        font-size: 35px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    h1 {
        font-size: 80px;
    }
    .primerParrafo, h5, .buttonStart  {
        font-size: 30px;
    }
}