*{
    font-family: "Montserrat", serif;
}

:root {
  --background-color: #f5f6f8;
  --header-footer-bg: #ffffff;
  --header-shadow: rgba(0, 0, 0, 0.08);
  --text-color: #000000;
  --button-theme-color: #0077FF;
  --button-theme-border: #cbcbcb;
  --button-search-color: #5181B8;
  --card-background: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.35);
  --link-color: #3c4247;
  --link-hover: #0057b8;
  --table-border: #e7e8ec;
  --table-shadow: transparent;
}

body.black {
	--background-color: #292929;
	--header-footer-bg: #313131;
	--header-shadow: #3d3d3d;
	--text-color: #E0E1DD;
	--button-theme-color: #616161;
	--button-theme-border: #cbcbcb;
	--button-search-color: #616161;
	--card-background: #3f3f3f;
	--card-shadow: #c5c5c5;
	--link-color: #E0E1DD;
	--link-hover: #D0D0D0;
	--table-border: #b7b7b7;
	--table-shadow: #b7b7b7;
}

body {
    font-family: "Montserrat", serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body .mainheroes{
	padding: 20px;
}

header {
    background-color: var(--header-footer-bg);
    color: white;
    padding: 10px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 3px var(--header-shadow);
    position: relative;
}

nav ul {
	list-style-type: none;
	padding: 0;
	text-align: center;
}

nav ul li {
	display: inline;
	margin: 0 15px;
}

nav ul li a {
	color: white;
	text-decoration: none;
}

body.black nav ul li a {
	color: white;
	text-decoration: none;
}

nav a:hover {
	text-decoration: underline;
	text-decoration-color: var(--link-hover);
}

.findermatch {
	display: flex;
	text-align: center;
	justify-items: center;
	flex-direction: column;
}

.fetchMatchbtn {
	width: 150px;
	height: 50px;
	margin: 10px auto;
	display: block;
	font-size: 16px;
	font-weight: bolder;
	box-shadow: 2px 2px 5px var(--card-shadow);
}

.match-info {
	text-align: center;
}

.match-info{
    text-align: center;
}

button.btn-theme {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  border: 2px solid var(--button-theme-border);
  border-radius: 30px;
  height: 50px;
  width: 50px;
}

button img {
    height: 30px;
    width: 30px;
    margin: 0;
    filter: invert();
}

button.metaButton{
    font-family: "Montserrat", serif;
    display: block; 
    margin: 0 auto;
    width: 150px;
    height: 50px;
    text-align: center;
    background-color: var(--button-theme-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
	box-shadow: 2px 2px 5px var(--card-shadow);
}

button.metaButton:hover{
    background-color: var(--button-search-color);
}

a {
    text-decoration: none;
    font-family: "Montserrat", serif;
    font-size: 20px;
    font-weight: bolder;
    color: black;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #6b00c8;
}

input[type="text"] {
    width: 300px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 2px solid #b7b7b7;
    border-radius: 20px;
    text-align: center;
    font-size: 16px;
}

.hidden{
    display: none;
}

#results {
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    flex-direction: row;
    display: flex;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 1px 1px 20px #b6b6b6;
}

th, td {
    border: none;
    overflow: hidden;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
}

th {
    font-family: "Montserrat", serif;
    background: rgba(255, 255, 255, 0.5);
    color: black;
    text-align: center;
}

tbody {
    color: black;
}

tr:hover {
    background-color: rgba(220, 220, 220, 0.2); 

}

td:hover {
    background-color: rgba(160, 160, 160, 0.2); 
}

.results-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
    transition: filter 0.5s;
}

.results-container.blur {
    filter: blur(5px);
    transition: filter 0.5s;
}

#results_heroes {
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    flex-direction: row;
    display: flex;
}

.results-container.blur {
    filter: blur(5px);
    transition: filter 0.5s;
}

.card {
	color: var(--text-color);
	margin: 5px 70px;
	display: flex;
	background-color: var(--card-background);
	border-radius: 20px;
	padding: 15px;
	width: 250px;
	height: 300px;
	text-align: center;
	transition: transform 0.2s;
	box-shadow: 2px 2px 5px var(--card-shadow);
}

.card.blur {
	filter: blur(5px);
}

.card:hover {
	transform: scale(1.05);
	filter: none;
	box-shadow: 7px 7px 7px var(--card-shadow);
}

.card img {
	margin-bottom: 50px;
}

.card h3 a img {
	margin: 10px 0;
}

.card a {
	text-decoration: none;
	color: var(--link-color);
}

.card a:hover {
	text-decoration: underline;
}

.hero-icon {
    width: 120px;
    height: auto;
    margin: 5px;
    border-radius: 15px;
}

.hero-atr {
    width: 35px;
    height: 35px;
    margin: 5px;
}

footer {
    background-color: var(--header-footer-bg);
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    height: 80px;
    display: inline-block;
    box-shadow: 0px -2px 3px var(--header-shadow);
    position: relative;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1500px;
	width: 100%;
	height: 100%; 
	margin: 0 auto;
	padding: 0 20px;
}

.copyright a{
    color: white;
}

.copyright {
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.company-name a{
    color: white;
}

.company-name {
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.copyright a,
.company-name a,
.contacts a {
    color: var(--text-color);
    text-decoration: none;
}

.contacts {
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 20px;
}

.hero-description {
    max-width: 100%; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image p {
    max-width: 100%;
    font-size: 18px;
    text-align: center;
}

.hero-container img {
    max-width: 100%; 
    height: auto;
    display: block; 
    margin: 0 auto;
    border-radius: 20px;
}

h2.hero-name {
    text-align: center;
    margin-bottom: 20px;
}

.hero-container p {
    display: flex;
    flex-direction: column;
    width: 60%;
    text-align: center; 
}