@font-face {
  font-family: 'Outfit';
  src: url('Fonts/Outfit/Outfit-VariableFont_wght.ttf');
  /* font-weight: 300; */
}

@font-face {
  font-family: 'NotoSan';
  src: url('Fonts/Noto/NotoSans-VariableFont_wdth\,wght.ttf');
}

* {
  padding: 0px;
  margin: 0px;
}

:root {
  --mainColor: rgb(106, 15, 15);
  --backgroundColor: #F6F8FC;
  --secondaryBackgroundColor: #e8f0fe;
  --foregroundColor: #FFF;
  --bubble: rgb(228, 228, 228);
  --shadow: rgb(209, 209, 209);
  --primaryButtonBackground: #1a73e8;
  --primaryButtonHover: #0058db;
  --primaryButtonActive: #003f9c;
  --textColor: #555;
  --buttonHover: rgba(0, 0, 0, 0.07);
  --buttonActive: rgba(0, 0, 0, 0.26);
  --success: rgb(0, 130, 0);
  --successBackground: rgba(0,200,0,0.1);
  --error: rgb(200, 0, 0);
  --errorBackground:rgb(200,0,0,0.1);
  --googleRedColor: rgb(221,81,68);
  --googleGreenColor: rgb(29, 164, 98);
  --googleBlueColor: rgb(76, 139, 245);
  --googleYellowColor: rgb(255, 205, 70);
}

body {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: var(--backgroundColor);
  font-family: 'NotoSan', Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  overflow: auto;
}

span#gmail {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0px;
  color: var(--textColor);
  font-weight: 400;
  letter-spacing: -1px;
}

button {
  border-radius: 1rem;
  border: none;
  padding: 0.5rem;
  width: fit-content;
  background-color: transparent;
  font-weight: 600;
  font-family: 'NotoSan', sans-serif;
  color: var(--textColor);
}

button:hover {
  background-color: var(--buttonHover);
  cursor: pointer;
}

button:active {
  background-color: var(--buttonActive);
}

input {
  width: fit-content;
  border-radius: 1rem;
  border: 1px solid var(--backgroundColor);
  padding: 0.15rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  outline: none;
  color: var(--textColor);
}
span.bold{
  text-decoration: bold;
  font-weight: 700;
}
nav {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 5rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: var(--frontgroundColor);
  justify-content: space-between;
}
.scrollContainer{
  border-radius: 0.5rem;
  border: solid 1px var(--shadow);
  overflow: scroll;
  flex-shrink: 0;
}

nav .left {
  display: flex;
  align-items: center;
}
nav .left img{
  animation: spin 10s linear infinite;
  margin-right: 1rem;
}
@keyframes spin{
  from{
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

nav .right {
  display: flex;
  align-items: center;
}

nav .right * {
  margin-right: 0.6rem;
}

nav .right button {
  padding: 1rem;
  border-radius: 3rem;
}

nav .right button:hover {
  cursor: pointer;
}

.authorize_button {
  color: var(--backgroundColor);
  background-color: var(--primaryButtonBackground);
}

.authorize_button:hover {
  background-color: var(--primaryButtonHover);
}

.logo {
  height: fit-content;
  width: 35px;
  margin-right: 5px;
}
.pageWrapper{
  display: flex;
  justify-content: center;
}
.page{
  margin-bottom: 2rem;
  padding: 2rem;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  background-color: var(--foregroundColor);
  box-shadow: 0rem 0rem 2rem var(--shadow);
  border-radius: 1rem;
  color: var(--textColor);
}
.page h2{
  margin-bottom: 1.5rem;
}
.page h3{
  margin-top: 2rem;
  margin-bottom: 0.2rem;
}
.page p{
  margin-bottom: 0.7rem;
}
.page a{
  text-decoration: none;
  color: #003f9c;
}
.page a:hover{
  color: gray;
  cursor:pointer;
}
.page div{
  display: flex;
  justify-content: end;
}
.page ul{
  text-decoration: none;
  list-style-type: none;
  margin-block-start: 0.4rem;
  padding-inline-start: 2rem;
}


.appWrapper {
  display: flex;
  flex-grow: 1;
  max-height: 100%;
  box-sizing: border-box;
  min-height: 0;
}

.configSection {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  padding-left: 0;
  width: 9rem;
  flex-shrink: 0;
}

.configSection .top {
  flex-grow: 1;
  padding-left: 0;
}

.configSection .bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  height: fit-content;
  /* padding: 0.3rem; */
  padding-left: 0;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.configSection div {
  padding-left: 0.5rem;
}

.configSection button{
  width: 100%;
  padding: 0.3rem;
  border-radius: 0rem 1rem 1rem 0rem;
}

.configSection input {
  width: 100%;
  border: solid var(--shadow);
  box-sizing: border-box;
}
#emailColumnInputContainer p{
color: var(--textColor);
}
#send_mail_button{
  background-color: var(--googleBlueColor);
  color: var(--foregroundColor);
  border-radius: 2rem;
  padding: 1rem;
  transition: 300ms;
  margin: auto;
  margin-top: 1rem;
  width: fit-content;
  justify-content: center;
  align-items: center;
  animation-play-state: paused;
}
#send_mail_button:hover{
  box-shadow: 0rem 0rem 0.8rem rgba(0, 0, 0, 0.469);
  animation: colorCycle 9s linear infinite;
}
@keyframes colorCycle {
  from {
    background-color: var(--googleBlueColor);
  }
  25%{
    background-color: var(--googleRedColor); 
  }
  50%{
    background-color: var(--googleGreenColor);
  }
  75%{
    background-color: var(--googleYellowColor);
  }
  to {
    background-color: var(--googleBlueColor);
  }
}
#send_mail_button:active{
  box-shadow: unset;
  transition: 10ms;
  background-color: var(--primaryButtonActive);
  animation-play-state: paused;
}

