@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&display=swap');

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	--font-size: 18px;
	font-size: var(--font-size);
}

html, 
body,
main {
	position: relative;
}

body {
	margin: 0;
    color: black;
    background-color: white;
	font-family: 'Anuphan', 'DejaVuSans', -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
	letter-spacing: 0.0455em;
}

a.Link {
	color:#0854f1;
	text-decoration: none;
}

a:not(.Link) {
	text-decoration: none;
	color:inherit;
	transition: color 0.2s linear;
}

a:not(.Link):hover {
	color:#0854f1;
}

#cdawrap {
	--cda-text-size: 14px;
	--cda-footer-fontsize: 12px;
}

/* width */
::-webkit-scrollbar {
	width: 16px;
	padding-left: 25px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.35);
	border-radius: 16px;
	border: 4px solid transparent;
	background-clip: content-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,0.55);
	background-clip: content-box;
}

::-webkit-scrollbar-track {
	background-color: white;
}

::-moz-selection {
  color: white;
  background: #1338b0;
}

::selection {
  color: white;
  background: #1338b0;
}

img {
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

br {
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

dl, ol, ul {
	margin-top: 0;
    margin-bottom: 0;
}

header {
	display: flex;
	flex-direction: column;
}

button {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

header .Paragraph {
    margin: 3em 0 2em 0;
}

header .Welcome {
	display:flex;
	align-items: center;
    gap: 0.67em;
}

header .Welcome span:first-child {
	font-size: calc(var(--font-size) + 2px);
}

header .Welcome span:first-child {
	font-size: calc(var(--font-size) + 6px);
	font-weight: 700;
}

.Container {
	position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    max-width: calc(1420px + 4em);
    padding: 0 2em 0 2em;
}

.Paragraph {
    margin: 1em 0 1em 0;
    display: block;
}

.Body {
	display: flex;
	margin: 2em 0 2em 0;
}

.Navbar {
	display: flex;
    flex-direction: column;
    gap: 0.67em;
	width: 25%;
	font-weight: 500;
}

.Section {
	width: 100%;
    display: flex;
	padding: 0 1em;
	gap: 2em;
	flex-wrap: wrap;
}

.Section .Headline {
	font-size: calc(var(--font-size) + 14px);
	font-weight: 500;
}

.Section .Item {
	width: 100%;
	height: auto;
	flex-basis: calc(50% - 1em);
	flex-direction: column;
    display: flex;
}

.Section .Item .Earnings {
	margin: 0.67em 0 1.2em 0;
    display: flex;
    align-items: center;
    gap: 1.34em;
}

.Section .Item .Earnings span:first-child {
	font-size: calc(var(--font-size) + 30px);
	font-weight: 600;
}

.Section .Item .Earnings span:first-child:before {
	content: '$ ';
}

.Section .Item .Earnings span:last-child {
	color: #00835e;
	font-size: calc(var(--font-size) + 6px);
}

.Section .Item .Earnings span.negative:last-child {
	color: #bf1111;
	font-size: calc(var(--font-size) + 6px);
}

.Section .Item .Earnings span:last-child:before {
	content: '\2191';
}

.Section .Item .Earnings span.negative:last-child:before {
	content: '\2193';
}

.Section .Item .Earnings span:last-child:after {
	content: '%';
}

.Section .Item .Stats {
	border-radius: 20px;
    background-color: #f1f1f1;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: calc(var(--font-size) + 18px);
    padding: 0.65em;
	text-align: center;
}

.Section .Item .Stats span {
	position: relative;
    bottom: calc(var(--font-size) / 2.4);
}

.Section .Item .Stats span:first-child:before {
	content: 'Referrals sales\a';
	font-size: var(--font-size);
	white-space: pre;
}

.Section .Item .Stats span:last-child:before {
	content: 'Conversion rate\a';
	font-size: var(--font-size);
	white-space: pre;
}

.Section .Item .Stats span:last-child:after {
	content: '%';
}

.Section .Wrapper {
	width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.67em;
    line-height: 2.24em;
    text-align: justify;
}

.Section .History_Wrapper {
	display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1em;
}

.Section .History_Wrapper .History_Item {
	display: flex;
    justify-content: space-between;
    background: ghostwhite;
    padding: 1em 4em;
    border-radius: 10px;
    color: darkblue;
}

.Section .Item a.Button {
	outline: 0;
    border: 0;
    padding: 1.5em;
    width: 75%;
    margin-top: 2em;
    border-radius: 10px;
    font-family: 'Anuphan';
    font-weight: 500;
    font-size: var(--font-size);
    background: #f0f0f0;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s linear;
}

.Section .Item a.Button:hover {
	background: #ece3ff;
}

#xIcon:before {
	content: "";
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-image: var(--xicon-url);
    margin-right: 0.5em;
    top: 4px;
}

.input-container {
	display: flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    max-width: 500px;
    background-color: #fff;
    padding: 0.5em 1.25em;
	min-height: 52.49px;
}

input#bitcoin-address {
	flex: 1;
	border: none;
	outline: none;
	font-size: 16px;
}

button#submit-button {
	border: none;
    cursor: pointer;
    color: black;
    font-weight: 700;
    font-family: 'Anuphan';
    background: #f0f0f0;
    border-radius: 5px;
    padding: 0.5em;
	transition: background-color 0.2s;
}

button#submit-button:hover {
	background-color: #e1e1e1;
}

@media only screen and (max-width: 1600px) {
	header .Welcome {
		flex-direction: column;
		align-items: start;
		line-height: 2.2em;
	}
	
	.Body {
		flex-direction: column;
		gap: 2em;
	}
	
	.Navbar {
		flex-direction: row;
		width: 100%;
		text-align: center;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 1.67em;
	}
	
	.Section {
		padding: 0;
	}
	
	.Section .Item {
		flex-basis: 100%;
		line-height: 2.47em;
	}
	
	.Section .Item .Stats span:last-child:before,
	.Section .Item .Stats span:first-child:before {
		font-size: calc(var(--font-size) - 4px);
	}
	
	.Section .History_Wrapper .History_Item {
		padding: 1em;
		gap: 1.5em;
		flex-wrap: wrap;
	}
}