:root {
    --text: black;
    --textAlt: #E5E5E5;
    --textWarn: red;

    --bgColor1: #E5E5E5;
    --bgColor2: #F1EDFB;
    --bgColor3: #6E4BD6;

    --bgBase: linear-gradient(110.95deg, #4B1AD8 10.3%, #7C5DD5 87.65%);

    --font-tiny: 10px;
    --font-small: 12px;
    --font-med: 16px;
    --font-large: 20px;
    --font-huge: 24px;
}

*, *:before, *:after {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  /* height:90vh;
  width:90vw; */
  /* margin:0; */
  background-color: var(--bgColor2);
  font-family: 'DM Sans', 'SF Pro', sans-serif;
}
#content {
  /* width: 50%;
  height: 50%; */
  overflow: hidden;
  /* margin: auto; */
  /* width: 90vw; */
}

.bg {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 220px;
  z-index: -1;
  opacity: 15%;
  overflow: hidden;
  width: 90vw;
  height: 146.95px;
}
.bg-image {
  flex: none;
  /* order: 1; */
  flex-grow: 0;
  /* position: relative; */
  background-image: url("Union.png");
  background-size: contain;
  background-repeat: no-repeat;

  height: 75px;
  width: 126px;
}

.title {
  position: absolute;
  width: 90px;
  height: 180px;
  left: calc(50% - 259px/2 + 0.5px);
  z-index: 0;
  top: calc(50% - 621px/2 - 90px);
  /* offset-position: ; */
  font-size: 40px;
  font-family: 'Druk Wide', 'DM Sans', 'SF Pro', sans-serif;
  line-height: 44px;

  /* or 110% */
  display: flex;
  text-align: center;
}
.wrapper {
  position:absolute;
  top: calc(50% - 621px/2 + 65.5px);
  left: calc(50% - 508px/2);
  background: #FFFFFF;
  width: 508px;
  height: 621px;
  padding-top: 0px;

  /* Webpage Invite Card */
  box-shadow: 0px 48px 100px rgba(17, 12, 46, 0.15);
  border-radius: 20px;
}
.header{
  width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 80px 80px;
  gap: 102px;
  isolation: isolate;
  
}
#input_label {
  text-align: center;
  font-size: var(--font-small);
  border-radius: 1em;
  border-style: none;
  box-sizing: border-box;
  border-style: none;
  margin: 10px 0px 0px 10px;
}
#phone_number {
    width: 100%;
    /* background-color: var(--bgColor1); */
    color: var(--text);
}
#send_button {
    width: 100%;
    background-color: var(--bgColor3);
}

.number-input {
  box-sizing: border-box;
  border-radius: 10px;
  height: 40px;
  width: 286px;
  color: var(--text);
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  font-size: var(--font-large);
  margin-bottom: 10px;
  margin-top: 10px;
}

.button-1 {
  border-radius: 1em;
  border-style: none;
  box-sizing: border-box;
  color: var(--textAlt);
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  touch-action: manipulation;
  font-size: var(--font-large);

  width: 348px;
  height: 50px;

  background: #6E4BD6;
  border-radius: 10px;
}

#input {
  color: var(--text);
  width: 290px;
  margin: auto;
}

#input:focus-within {
  /* border: 1px solid var(--bgColor2); */
}


.button-1:hover,
.button-1:focus {
  background-color: var(--bgColor3);
}

.profile_img {
  margin-left: calc(50% - 55px);

  border-radius: 100%;
  height: 110px;
  width: 110px;
  margin-top: 50px;
  margin-bottom: 50px;
}



.group_name {
    margin: auto;
    text-align: center;
    margin: 15px 15px 35px 15px;
    font-size: var(--font-huge);
}
.inviter_name {
  margin: auto;
  text-align: center;
  margin: 15px 15px 15px 15px;
  font-size: var(--font-med);
}


#logo {
  position: absolute;
  left: calc(50% - 140px);
  width: 280px;
  height: 65px;
  bottom: 80%;
}

@media (max-width: 508px) {
  .wrapper {
    width: 90vw;
    left: calc(50% - 45%)
  }
  /* Make 28% smaller */
  #logo {
    height: 46px;
    width: 200px;
    left: calc(50% - 100px);
    bottom: 85%;
  }
  
}

@media (max-height: 900px) {
  .title {
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    width: 145px;
    height: 56px;
    left: calc(50% - 145px/2 + 4.5px);
    top: calc(50% - 421px/2 - 30px);
  }
  .wrapper {
    height: 60vh;
    max-height: 421px;
    min-height: 410px;

    top: calc(50% - 421px/2 + 65.5px);
  }
  .profile_img {
    margin-left: calc(50% - 40px);

    height: 80px;
    width: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.success,
.fail,
.bad_status,
.invalid_link {
  visibility: hidden;
  display: none;
}

.header {
  color: var(--text);
  font-size: var(--font-large);
  padding-bottom: 10px;
}

.info {
  color: var(--text);
  font-size: var(--font-small);
  padding: 5px;
}

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

.warn {
  color: var(--textWarn);
}

@font-face {
  font-family: "Druk Wide";
  src: url('DrukWide-Medium.otf') format('opentype'), 
  url('Druk\ Wide\ Bold.ttf') format('truetype');
}

html, body {
  overflow: hidden;
}