@import "./globs.css";

body {
  width: 100vw;
  height: 95vh;
  overflow: hidden;
}

main {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  padding-top: 15px;
  background-color: #000;
  background-image: url(../assets/imgs/us/skull.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 22, 48, 0.54);
}

header {
  position: relative;
  width: 100vw;
  height: 9vh;
  margin-bottom: 15vh;
  background-image: url("../assets/imgs/us/slivertext.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

header::after {
  content: "Under Construction";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  height: auto;
  background: rgba(14, 14, 14, 0.4);
  text-align: center;
  font-family: var(--font__main);
  color: var(--font__clr-main-light);
  font-size: 1.5rem;
}

nav {
  width: 100%;
  height: 7vh;
  position: absolute;
  top: 15vh;
  left: 0;
  /* background: var(--font__clr-main-light); */
}

nav ul {
  list-style-type: none;
  width: 100%;
  max-width: 800px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

nav ul li {
  flex-basis: 30%;
  height: 100%;
  fill: var(--font__clr-main-light);
  display: flex;
  flex-flow: column;
  justify-content: center;
}

nav ul li svg {
  height: 70%;
  cursor: pointer;
}

li[data-cur] {
  background: var(--font__clr-main-light-half);
}

li[data-cur] svg {
  fill: var(--font__clr-main-dark);
}

section {
  width: 90vw;
  max-width: 600px;
  height: 69vh;
  overflow-y: scroll;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(44, 44, 44, 0.4);
  font-family: var(--font__main);
  color: var(--font__clr-main-light);
  display: none;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
  animation-delay: 0s;
  animation-iteration-count: 1;
}

@keyframes left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-110%);
  }
}

@keyframes right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(110%);
  }
}

section[data-cur] {
  display: block;
  /* background: var(--font__clr-main-light-half); */
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

#events-list {
  width: 100%;
  height: auto;
}

.events-item {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--font__clr-main-light);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.events-item__details-cont {
  width: 100%;
  height: 100%;
  padding: 12px 20px;
  background-color: rgba(44, 44, 44, 0.8);
}

.events-item__title {
  margin-bottom: 6px;
  font-family: var(--font__deco);
  font-size: 1.5rem;
  text-shadow: 2px 2px 7px rgb(81, 79, 244);
  text-align: center;
}

.events-item__general {
  width: 100%;
  margin-bottom: 12px;
  background: var(--font__clr-main-light-qrtr);
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
}

.events-item__description {
  max-height: 100px;
  text-overflow: ellipsis;
}

#contact > form {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

h1 {
  width: 100%;
  padding: 15px 0;
  text-align: center;
}

.field {
  display: flex;
  flex-flow: column;
  position: relative;
  margin-bottom: 22px;
  font-size: 2em;
}

.one-line {
  flex-flow: row;
  justify-content: space-between;
}

.field:not(.one-line) label {
  margin-left: 10px;
  margin-bottom: 3px;
}

input,
select,
textarea,
[type="checkbox"] ~ label {
  border: none;
  border-radius: 7px;
}

select {
  width: 90%;
  margin: 20px auto;
  background: rgba(240, 240, 240, 0.7);
  padding-left: 7px;
  font-family: var(--font__main);
  font-size: 1.5rem;
  color: var(--font__clr-main-dark);
  cursor: pointer;
}

.is-to-general {
  display: none;
}

.field input[type="text"],
.field textarea,
.field input[type="email"] {
  align-self: center;
  width: 85%;
}

.field input[type="text"],
.field input[type="email"] {
  height: 2.4rem;
}

.field textarea {
  padding: 7px;
}

[type="checkbox"] {
  display: none;
}

[type="checkbox"] ~ label {
  width: 90%;
  align-self: center;
  padding: 7px 0;
  background-color: rgba(44, 44, 44, 0.8);
  text-align: center;
}

[type="checkbox"]:checked ~ label {
  background: rgb(11, 129, 76);
  background: linear-gradient(
    180deg,
    rgba(11, 129, 76, 1) 55%,
    rgba(232, 233, 232, 0.7021183473389356) 100%
  );
  cursor: pointer;
}

[type="submit"] {
  align-self: center;
  width: 90%;
  margin-bottom: 20px;
  padding: 7px 0;
  background: var(--font__clr-main-light);
  font-family: var(--font__main);
  font-size: 2rem;
  color: var(--font__clr-main-dark);
  cursor: pointer;
}

.submit__error > label {
  color: red;
}

.submit__error > :not(label) {
  border: 1px solid red;
}

#contact__result {
  display: none;
  width: 100%;
  height: 40%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  margin-top: 30%;
  text-align: center;
  font-size: 2rem;
  flex-flow: column;
  justify-content: center;
}

.result__success {
  display: flex !important;
  background: linear-gradient(
    180deg,
    rgba(11, 129, 76, 1) 55%,
    rgba(232, 233, 232, 0.7021183473389356) 100%
  );
  color: var(--font__clr-main-light);
  animation: fade 0.2s linear 1.5s 1;
}

.result__error {
  display: flex !important;
  background: rgba(204, 204, 204, 1);
  color: var(--font__clr-main-dark);
  animation: fade 0.2s linear 1.5s 1;
}

@keyframes fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
