* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

:root {
  --main-width: 85%;
  --nav-width: 15%;

  --background-info-color: #e4edff;
  --text-info-color: #3f6ed8;

  --primary-color: #4f0599;
  --secondary-color: #a365f6;
  --tertiary-color: #45d6b5;

  --gray-primary: #4a4f62;
  --gray-secondary: #b2b6c3;
  --gray-tertiary: #d4dae7;

  --nav-background: #f6f5f7;

  --alert-bacground: #ffe1e7;
  --alert-content: #ef5774;

  --info-height: 60px;
  --header-height: 70px;
}

html,
body {
  width: 100%;
  height: 100%;
}

nav,
table tr .table-right-column {
  background-color: var(--nav-background);
}

nav,
form .form-section .alert,
table th,
table td {
  padding: 20px;
}

nav .nav-content-title,
.nav-content-end a,
.nav-content-end,
.back-to-buckets,
.back-to-buckets a,
form .form-section .country input[type="radio"]:checked + label,
table thead i,
table .table-left-column .gb-text,
table tfoot .table-right-column {
  color: var(--primary-color);
}

.flex,
.info,
nav,
nav .nav-content,
nav .nav-content-title,
nav .nav-content .beta-link,
nav .nav-content .beta,
nav .nav-content-end,
header,
header .organization,
header .life-ring,
header .user-initials,
.back-to-buckets,
form,
form .form-section .section-title,
form .form-section .section-title .rounded-title-number,
form .form-section .countries,
form .form-section .country,
form .form-section .country label,
form .form-section .bucket-visibility-content,
form .form-section .bucket-visibility-radio,
form .form-section .alert,
footer,
table .table-left-column > *,
table .table-left-column > * div,
table .table-right-column div,
table .storage-input .gb {
  display: flex;
}

.info,
header,
nav .nav-content-title,
nav .nav-content .beta,
header .organization,
header .organization .user-initials,
header .organization .life-ring,
.back-to-buckets-list,
form,
form .form-section .section-title,
form .form-section .section-title .rounded-title-number,
form .form-section .countries,
form .form-section .country,
form .form-section .country label,
form .form-section .alert,
table .table-left-column *,
table .table-left-column *,
table .table-right-column div,
table .storage-input .gb {
  align-items: center;
}

nav .nav-content-title,
nav .nav-content .beta-link,
header,
main .back-to-buckets,
form .form-section .bucket-visibility-content,
form .form-section .bucket-visibility-radio,
table tbody .table-left-column > * {
  justify-content: space-between;
}

nav .nav-content .beta,
header .organization .user-initials,
header .organization .life-ring,
form .form-section .section-title .rounded-title-number,
form .form-section .alert,
table .storage-input .gb,
footer {
  justify-content: center;
}

.flex,
.info,
nav .nav-content,
nav .nav-content-title,
header,
form .form-section input[type="text"],
form .form-section .bucket-visibility-content,
table {
  width: 100%;
}

nav .nav-content .beta,
table .storage-input * {
  width: 40px;
}

form .form-section input[type="text"],
table .input-thead input,
table .input-thead select {
  height: 40px;
}

input:not([type="submit"]):focus,
textarea:focus {
  border: 1px solid var(--primary-color) !important;
  box-shadow: 0 0 3px var(--primary-color) !important;
  -moz-box-shadow: 0 0 3px var(--primary-color) !important;
  -webkit-box-shadow: 0 0 3px var(--primary-color) !important;
}

input:not([type="submit"]):focus,
textarea:focus,
select:focus {
  outline-offset: 0px !important;
  outline: none !important;
}

header {
  position: sticky;
  top: 0;
}

.nav-content-end a,
nav a:hover,
.back-to-buckets,
table .selected-country,
table .selected-visibility {
  font-weight: bold;
}

table tfoot .table-right-column,
form .form-section .section-title h2,
header .organization .life-ring {
  font-size: 25px;
}

.info i:first-child,
form .form-section .country label,
form .form-section .country label img,
form .form-section .bucket-visibility-radio input[type="radio"],
table thead i,
table .table-left-column div img,
table .table-left-column div p i {
  margin-right: 10px;
}

