/*  Custom CSS for Blockchain Demo  */

#block-page-container {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    font-size: 14px; /* sets size for em */
    overflow: hidden;
    margin: 2em 0;
    padding: 0;
}

#block-cards-container {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  resize: none;
  overflow: hidden;
}

.block-card {
    display: inline-block;
    position: relative;
    width: 14em;
    height: 14em;  
}

.block-card.block-valid {
    background-image: url("../img/block1.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.block-card.block-invalid {
    background-image: url("../img/block2.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.block-content {
    display: block;
    position: relative;
    color: white;
}

#block1, #block2, #block3, #block4 {
   margin: .2em; 
}

.block-header {
    position: relative;
    width: 100%;
    left: -.3em;
    top: .9em;
    text-align: center;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0;
}

.block-description {
    font-size: .9em;
}

#block-input {
    font-size: .75em;
    background-color: transparent;
    border: none;
    resize: none;
}

.previous-hash input {
    width: 17em;
    position: relative;
    left: 0em;
    top: 3.8em;
    color: white;
    text-align: center;
    overflow: hidden;
}

.block-data textarea {
    width: 16em;
    height: 4.1em;
    position: relative;
    left: -.4em;
    top: 6em;
    padding: .3em;
    text-align: left;
    overflow: hidden;
    color: white;
}

.this-hash input {
    width: 17em;
    position: relative;
    left: 0em;
    top: 8em;
    color: white;
    text-align: center;
    overflow: hidden;
}

#block2-this-hash input {
    top: 8 em; /* adjustment for live input box */
}

#key-trigger {
    background-color: white;
    color: black;
    font-family: sans-serif;
    font-size: 11px;  /* fix for IE */
    width: 15em;
    height: 3.6em;
    left: -.4em;
    top: 5.7em;
    overflow: hidden;
    resize: none;
    outline-width: 0;
    box-shadow: none;
    margin: 0;
    padding: .3em;
}

/*  ----- Media Queries -----  */
/*  -------------------------  */
/*  ---------- xs -----------  */

@media (max-width: 576px) {
    
    #block-page-container {
        font-size: 10px;  /* sets size for em */
    }
    
    #block-cards-container {
        width: 100%;
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    
    #block1, #block2, #block3, #block4 {
        margin: .2em; 
    }
    
    .block-data textarea {
        width: 17em;
        height: 4em;
        position: relative;
        left: -.3em;
        top: 5.8em;
        padding: .3em;
        text-align: left;
        overflow: hidden;
        color: white;
    }
    
    #key-trigger {
        font-size: 7.3px;
        width: 17em;
        left: -.3em;
        top: 6.1em;
    }
    
    #block2-this-hash input {
        top: 8.2em; /* 7.5em adjustment for live input box */
    }
    
}

