:root {
	--app-height: 100%;
	--main-font: "Quicksand", sans-serif;
	--glow-color: rgba(255, 255, 255, 0.5);
	--glow-font-color: rgba(255,255,255,0.5);
	--glow-font-color-final: rgba(255,255,255);
	--glow-color-not-available: rgba(245, 37, 76, 0.5);
    --glow-color-available: rgba(76, 245, 37, 0.5);
    --glow-color-premium: rgba(206, 37, 245, 0.5);
}

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
}

body {
	font-family: var(--main-font);
	margin: 0;
	padding: 0;
	background-color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	height: 100vh;
	height: var(--app-height);
	overflow: hidden;
}

#search-container {
	text-align: center;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	justify-content: center;
	width: 90vw;
	max-width: 1000px;
	z-index: 2;
	border-radius: 50px;
	animation: progressGlow 2s linear infinite;
	overflow: hidden;
	position: relative;
}

#search-container.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.2) 40%, transparent 60%);
  background-size: 200% 100%;
  animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
  0%, 100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }
}

@keyframes progressGlow {
  0% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 0 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

#results-container {
	max-width: 1000px;
	width: 90vw;
	position: absolute;
	z-index: 1;
}

#results-container p {
	margin-top: 0px;
	margin-bottom: 0px;
}

#results-container p:not(:last-child) {
	margin-bottom: 10px;
}

#search-bar {
	width: 100%;
	padding: 10px 20px;
	font-size: 22px;
	border-radius: 50px;
	background-color: rgba(37, 76, 245, 0.2);
	color: #fff;
	border: 1px solid rgba(37, 76, 245, 0.2);
}

#search-bar:focus {
	background-color: rgba(37, 76, 245, 0.3);
}

::placeholder {
	color: #254cf5;
}

:-ms-input-placeholder {
	color: #254cf5;
}

::-ms-input-placeholder {
	color: #254cf5;
}

#search-button {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background-color: rgba(37, 76, 245, 0.2);
	color: #254cf5;
	font-family: var(--main-font);
	cursor: pointer;
	border: none;
	border-radius: 50px;
	outline: 0;
	border: 1px solid rgba(37, 76, 245, 0.2);
	width: 49.5px;
	height: 49.5px;
	text-align: center;
}

#search-button:hover {
	background-color: rgba(37, 76, 245, 0.3);
}

#search-bar,
#search-button {
	font-family: var(--main-font);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

#results-container {
	display: none;
	height: calc(var(--app-height) - 49.5px - 60px);
	overflow: auto;
}

#results-container .card:not(:last-child) {
    margin-bottom: 10px;
}

.card {
	background-color: rgba(37, 76, 245, 0.3);
	border-radius: 10px;
	padding: 20px;
	color: #254cf5;
	opacity: 0;
	animation: fadeIn 2s ease-in-out forwards;
}

.card.not-available-status {
    background-color: rgba(245, 37, 76, 0.3);
    color: #f5254c;
}

.card.available-status {
    background-color: rgba(76, 245, 37, 0.3);
    color: #4cf525;
}

.card.premium-status {
    background-color: rgba(206, 37, 245, 0.3);
    color: #ce25f5;    
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        
    }
}

/* Media query for smaller screens */
@media only screen and (max-width: 300px) {
	#search-container {
		grid-template-columns: 1fr;
	}

	#search-bar,
	#search-button {
		width: 100%;
		text-align: center;
	}
}

button,
input {
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

button {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

button:focus,
input:focus {
	outline: 0;
	border: 2px solid #ffffff;
	box-shadow: 0 0 2px 2px var(--main-color);
}

.premiumBadge {
    font-size: 12px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    text-align: center;
    display: block;
    width: 124px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.domain-display {
    font-size: 30px;
    margin-bottom: 5px;
}

.domain-display span {
    font-weight: 700;
}