.nav-content-end a i,
form .form-section input[type="text"],
form .form-section .first-section-text,
table tbody .table-right-column,
table tbody i.fas,
table .storage-input .gb,
footer a {
  color: var(--gray-secondary);
}

nav a,
header select,
header .organization .life-ring,
form .form-section .country,
form .form-section .country input[type="radio"],
form .form-section .country label,
form .form-section .bucket-visibility-radio input[type="radio"],
form .form-section .bucket-visibility-radio label,
form input[type="submit"] {
  cursor: pointer;
}

header .organization .life-ring,
form .form-section .country label {
  color: var(--gray-tertiary);
}

header .organization .user-initials,
form .form-section .section-title .rounded-title-number {
  border-radius: 100%;
}

header select,
header .organization .life-ring,
form .form-section input[type="text"],
form .form-section .country label,
form .form-section .bucket-visibility-content,
form .form-section .alert,
form input[type="submit"] {
  border-radius: 5px;
}

header select:not(.organization select),
header .organization .life-ring,
form .form-section input[type="text"],
form .form-section .country label,
form .form-section .bucket-visibility-content,
table .input-thead input,
table .input-thead select,
table .storage-input * {
  border: solid 1px var(--gray-tertiary);
}

.info a:hover,
.back-to-buckets a:hover,
form .form-section .alert a:hover,
footer a:hover {
  text-decoration: underline;
}

nav,
header .organization .life-ring,
form .form-section input[type="text"],
form .form-section .bucket-visibility-content,
table .input-thead input,
table .input-thead select {
  box-sizing: border-box;
}

form .form-section .buckey-visibility-text,
form .form-section .estimated-cost-text,
form .form-section .text-alert {
  line-height: 24px;
}

.info,
.info a,
form .form-section .alert a {
  color: var(--text-info-color);
}

nav .nav-content-end i,
form .form-section .alert i.fa-external-link-alt,
footer i {
  transform: scale(0.7);
}

a {
  text-decoration: none;
  color: black;
}

nav .nav-content-title,
nav .nav-content a,
form input[type="submit"] {
  font-size: 16px;
}

form input[type="submit"],
header .organization select {
  background-color: var(--tertiary-color);
  border: none;
}

/******************************* DIV info *******************************/

.info {
  background-color: var(--background-info-color);
  height: var(--info-height);
  font-size: 18px;
}

.info i:first-child {
  margin-left: 20px;
}

.info a {
  margin: 0 10px;
}

.info i:last-child {
  margin-left: auto;
  margin-right: 20px;
}

/******************************* nav *******************************/

nav,
.nav-content,
.nav-content-end,
form {
  flex-direction: column;
}

nav {
  background-color: var(--nav-background);
  width: var(--nav-width);
  overflow: auto;
  z-index: 2;
}

nav .logo {
  width: 60%;
  margin-bottom: 40px;
}

nav a,
nav .nav-content a,
header .organization p:not(.user-initials p),
form h1,
form .form-section .section-title h2,
form .form-section .buckey-visibility-text,
form .form-section .estimated-cost-text,
table .table-left-column div p:first-child {
  color: var(--gray-primary);
}

nav a,
nav .nav-content a {
  margin-bottom: 15px;
}

nav .nav-content .beta {
  background-color: rgb(255, 140, 105);
  height: 20px;
  border-radius: 100px;
  font-size: 10px;
}

nav .nav-content-title {
  margin: 20px auto;
}

.nav-content-end {
  margin-top: 30px;
}

.nav-content-end a {
  margin-bottom: 10px;
}

nav,
main {
  height: calc(100vh - var(--info-height));
}

/******************************* main *******************************/

main {
  width: var(--main-width);
  overflow: auto;
}

/************* Header *************/

