html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;

    font-family: 'Roboto', sans-serif;

    background: no-repeat center center fixed;
    background-size: cover;

    /* avoids subpixel vertical alignment of #punch */
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

h3 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #6D33EE;
}

body>main {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.hide {
    display: none;
}

.message {
    color: #DC0000;
    text-align: center;
}

a {
    color: #6D33EE;
}

/* Components */

button {
    border: none;
    border-radius: 2px;
    font-size: 16px;
    outline: 0;
    padding: 0.5rem 2rem;

    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    color: white;
    background-color: #6D33EE;
}

button:hover {
    background-color: #b7a3e4;
    color: #6D33EE;
}

button:disabled {
    background-color: #b7a3e4;
    color: white;
}

form input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    border-radius: 0;
    outline: none;
    height: 3rem;
    width: 100%;
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding: 0;
    box-shadow: none;
    box-sizing: content-box;
    transition: all .3s;

    font-family: 'Roboto', sans-serif;
}

form input:focus {
    border-bottom: 1px solid #6D33EE;
    box-shadow: 0 1px 0 0 #6D33EE;
}

form button:focus {
    box-shadow: 0 1px 0 1px lightgray;
}

form input::placeholder {
    color: #2F008C;
}

form button {
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding: 0;
    width: 100%;
    height: 3rem;
    box-sizing: content-box;
    transition: all .3s;
}

.frm {
    width: 310px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(255,255,255,0.9);
    padding: 5px 30px;
}

.frm.big-margin-up {
    margin-top: 3em;
}

/* upload widget */
.upload {
}

.upload input[type="file"] {
    display: none;
}

.upload button {
    display: inline-block;
    width: auto;
    padding: 0 20px;
    margin-right: 10px;
}

.upload .file-path {
    display: inline-block;
}

.progress {
    height: 5px;
    width: 100%;
    background-color: #b7a3e4;
    margin: 15px 0;
}

.progress .bar {
    height: 100%;
    width: 30%;
    background-color: #6D33EE;
    transition: all .2s;
}

#frm-main {
    transition-duration: .3s;
}

body.dragover #frm-main {
    background-color: rgba(200,200,200,0.3);
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
}

/* --- */

h1#punch {
    margin: 0;
    padding: 0 10%;

    font-size: 42px;
    font-size: 4vmax;
    font-weight: normal;
    text-align: center;
    color: white;
}


footer img {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 10px;
    z-index: -1;
}

#btn-google-container {
    margin-top: 20px;
    text-align: center;
}

#btn-google-container.disabled {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

#btn-google-container .g_id_signin {
    display: inline-block;
}

p.note {
    color: #2F008C;
}

div.url {
    font-size: 1.2rem;
    color: #6D33EE;
    display: inline-block;
}

span.filename {
    color: #2F008C;
    font-size: 1.2rem;
}

span.docname {
    color: #6D33EE;
}

span.ellipsis {
    /* overflow ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
}

p.with-filename {
    color: #66538B;
    line-height: 1.2rem;
}

a.download {
    margin-top: 25px;
    display: block;
    text-align: center;
    text-decoration: none;

    border: none;
    border-radius: 2px;

    font-size: 16px;
    outline: 0;
    padding: 0.5rem 2rem;

    text-transform: uppercase;
    color: white;
    background-color: #6D33EE;
}

a.download:hover {
    background-color: #b7a3e4;
    color: #6D33EE;

}

a.raw {
    /*display: block;*/
    text-align: center;
    font-size: 0.9rem;
    color: grey;
}

#link-copy {
    background-color: transparent;
    background-image: url(../images/copy.png);
    width: 14px;
    height: 16px;
    padding: 0;
    margin-left: 5px;
}

#link-copy:hover {
    opacity: 0.5;
}

#link-copy span {
    display: none;
}

/* after download animation */

.bar.waiting {
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.5),
      rgba(255,255,255,0.5) 11px,
      rgba(0,0,0,0) 10px,
      rgba(0,0,0,0) 20px /* determines size */
    );
  background-size: 28px 28px;
  animation: move .5s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 28px 0;
  }
}

/**** messages ****/

.pop-message {
    box-sizing: border-box;
    position: fixed;
    width: 400px;
    max-width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background-color: #0174B5;
    color: white;
    z-index: 99;
    font-size: 18px;
    text-align: center;
    border-radius: 2px;
}

.pop-message-cover {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 98;
}

.pop-message.error {
    background-color: #820606;
}
.pop-message.success {
    background-color: #01B57E;
}
.pop-message.warning {
    background-color: #B58301;
}

.pop-message h1 {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: normal;
}

.pop-message .pop-btns {
    text-align: center;
}

.pop-message button {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 0;
    width: 125px;
    font-size: 16px;
    background-color: #428BCA;
    color: white;
    border: none;
    transition-duration: .2s;
    outline: none;
}

.pop-message button:hover {
    color: lightgrey;
}


.pop-message button:focus {
    border: 2px solid rgba(255,255,255,0.5);
}

.pop-message.error button {
    background-color: #a21d1d;
}
.pop-message.success button {
    background-color: #42CA96;
}
.pop-message.warning button {
    background-color: #CA9A42;
}

.pop-message button:hover {
    background-color: rgba(1,0,1,0.5);
}
