* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	width: auto;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
  	padding: 20px;
	overflow: hidden;

	background: url('./fon-opt.jpg') no-repeat;
	background-size: cover;
	background-position: center;
	margin: 0;
}

center {
	max-width: 1000px;
  width: 100%;
  height: fit-content;
  background: white;
  border-radius: 25px;
  padding: 56px 48px;
  border: 1px solid #0000002b;
}

.invalid-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #fef2f2;
    color: #fe1a00;
}

h1 {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-family: system-ui;
}

form {
    position: relative;
  display: flex;
  padding: 0;
}

input[type="url"] {
  width: 85%;
  height: 40px;
  background: transparent;
  border: 1px solid #371191;
  border-right: none;
  padding: 0;
  padding-left: 20px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-size: 16px;
}
input:active, input:hover, input:focus  {
	outline: 0;
    outline-offset: 0;
}

.err-valid {
  position: absolute;
  top: 45px;
  left: 20px;
  font-size: 18px;
  color: #cc4b37;
}

.hidden {
    display: none;
}


.button {
  width: 140px;
  height: 40px;
  border: none;
  border-left: none;
  border-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: #371191;
  color: white;
  cursor: pointer;
}

.text-short {
  font-size: 16px;
  font-family: system-ui;
  margin: 32px 0 8px 0;
  font-weight: 700;
}

.tooltip {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 300px;
}

.tooltip .input {
    display: flex;
    align-items: center;
    justify-content: center;
  width: 75%;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid #3dbd39;
  font-size: 18px;
  text-align: center;
  background: transparent;
  border-radius: 0;
}

.tooltip.copied:after {
    content: 'Copied!';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    font-size: 18px;
    color: #3dbd39;
    font-family: system-ui;
}

.tooltip button {
  width: 54px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: #3dbd39;
  color: white;
  border: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
}

.tooltip .copy-btn {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.copy-btn span {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.copy-btn > span:first-child {
    font-size: 18px;
}

@media all and (max-width: 600px) {
  body {
    padding: 16px;
  }

  center {
    padding: 48px 24px;
	border-radius: 25px;
  }

  h1 {
    font-size: 24px;
	margin: 0px 0 24px 0;
  }

  form {
    margin: 0;
	flex-direction: column;
	
  }

  input[type="url"] {
	width: 100%;
    height: 40px;
    padding-left: 10px;
	border: 1px solid #371191;
	border-radius: 10px;
  }

  .err-valid {
    top: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 12px;
    text-align: left;
  }
  
  .button {
    width: 100%;
    height: 40px;
    font-size: 14px;
	border-radius: 10px;
	margin-top: 20px;
	letter-spacing: 1px;
  }

  .text-short {
	margin: 32px 0 8px 0;
  }

  .tooltip {
    max-width: 100%;
  }
}
