
@font-face {
    font-family: 'superclarendonx';
    src: url('../images/superclarendonx.otf') format('truetype');
}

html {
    font-size: 12px;
}

body {
    background-color: #000;
    color: #fff;
}

* {
    box-sizing: content-box;
}

#alamo-app {
    margin: 4rem auto;
    font-size: 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    width: 100rem;
    height: 56rem;
    display: block;
    position: relative;
    font-family: superclarendonx;

    border: solid 1px #222;
}

img, div {
    display: block;
    position: relative;
}

.sprite {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.sprite img {
    position: absolute;
    height: 100%;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    height: 0;
    left: 0;
    top: 0;
}

.layer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hide {
    display: none;
}

.font-load {
    display: none;
    font-family: ScienceFair;
}


img {
    pointer-events: none;
}

* {
    user-select: none;
}

.popup {
    position: absolute;
    background-color: #000;
    border: solid 0.4rem #081b4f;
    border-radius: 0.8rem;
    height: 40rem;
    width: 60rem;
    top: 10rem;
    left: 20rem;
    display: none;
    box-shadow: 0 0 10rem #000;
}


/*-----------------------*/


#layer-cards {
    top: 7rem;
    left: 82rem;
    width: 16rem;
}


#ui-turn {
    position: absolute;
    right: 2rem;
    bottom: 2.5rem;
    color: #222;
    font-size: 80%;
    text-align: center;
    width: 16rem;
}

#ui-pick-3 {
    position: absolute;
    right: 2.5rem;
    top: 1.5rem;
    color: #eee;
    font-size: 90%;
    box-shadow: 0 0 10px rgba(64, 37, 9, 1);
    background-color: rgba(64, 37, 9, 0.4);
    padding: 1rem 0;
    width: 15.3rem;
    text-align: center;

}


#layer-tex {

}


.tex {
    width: 3.5rem;
    position: absolute;
    display: none;
}

.tex.alive {
    display: block;
}




.mex-army {
    position: absolute;
    width: 28rem;
    height: 30rem;
    text-align: center;
    display: flex;
}

.mex-army img {
    width: 1.9rem;
    height: 3.8rem;
    display: inline-block;
}


.mex-army.dir-l  {
    top: 14rem;
    left: 2rem;
    width: 9rem;

    flex-flow: column wrap;
    align-items: center;
    justify-content: center;

}

.mex-army.dir-r {
    top: 13rem;
    left: 70rem;
    width: 9rem;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;

}

.mex-army.dir-u {
    top: 0rem;
    left: 17rem;
    height: 9rem;
    width: 40rem;
    align-items: center;
    justify-content: center;
}

.mex-army.dir-d {
    top: 48rem;
    left: 20rem;
    height: 8rem;
    width: 40rem;
    align-items: center;
    justify-content: center;
}




.mex-army.dir-l img, .mex-army.dir-r img {
    margin-right: -0.5rem;
    margin-bottom: -1.5rem;
}

.mex-army.dir-u img, .mex-army.dir-d img {
    align-items: center;
    margin-right: -0.25rem;
    margin-bottom: 0rem;
}

.mex-army.dir-l img:nth-child(5n),
.mex-army.dir-r img:nth-child(5n) {
    margin-bottom: 1rem;
}

.mex-army.dir-u img:nth-child(5n),
.mex-army.dir-d img:nth-child(5n) {
    margin-right: 1rem;
}



.card {
    width: 16rem;
    height: 8rem;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border-bottom: solid 2px #666;
    transition: all 200ms;
}

.card:hover {
    box-shadow: 0 0 0.75rem rgb(0,0,0, 0.5);
    cursor: pointer;
}

.card.used {
    opacity: 0.3;
}

.card.used:hover {
    box-shadow: none;
    cursor: default;
}

.full-img img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}



.info-button {
    background-color: #229;
    color: #fff;
    padding: 1.2rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    margin-bottom: 0.4rem;
    border-radius: 0.8rem;
}


.icon-factory {
    top: 3rem;
    left: -0.5rem;
}

.icon-spy {
    top: -1rem;
    left: -0.5rem;
}

#layer-ui {
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

#layer-chars .sprite {
    cursor: pointer;
}

.char-crockett {
    top: 24rem;
    left: 51rem;
}

.char-travis {
    top: 30rem;
    left: 20rem;
}

.char-bowie, .char-bowie.dir-u {
    top: 13.5rem;
    left: 39rem;
}

.char-bowie.dir-r {
    top: 34rem;
    left: 55rem;
}
.char-bowie.dir-d {
    top: 35rem;
    left: 36rem;
}
.char-bowie.dir-l {
    top: 25rem;
    left: 20rem;
}

.char-bigcannon {
    top: 35.5rem;
    left: 46.6rem;
}

.char-travis img { left: -100%; }
.char-bowie img { left: -200%; }
.char-bigcannon img { left: -300%; }



#instructions {
    margin: 4rem auto;
    width: 100rem;
    box-sizing: border-box;
    padding: 1rem 4rem;
    line-height: 1.6;
    font-family: superclarendonx;
    color: #eee;
    font-size: 18px;
}

h2 {
    margin-top: 3rem;
    color: #dfa53c;
}

#splash {
    position: absolute;
    z-index: 10;
    width: 36rem;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    pointer-events: all;
}

.win-lose {
    position: absolute;
    z-index: 100;
    top: 16rem;
    left: 20rem;
    width: 40rem;
    height: 24rem;
    border-radius: 2rem;
    overflow: hidden;
}

.win-lose img {
    width: 100%;
}

#win, #lose {
    display: none;
}



