@font-face {
    font-family: retroGaming;
    src: url(./../fonts/RetroGaming.ttf);
}

:root {
    --mainColor: #b7364f;
    --secondaryColor: #bdbdbd;
    --fontColor: #333;
  }

html, body {
    font-family: retroGaming;
    text-align: center;
    background-color: #f4f4f9;
    color: var(--fontColor);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column !important;
    justify-content: space-between;
}

canvas {
    display: block;
    width: 100vw;
    height: auto;
}

section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    height: auto !important;
}

h1, section h2, .mainColor {
    color: var(--mainColor);
}

.languagesContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup h2 > a {
    color:inherit;
    text-decoration: unset;
}

.initialPage {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    height: inherit;
    justify-content: space-between;
}

.initialPageButtonsContainer {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 250px;
}

.downloadCVButton {
    color: white;
    background-color: var(--fontColor);
    height: 40px;
    padding: 0px
}

.downloadCVButton a{
    display: flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    height: inherit;
    text-decoration: unset;
}

p#welcome-text{
    text-align: justify;
}

header {
    margin-top: 50px;
}

button {
    width: 250px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: retroGaming;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--mainColor);
}

button:hover {	
	box-shadow: 0 5px 16px 0 rgba(0,0,0,0.9);
    transition: all .5s ease;
}

.languageSpainFlag {
    background-image: url('./../../assets/images/initialPage/spainFlag.png'); 
    background-size: contain;
    width: 35px;
    height: 23px;
    background-repeat: no-repeat;
    margin: 0px 5px;
    cursor: pointer;
}

.languageUnitedKingdomFlag {
    background-image: url('./../../assets/images/initialPage/unitedKingdomFlag.png'); 
    background-size: contain;
    width: 35px;
    height: 23px;
    background-repeat: no-repeat;
    margin: 0px 5px;
    cursor: pointer;
}

.selectedLanguage {
    border: 4px solid var(--mainColor);
}

.helpHeader {
    display: flex;
    align-items: flex-end;
    width: 100%;
    margin: auto;
}

