/* global */
* {
  box-sizing: border-box;
  background-color: inherit;
  font-family: "Anek Tamil Variable";
}

/* anek-tamil-latin-wght-normal */
@font-face {
  font-family: "Anek Tamil Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 300;
  letter-spacing: 2px;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/anek-tamil:vf@latest/latin-wght-normal.woff2)
    format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* individual elements */
h1 {
  color: #ffffff;
  font-size: 30px;
  text-shadow: 2px 2px #646464;
  padding: 10px;
  margin: 0px;
}

h2 {
  margin: 0px;
}

.host {
  font-weight: 600;
}

.logo {
  /* width: 250px; */
  height: 150px;
}

.description {
  height: 70px;
}

.chooseFile {
  padding-bottom: 10px;
}

.filePreview {
  font-size: small;
  line-height: normal;
}

.about_heading {
  margin-bottom: 0px;
  padding-top: 10px;
  padding-left: 20px;
}

.strong {
  font-weight: bolder;
}

/* STYLE BY SECTION */

/* Header */
header {
  background-color: #969b7f;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 20px 0px;
}

.header_left {
  float: left;
}

.header_right {
  float: left;
}

/* About */
.about {
  margin: 20px;
  font-size: medium;
}

.about_cols {
  display: flex;
  max-width: 100%;
  align-items: stretch;
}

.about_text {
  display: block;
  flex: 1;
  padding-left: 20px;
  padding-right: 20px;
  background-color: #ffffff;
  color: #646464;
  text-align: left;
}

.about_diagram {
  display: flex;
  flex: 1;
}

.about_diagram img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Key generation */
.key_gen_block {
  text-align: center;
  font-size: larger;
  color: #000000;
  border: 2px solid #a0a5a3;
  box-shadow: 5px 5px 5px #969b7f;
  border-radius: 25px;
  padding-bottom: 40px;
  margin: 30px;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: medium;
}

.smaller_container {
  max-width: 160px;
}

/* File upload block */
.file_block {
  display: table;
  width: 100%;
}

/* Encrypt column */
.column_left {
  display: table-cell;
  width: 50%;
  padding: 20px;
  text-align: center;
  font-size: large;
  background-color: #b7bda0;
}

/* Decrypt column */
.column_right {
  display: table-cell;
  width: 50%;
  padding: 20px;
  text-align: center;
  font-size: large;
  background-color: #d3d6c2;
}

/* Demo block */
.demo_heading {
  padding-top: 10px;
  padding-left: 20px;
  color: black;
  text-align: center;
}

.demo_text {
  margin: auto;
  padding: 20px;
  color: #646464;
  text-align: left;
  font-size: medium;
  display: block;
  flex: 1;
  width: 90%;
}

.demo_center {
  text-align: center;
}

.collapsible_button {
  background-color: #c3dae9;
  color: black;
  cursor: pointer;
  padding: 20px;
  margin: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: large;
}

.collapsible_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  /* margin: 10px; */
}

.collapsible_button:after {
  content: "\25BC";
  font-size: 13px;
  color: #646464;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\25B2";
}

/* Footer */
.footer {
  background-color: #eae7dc;
  padding: 15px;
  width: 100%;
  text-align: center;
}

/* Formatting */
span + span {
  margin-left: 30px;
}

/* Responsive layout - makes the columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
  .column_left,
  .column_right,
  .header_left,
  .header_right {
    width: 100%;
    display: block;
  }
}

@media (max-width: 1200px) {
  .about_cols {
    flex-direction: column;
  }
  .about_text,
  .about_diagram {
    height: auto;
  }
}

/* Button styling */
.button {
  background-color: #ffffff;
  border: 0;
  border-radius: 0.3rem;
  box-sizing: border-box;
  color: #000000;
  font-size: medium;
  font-family: "Anek Tamil Variable";
  line-height: 1.25rem;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none #d1d5db solid;
  text-decoration-thickness: auto;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button:hover {
  background-color: rgb(249, 250, 251);
}

.button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button:focus-visible {
  box-shadow: none;
}

.button:disabled {
  background-color: rgb(227, 229, 229);
  pointer-events: none;
}

.button:success {
  border-color: rgb(41, 243, 115);
  pointer-events: none;
}

.button:failure {
  background-color: rgb(255, 26, 26);
  pointer-events: none;
}

/* Cursor loader config */
.cursor:wait {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #969b7f;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* File preview */
.preview {
  padding: 10px;
  overflow: auto;
  display: none;
}

.decViewContainer {
  display: none;
  padding: 10px;
}

.decViewPreviewContainer {
  display: none;
}
