*, *::before, *::after {
    /* box-sizing: border-box; */
}

body {
    margin: 0;
    font: 1rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    /* Places underlines below the descenders */
    text-underline-position: under;


    /* Sets the thickness as a percentage of the font size */
    text-decoration-thickness: 8;
}

/* This needs to be cleaned up so there aren't any conflicts in the future */
.row {
    display: flex;
}

#decks {
    display: flex;
}

.deck {
    display: inline;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

#buttons {
    display: block;
}

#buttons button {
    display: block;
}

.deck label {
    display: block;
    margin-bottom: 0.5rem;
}

.mtgcard {
    position:relative;
    width: 150px;
    margin-bottom:-187px;
}

.mtgcard:hover {
    z-index: 1000;
}

/*navigation bar CSS Starts*/
/* #nav-placeholder {
	z-index: 1;
	position: sticky;
	top: 0;
}
nav {
	height: 48px;
	background-color: rgba(0,0,0, 0.8);
}
nav ul {
	list-style-type: none;
	margin: auto;
	padding: 0;
	width: 70%;
}
nav li {
	font-size: 16px;
	float: left;
	padding-top: 3px;
}*/
/* nav a {
	color: #fff;
	text-align: center;
	padding: 14px 16px;
    text-decoration: none;
	text-align: center
	line-height: 30px;
	transition: opacity 250ms;
} */
nav a:hover {
	opacity: 0.8;
}
nav img {
	height: 30px;
	vertical-align: top;
}

/* Navbar container */
nav {
    width: 100%;
    overflow: hidden;
    background-color: #333;
    font-family: Arial;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
}
  
  /* Links inside the navbar */
nav a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    line-height: 30px;
}
  
/* The dropdown container */
.dropdown {
    float: left;
    /* overflow: hidden; */
}
  
/* Dropdown button */
.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    /* padding: 14px 16px; */
    /* line-height: 30px; */
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
}
  
/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
  
/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
  
/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}
  
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/*Navigation Bar CSS Ends*/
/* from tips-plus.github.io */

.container {
    margin: 0 auto;
    width: 100%;
    padding: 16px;
}

nav .container {
    padding: 0;
}

.footer {
    width: 100%;
    padding: 16px;
    background-color: #eee; 
}
nav button {
    padding: 0;
}

/* For extremely small screen devices (595px and below) */
@media only screen and (max-width: 595px) {
    .container {
        width: 100%;
    }
}

/* Medium screen devices (768px and above) */
@media only screen and (min-width: 768px) {
    .container {
        width: 720px;
    }
}

/* Big screen devices (889px and above) */
@media only screen and (min-width: 889px) {
    .container {
        width: 840px;
    }
}

/* Make embedded videos responsive */
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background-color: #000;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0px;
}

/* Sticky footer */
/* FIXME: not sticky */
/* html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
body .container {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}
nav {
    flex-shrink: 0;
} */
/* End sticky footer */

.card {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 8px;
}

.card h2, .card p {
    margin: 0;
    background-color: #eee;
    padding: 0.5rem;
}

.shadow {
    box-shadow: #333 0 0 10px;
}

.hovershadow {
    transition: box-shadow 0.2s ease-in-out;
}
.hovershadow:hover {
    box-shadow: #333 0 0 10px;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
}

textarea:focus {
    outline: none;
}

.card textarea {
    height: 100%;
}

button {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    background-color: #eee;
    cursor: pointer;
    width: fit-content;
}

/* Thumbnail generator */

#thumbnail {
    margin: auto !important;
}