header {
  height: var(--header-height);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

header select {
  padding: 0 10px;
  font-size: 15px;
}

header select:not(.organization select) {
  margin-left: 20px;
}

header,
header select:not(.organization select),
header .organization .life-ring {
  background-color: white;
}

header select:not(.organization select) {
  height: 80%;
  width: 200px;
}

header .organization {
  height: 100%;
  margin-right: 20px;
}

header .organization select,
header .organization .life-ring,
header .organization .user-initials {
  height: 45px;
}

nav .nav-content .beta,
header .organization select,
header .organization .life-ring:hover,
header .organization .user-initials,
form .form-section .section-title .rounded-title-number,
form input[type="submit"] {
  color: white;
}

header .organization select,
table .input-thead select {
  width: 100px;
}

header .organization .user-initials,
header .organization .life-ring {
  width: 45px;
}

header .organization * {
  margin: 0 10px;
}

header .organization .life-ring:hover {
  border: none;
  background-color: var(--primary-color);
}

header .organization p:not(.user-initials p) {
  text-align: end;
}

header .organization .user-initials {
  margin-right: -5px;
  background-color: var(--secondary-color);
}

/**** back to buckets *****/

.back-to-buckets {
  width: 150px;
  margin: 30px 0 0 30px;
}

/************* form *************/

form {
  margin-top: 60px;
}

form h1,
form .form-section {
  margin-bottom: 60px;
}

form .form-section,
form input[type="submit"] {
  width: 50%;
}

form .form-section .section-title .rounded-title-number {
  background-color: var(--gray-primary);
}

form .form-section > p:not(p.first-section-text) {
  margin-bottom: 30px;
}

form input[type="submit"] {
  height: 50px;
}

form .form-section .section-title,
form .form-section input[type="text"],
form .form-section .alert {
  margin-bottom: 20px;
}

/****** Name your bucket ******/

p.first-section-text {
  font-size: 12px;
}

form .form-section .section-title {
  position: relative;
}

form .form-section .section-title .rounded-title-number {
  height: 24px;
  width: 24px;
  position: absolute;
  left: -40px;
}

form .form-section input[type="text"] {
  padding: 0 10px;
}

/****** Choose a region ******/

form .form-section img {
  width: 20px;
}

form .form-section .country input[type="radio"] {
  display: none;
}

form .form-section .country label {
  padding: 0 20px;
  height: 50px;
  width: 130px;
}

form .form-section .country label:hover,
form .form-section .country input[type="radio"]:checked + label {
  border-color: var(--primary-color);
}

/**** Set Bucket Visibility ****/

form .form-section .buckey-visibility-text {
  width: 55%;
}

form .form-section .bucket-visibility-content {
  padding: 30px;
}

form .form-section .bucket-visibility-radio input[type="radio"] {
  margin-left: 40px;
  transform: scale(1.4);
}

/**** Estimated cost ****/

form .form-section .alert {
  background-color: var(--alert-bacground);
  color: var(--alert-content);
}

form .form-section .alert i.fa-exclamation-triangle {
  font-size: 30px;
  margin-right: 30px;
}

form .form-section .alert a {
  align-items: flex-start;
}

/********* table *********/

table {
  border-collapse: collapse;
}

table thead,
table tbody td,
table tfoot .table-right-column {
  border-right: solid 1px var(--gray-tertiary);
}

table thead {
  border-top: solid 1px var(--gray-tertiary);
}

table .table-right-column,
table thead,
table thead table .table-right-column,
table tbody td {
  border-left: solid 1px var(--gray-tertiary);
}

table tbody td,
table tbody .table-right-column,
table tfoot .table-right-column {
  border-bottom: solid 1px var(--gray-tertiary);
}

table .table-left-column {
  width: 70%;
}

table .table-left-column .gb-text {
  font-style: italic;
}

table .table-right-column {
  width: 30%;
}

table .table-right-column div {
  justify-content: end;
}

table tfoot .column-invisible {
  visibility: hidden;
}

table .input-thead {
  margin: auto;
  width: max-content;
}

table .input-thead input {
  width: 70px;
  padding: 0 10px;
}

table .storage-input * {
  height: 30px;
}

table .input-thead input,
table .storage-input input[type="number"] {
  border-radius: 5px 0 0 5px;
}

table .storage-input input[type="number"] {
  padding-left: 10px;
}

table .input-thead select,
table .storage-input .gb {
  border-radius: 0 5px 5px 0;
}

table .storage-input .gb {
  width: 30px;
}

table .storage-input input::-webkit-outer-spin-button,
.storage-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

table .storage-input input[type="number"] {
  -moz-appearance: textfield;
}

/************* footer *************/

footer {
  height: 100px;
  align-items: flex-end;
}

footer a {
  font-size: 14px;
  margin: 0 20px 20px;
}
