* {
	padding: 0;
	margin: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	outline: none;
	font-family: "Rubik", sans-serif;
}
body {
	background-color: #212121;

}
#loader {
	width: 350px;
	height: 350px;
	background-color: #ffffff;
	position: absolute;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	border-radius: 10px;
	-webkit-box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
	box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
	display: -ms-grid;
	display: grid;
	place-items: center;
}
#loader div {
	height: 100px;
	width: 100px;
	border: 15px solid #d5d5d5;
	border-top-color: #575ce5;
	border-radius: 50%;
	-webkit-animation: spin 1s infinite;
	animation: spin 1s infinite;
}
@-webkit-keyframes spin {
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
@keyframes spin {
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
#wrapper {
	
	position: absolute;
	width: 500px;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	display: none;
	z-index: 1;
	transition: opacity 0.5s, visibility 0.5s;
	
}
.container {
	background-color: #ffffff;
	width: 100%;
	padding: 30px 25px;
	border-radius: 10px;
	-webkit-box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
	box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
	-webkit-perspective: 300px;
	perspective: 300px;
	
}

.stats {
	text-align: right;
	color: #101020;
	font-weight: 500;
	line-height: 25px;
}
.coin {
	height: 250px;
	width: 250px;
	position: relative;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	position: relative;
	margin: 50px auto;
	
}
.coin img {
	width: 245px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 50%;
}
.heads,
.tails {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 50%;
}
.tails {
	-webkit-transform: rotateX(180deg);
	transform: rotateX(180deg);
}
@-webkit-keyframes spin-tails {
	0% {
		-webkit-transform: rotateX(0);
		transform: rotateX(0);
	}
	100% {
		-webkit-transform: rotateX(1980deg);
		transform: rotateX(1980deg);
	}
}
@keyframes spin-tails {
	0% {
		-webkit-transform: rotateX(0);
		transform: rotateX(0);
	}
	100% {
		-webkit-transform: rotateX(1980deg);
		transform: rotateX(1980deg);
	}
}
@-webkit-keyframes spin-heads {
	0% {
		-webkit-transform: rotateX(0);
		transform: rotateX(0);
	}
	100% {
		-webkit-transform: rotateX(2160deg);
		transform: rotateX(2160deg);
	}
}
@keyframes spin-heads {
	0% {
		-webkit-transform: rotateX(0);
		transform: rotateX(0);
	}
	100% {
		-webkit-transform: rotateX(2160deg);
		transform: rotateX(2160deg);
	}
}
.buttons {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}
button {
	width: 100px;
	padding: 10px 0;
	border: 2.5px solid #424ae0;
	border-radius: 5px;
	cursor: pointer;
}
#flip-button {
	background-color: #424ae0;
	color: #ffffff;
}
#flip-button:disabled {
	background-color: #e1e0ee;
	border-color: #e1e0ee;
	color: #101020;
}
#reset-button {
	background-color: #ffffff;
	color: #424ae0;
}
a {
	display: block;
	margin-top: 30px;
	padding: 15px 0;
	background-color: #ffffff;
	color: #575ce5;
	text-align: center;
	text-decoration: none;
	font-weight: 500;
	border-radius: 5px;
	-webkit-box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
	box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
}

a img {
    /* Reset styles for images inside links */
    display: inline; /* or 'inline-block', depending on your needs */
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    color: inherit; /* Inherits color from parent elements */
    text-align: inherit; /* Inherits text-align from parent elements */
    text-decoration: none;
    font-weight: inherit; /* Inherits font-weight from parent elements */
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

a:has(> img) {
    /* Reset styles for links that directly contain an image */
    display: inline-block; /* or 'block', depending on your needs */
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.fab {
	color: #ff0000;
}

#close-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #2f2d2d;
    color: white;
    text-align: center;
    font-size: 15px;
    line-height: 0px;
    cursor: pointer;
    z-index: 4; 
    opacity: 0; /* Start with button invisible */
    visibility: hidden; /* Start with button not visible */
    transition: opacity 0.5s, visibility 0.5s; /* Add transition */
}

.cards-list {
	transition: opacity 0.5s ease, z-index 0s linear 0.5s;
    z-index: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    opacity: 0.1; /* 50% Opacity */
    pointer-events: none; /* Makes it non-interactive */
	position: relative;
}
  .card {
	margin: 10px auto;
	width: 300px;
	height: 300px;
	border-radius: 20px;
  box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
	cursor: pointer;
	transition: 0.4s;
  }

  .card-link {
    display: inline; /* or 'inline-block', depending on your needs */
    margin: auto;
    padding: 0;
    background-color: transparent;
    color: inherit; /* Inherits color from parent elements */
    text-align: inherit; /* Inherits text-align from parent elements */
    text-decoration: none;
    font-weight: inherit; /* Inherits font-weight from parent elements */
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}
  
  .card .card_image {
	width: inherit;
	height: inherit;
	border-radius: 20px;
    object-fit: cover;
    object-position: center; /* Center the image */
  }
  
  .card .card_image img {
	width: inherit;
	height: inherit;
	border-radius: 20px;
	object-fit: cover;
  }
  
  .card .card_title {
    text-align: center;
    border-radius: 0px 0px 20px 20px;
    font-family: sans-serif;
    font-weight: regular;
    font-size: 18px;
    margin-top: -60px;
	padding-bottom: 25px;
    height: 40px;
    opacity: 0; /* Make title initially invisible */
    transition: opacity 0.4s ease-in-out; /* Smooth transition for opacity */
}

.card:hover .card_title {
    opacity: 1; /* Make title visible on hover */
}
  
  .card:hover {
	transform: scale(0.9, 0.9);
	box-shadow: 5px 5px 30px 15px rgba(0,0,0,0.25), 
	  -5px -5px 30px 15px rgba(0,0,0,0.22);
  }
  
  .title-white {
	color: white;
  }
  
  .title-black {
	color: black;
  }
  
  @media all and (max-width: 500px) {
	.card-list {
	  /* On small screens, we are no longer using row direction but column */
	  flex-direction: column;
	}
  }
  
  @media only screen and (max-width: 480px) {
    #wrapper {
		width: 320px;
	}
}