.app {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--foregroundColor);
  border-radius: 1rem 1rem 0rem 0rem;
  padding: 1rem;
  box-sizing: border-box;
  min-width: 0;
}

.app .scrollContainer{
  max-height: 5rem;
  padding: 0.4rem;
  margin-top: 0.6rem;
}

.emailHeader{
  display: flex;
  align-items: center;
  border-bottom: solid 1px var(--shadow);
  margin-bottom: 1rem;
  overflow: scroll;
  padding-bottom: 0.5rem;
}
.emailHeader input{
  margin-left:0.5rem;
  flex-grow: 1;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--textColor);
  outline: none;
  border: none;
  border-radius: 0;
}
.emailHeader img{
  height: inherit;
}
.emailHeader span{
  margin-left: 0.2rem;
}
.circleBorder{
  border: 0.15rem solid var(--shadow);
  height: 1.5rem;
  aspect-ratio: 1/1;
  border-radius: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-left: 0.5rem;
  margin-right: 0.1rem;
}

#userEmail {
  color: var(--textColor);
  font-style: italic;
}
#ccList {
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-direction: row; */
}

#ccList div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  padding-right: 0rem;
  margin-left:0.2rem;
  background-color: var(--bubble);
  border-radius: 1rem;
}
#ccList p{
  font-size: 0.8rem;
  color: var(--textColor);
}
#ccList button{
  padding: 0.1rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  color: var(--textColor);
  font-size: 0.7rem;
}

#TSVfile {
  display: none;
}

.emailListSection{
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  width: 17rem;
  flex-shrink: 0;
  min-width: 0;
  overflow: scroll;
}

  .smallIndicator{
    color: var(--textColor);
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 370;
    padding-left: 0.2rem;
  }

#newEmailAddress {
  outline: none;
  border: solid 2px var(--shadow);
}
/* #errorIndicator{
  color: var(--error);
} */
.parsedData {
  border-radius: 0.5rem;
  border: solid 1px var(--shadow);
  overflow: scroll;
}

.parsedData div {
  box-sizing: border-box;
  width: 100%;
  padding: 0.25rem;
  padding-top: 0.02rem;
  padding-bottom: 0.02rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--textColor);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.parsedData div:hover {
  background-color: var(--shadow);
}

.parsedData div button {
  font-size: 0.8rem;
  color: rgb(255, 8, 0);
  border-radius: 100%;
  background-color: rgb(255, 235, 235);
  padding: 0.2rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.parsedData div button:hover {
  background-color: rgb(255, 201, 201);
}

.parsedData div button:active {
  background-color: rgb(255, 170, 170);
}

.parsedData div p {
  overflow: scroll;
}

#emailData {
  flex-grow: 1;
  border: var(--backgroundColor) 3px solid;
  border-radius: 8px;
  outline: none;
  overflow: scroll;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.4rem;
}

.statusSuccess{
  background-color: var(--successBackground);
  color: var(--success);
}
.statusFail{
  background-color: var(--errorBackground);
  color: var(--error);
}


.uploadButton {
  background-color: transparent;
  border-radius: 1rem;
  color: var(--textColor);
  padding: 1rem;
  display: flex;
  justify-self: center;
  align-items: center;
  width: fit-content;
  margin: auto;
}

.uploadButton:hover {
  cursor: pointer;
  background-color: var(--buttonHover);
}

.uploadButton:active {
  background-color: var(--buttonActive);
}

.inputWithButton {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.alertWrapper{
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.05);
  width: 100vw;
  height: 100vh;
  position: absolute;
}
.alertWindow{
  z-index: inherit;
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 10rem;
  top: 20%;
  background-color: var(--foregroundColor);
  box-shadow: 0rem 0rem 2rem var(--shadow);
  border-radius: 1rem;
  padding: 2rem;
  width: 50vw;
  max-height: 60vh;
  overflow: scroll;
  color: var(--textColor);
}
.alertWindow h2{
  margin-bottom: 1.5rem;
}
.alertWindow h3{
  margin-top: 2rem;
  margin-bottom: 0.2rem;
}
.alertWindow p{
  margin-bottom: 0.7rem;
}
.alertWindow a{
  text-decoration: none;
  color: #003f9c;
}
.alertWindow a:hover{
  color: gray;
  cursor:pointer;
}
.alertWindow div{
  display: flex;
  justify-content: end;
}
.alertWindow ul{
  text-decoration: none;
  list-style-type: none;
  margin-block-start: 0.4rem;
  padding-inline-start: 2rem;
}
.disabled {
  display: none;
}