.helpHeaderLeft {
    width: 10%;
    background-image: url('./../../assets/images/characters/josemanuel_stand.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 80px;
}

.helpHeaderTitle {
    width: 90%;
    margin-top: 50px;
}

.helpHeaderRight {
    width: 10%;
    background-image: url('./../../assets/images/characters/dama_stand.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 50px;
}

.helpHorizontalSeparator {
    width: 100%;
    border-top: 4px solid var(--secondaryColor);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    margin-top: 0px;
}

.helpSection {
    display: block;
    margin-bottom: 50px;
}

.helpSection > div {
    display: flex;
    width: 100%;
    height: 50px;
}

.buttonsHelp {
    background-image: url('./../../assets/images/initialPage/buttons.png');
    background-size: contain;
    width: 100px;
    margin-right: 20px;
    height: auto;
    background-repeat: no-repeat;
    background-position: center;
}

.helpDescription {
    margin: auto;
    margin-left: 0px;
}

.checkpointsHelp {
    background-image: url('./../../assets/images/initialPage/helpCheckpoint.png');
    background-size: contain;
    width: 100px;
    margin-right: 20px;
    height: auto;
    background-repeat: no-repeat;
    background-position: center;
}

.interactionsHelp {
    background-image: url('./../../assets/images/initialPage/helpClick.png');
    background-size: contain;
    width: 100px;
    margin-right: 20px;
    height: auto;
    background-repeat: no-repeat;
    background-position: center;
}

.footerContainer {
    display: flex;
    padding-bottom: 10px;
    justify-content: space-between;
}

.copyrightContainerFooter {
    display: flex;
}

.copyrightFooter {
    background-image: url('./../../assets/images/initialPage/copyrightLogo.png');
    height: 20px;
    width: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.linkedInFooter {
    background-image: url('./../../assets/images/initialPage/linkedinLogo.png');
    height: 20px;
    width: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.linkedInFooter > a {
    display: block;
    height: 20px;
    width: 20px;
}

.gameArea {
    display: none;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.livesContainer {
    display: flex;
    position: fixed;
    top: 10px;
    left: 4%;
    height: 50px;
}

.livesContainer {
    display: flex;
    position: fixed;
    top: 10px;
    left: 4%;
    height: 50px;
}

.livesContainer > div:first-child {
    background-image: url('./../../assets/images/background/heart.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 40px;
}

.livesContainer div#playerYearsOld {
    margin: auto;
    font-size: 30px;
}

.expContainer {
    display: flex;
    position: fixed;
    top: 10px;
    right: 4%;
    height: 50px;
    margin: auto;
    font-size: 30px;
}


.locked {
    display: none; 
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    bottom: -1000px;
    left: 0;
    right: 0;
    opacity:0;
    transition: opacity 1s; 
    margin: 0px;
}

.locked .popup {
    width: 80%;
    height: auto;
    border: 1px solid;
    background: white;
    position: fixed;
    left: calc(10%);
    top: 100px;
    text-align: center;
    border-radius: 15px;
    padding: 10px;
    overflow:auto;
    max-height: 80%;   
}

.closePopupButton {
    background-image: url('./../../assets/images/sections/closeImage.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}

.popupContainer {
    display: flex;
    height: 100%;
}

.popupLeftSectionBio {
    background-image: url('./../../assets/images/bio/josemanuelPhoto.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
}

.popupLeftSectionBioMobile, .popupLeftSectionDamaMobile {
    display: none;
}

.popupLeftSectionStudies {
    background-image: url('./../../assets/images/sections/ugrLogo.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popupLeftSectionDama {
    background-image: url('./../../assets/images/dama/damaPhoto.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
}

.popupLeftSectionAwards {
    background-image: url('./../../assets/images/awards/joseManuelFirstPlaceFlamingKeyboard.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
}

.popupLeftSectionCareerCivica {
    background-image: url('./../../assets/images/careerCivica/civicaLogo.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popupLeftSectionCareerAreaBinaria {
    background-image: url('./../../assets/images/careerAreaBinaria/areaBinariaLogo.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: center;
    background-color: #83b6e3;
}

.popupLeftSectionCareerEG {
    background-image: url('./../../assets/images/careerEG/egLogo.png');
    width: 30%;
    min-height: 100%;
    border-radius: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popupVerticalSeparator {
    border-left: 4px solid var(--mainColor);
    height: auto;
    margin: 0px 10px;
}

.popupHorizontalSeparator {
    border-top: 4px solid var(--mainColor);
    width: 100%;
    margin: 10px 0px;
}

.popupDetailsVerticalSeparator {
    border-left: 4px solid var(--mainColor);
    height: auto;
    margin: 0px 10px;
}

.popupDetailsHorizontalSeparator {
    border-bottom: 2px solid var(--secondaryColor);
}

.popupRightSection {
    display: block;
    width: 100%;
}

.popupSubtitle {
    border-bottom: 2px solid var(--secondaryColor);
    font-weight: bold;
    position: relative;
}

.popupWorkingYearsRange {
    position: absolute;
    right: 0px;
    top: 0px;
}

.popupText {
    text-align: justify;
}

.popupDetailsContainer {
    display: flex;
    width: 100%;
}

.popupDetailsTitle {
    margin: 10px 0px;
    text-align: left;
}

.popupTechStackAndRolesContainer {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.popupTechStackAndRolesContainer ul, .popupDamaText ul {
    margin-top: 0px;
}

.popupListRow {
    display:flex;
    width: 100%;
}

.popupListRow > li {
    width: 50%;
}

.popupLocationGranada {
    background-image: url('./../../assets/images/careers/granada.png');
    width: 100%;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popupLocationAarhus {
    background-image: url('./../../assets/images/careers/aarhus.png');
    width: 100%;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popupLocationContainer {
    width: 20%;
    display: flex;
    flex-direction: column;
}

.popupTitleAndSubtitle {
    width: 100%;
}

.popupDamaText {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.popupContactText {
    text-align: center;
}

.popupContactContainer {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: auto;
}

.popupContactContainer button {
    width: 300px;
    margin: 50px auto;
}

.popupContactContainer input, .popupContactContainer textarea {
    font-family: 'retroGaming';
}

.popupContactContainer textarea {
    width: 90%;
    margin: auto;
    height: 80px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form > div {
    display:flex;
    width: 100%;
    justify-content: center;
}

input, textarea {
    padding: 10px;
    width: 300px;
    margin: 0 auto;
    border-radius: 5px;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--fontColor);
    color: #fff;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    font-size: 17px;
}

.snackbarContainer {
    display: flex;
    width: 100%;
    justify-content: center;
}
  
#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.popupSubtitleMobile {
    border-bottom: 2px solid var(--secondaryColor);
    font-weight: bold;
    position: relative;
    display: none;
}

.popupVerticalSeparatorMobile, .mobileButtonsContainer {
    display: none;
}

.popupRightSectionContainer {
    display: flex;
    flex-direction: column;
}

.hiddenByPopup {
    display: none !important;
}


@media (max-width: 1024px) {
    button#start-game, .popupContactContainer button {
        width: 100%;
    }

    .locked .popup {
        left: 2%;
        right: 2%;
        width: unset;
    }

    .popupWorkingYearsRange {
        position: unset;
    }

    .popupDetailsContainer {
        flex-direction: column;
    }

    .popupTechStackAndRolesContainer, .popupLocationContainer {
        width: 100%;
        margin: 20px 0px;
    }

    form#contactForm input, div#snackbar {
        width: 90%;
    }

    .popupLeftSectionBio, .popupVerticalSeparator, .popupLeftSectionDama, .popupLeftSectionStudies, .popupLeftSectionAwards,
    .popupLeftSectionCareerAreaBinaria, .popupLeftSectionCareerCivica, .popupLeftSectionCareerEG {
        display: none;
    }

    .popupSubtitle {
        border-bottom: unset;
    }

    .popupVerticalSeparatorMobile {
        border-left: 4px solid var(--mainColor);
        height: auto;
        margin: 10px;
        display: block;
    }

    .popupSubtitleMobile  {
        display: block;
    }

    .popupRightSectionContainer {
        flex-direction: row;
    }

    .popupLeftSectionBioMobile {
        background-image: url('./../../assets/images/bio/josemanuelPhoto.png');
        min-width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
    }

    .popupLeftSectionDamaMobile {
        background-image: url('./../../assets/images/dama/damaPhoto.png');
        min-width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
    }

    .popupLeftSectionStudiesMobile {
        background-image: url('./../../assets/images/sections/ugrLogo.png');
        width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .popupLeftSectionAwardsMobile {
        background-image: url('./../../assets/images/awards/joseManuelFirstPlaceFlamingKeyboard.png');
        width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .popupLeftSectionCareerCivicaMobile {
        background-image: url('./../../assets/images/careerCivica/civicaLogo.png');
        width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .popupLeftSectionCareerAreaBinariaMobile {
        background-image: url('./../../assets/images/careerAreaBinaria/areaBinariaLogo.png');
        width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .popupLeftSectionCareerEGMobile {
        background-image: url('./../../assets/images/careerEG/egLogo.png');
        width: 70px;
        min-height: 100%;
        border-radius: 25px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .initialPageButtonsContainer, .downloadCVButton {
        width: 100%;
        margin-bottom: 20px;
    }

    div#key-up-mobile-button {
        width: 133px;
        height: 100px;
        background-color: var(--fontColor);
        background-image: url('./../../assets/images/mobile/arrow_up.png');
        margin: 5px;
        border-radius: 10px;
        position: fixed;
        display: flex;
        bottom: 115px;
        left: calc(50% - 66px);
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto;
        opacity: 0.6;
    }

    div#key-down-mobile-button {
        width: 133px;
        height: 100px;
        background-color: var(--fontColor);
        background-image: url('./../../assets/images/mobile/arrow_down.png');
        margin: 5px;
        border-radius: 10px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto;
        opacity: 0.6;
    }

    div#key-right-mobile-button {
        width: 133px;
        height: 100px;
        background-color: var(--fontColor);
        background-image: url('./../../assets/images/mobile/arrow_right.png');
        margin: 5px;
        border-radius: 10px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto;
        opacity: 0.6;
    }

    div#key-left-mobile-button {
        width: 133px;
        height: 100px;
        background-color: var(--fontColor);
        background-image: url('./../../assets/images/mobile/arrow_left.png');
        margin: 5px;
        border-radius: 10px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto;
        opacity: 0.6;
    }

    .mobileButtonsContainer {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        position: fixed;
        bottom: 5px;
        left: 5px;
    }

    .buttonsHelp {
        background-image: url('./../../assets/images/initialPage/buttonsMobile.png');
    }
}