@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,700);

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*END CSS RESET*/
* {
    box-sizing: border-box;
}

body {
    background: #eee;
    color: #222;
    font-family: 'Roboto', sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

div {
    font-size: 20px;
}

.links div {
    float: left;
    margin-top: 1em;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 1em 0;
}

h2{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.25em;
}

h3{
    font-size: 20px;
    font-weight: 100;
}

a {
    color: #222;
    transition: all 0.5s;
}

a:hover {
    opacity: 0.8;
}


/*Full link*/

.links > div:nth-child(odd) {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*Short link*/

.links > div:nth-child(even) {
    width: 30%;
    text-align: right;
    transition: all 0.5s;
    text-decoration: underline;
}

.links > div:nth-child(even):hover {
    opacity: 0.8;
    cursor: pointer;
}

img{
    vertical-align: middle;
    padding-left: 1em;
}

input, textarea{
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0.5em;
    font: inherit;
    width: 47.5%;
}

.right {
    float: right;
}

.delete {
    margin-top: 1em;
    width: 100%;
}

input[type="submit"] {
    display: none;
}

input[type="submit"]:hover {
    background-color: #333;
}

.hidden {
    display: none;
}

#flash, .edit-box{
    background: #222;
    color: #eee;
    box-shadow: 0px 0px 30px black;
    width: 100%;
    position: fixed;
    padding: 1em;
}

#flash {
    z-index: 3;
    text-align: center;
    top: 0%;
}

.edit-box{
    z-index: 2;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

textarea{
    resize: none;
}

.edit-box input, .edit-box textarea{
    width: 100%;
    margin-bottom: 1em;
}

button{
    float: left;
    width: 30%;
    padding: 1em;
    font: inherit;
    color: #eee;
    background: none;
    border: 1px solid #eee;
    transition: all 0.25s;
}

button:hover{
    cursor: pointer;
    background: rgba(236, 236, 236, .3);
}

#delete-button{
    border-color: #c0392b;
}

#delete-button:hover{
    background: rgba(192, 57, 43, .3);
}

#cancel-button{
    margin: 0 5%;
}

.link:hover > .card{
    display: block;
    position: fixed;
    left: 50vw;
    width: 400px;
}

.card{
    display: none;
    background: #fff;
    box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

.card img{
    width: 100%;
    padding: 0;
}

.card-text{
    width: 100%;
    padding: 0 1em 1em;
}

.card h1{
    overflow: hidden;
    text-align: left;
    font-size: 24px;
    margin: 0;
    text-overflow: ellipsis;
}
.card p{
    overflow: hidden;
    padding-top: 4px;
    font-size: 16px;
    text-overflow: ellipsis;
}