:root {
  --bg-color: #FFFFFF;
  --text-color: #202124;
  --gray-color: #EDEEF1;
  --h1-color: #FF3131;
  --logo-size: 275px;
}

* { padding: 0; margin: 0; font: Titillium Web, sans-serif, "400", "200|300|400|600|700|900"; }

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

body {
  font: 1rem/1.5 "Titillium Web", sans-serif, "400";
  display: flex;
  flex-direction: row;
  background: var(--bg-color);
  color: var(--text-color);
}

h1 { color: var(--text-color); font-size: 2.7rem;  font-weight: 700; line-height: 1; margin-bottom: 0.7rem; }
h5 { color: var(--text-color); font-size: .95rem; font-weight: 400; text-align: left; opacity: .35; }

/* Dark/Light Automatic Mode
--------------------------------------------------------------------------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #FFFFFF;
    --text-color: #202124;
    --gray-color: #EDEEF1;
    --h1-color: #BDC0C3;
  }
  .logo{ fill: #000000; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #202124;
    --text-color: #BDC0C3;
    --gray-color: #28292C;
    --h1-color: #00FFAA;
  }
  .logo{ fill: #FFFFFF; }
}

/* Alignment Container - Main */
.container {
  display: grid;
  grid-template-columns: .25fr .5fr .25fr;
  grid-template-rows: .1fr 1fr .1fr;
  gap: 0em 0em;
  grid-auto-flow: row;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  grid-template-areas:
    ". . ."
    ". main ."
    ". . .";
  width: 100%;
  height: 100vh;
}

/* Logo Container - Main */
.logo-cell {
  align-items: center;
  justify-content: center;
  grid-area: main;
  width: 275px;
  height: 100px;
}


/* Resize SVG on hover
--------------------------------------------------------------------------- */
#logobutton {
  height: 100px;
  width: var(--logo-size);
  border: none;
  background: none;
  cursor: pointer;
}
#logobutton:hover svg {
  transform: scale(0.9);
}
#logobutton svg {
  outline: none;
  transition: transform 0.175s ease-in-out;
}


/* Button action to open contact form pop-up
--------------------------------------------------------------------------- */
.modal-wrapper {
  display: flex;
  z-index: 999;
  width: 100%;
  height: 100%;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0;
  opacity: 0;
  filter: alpha(opacity=0);
  transition: all 0.3s ease-in-out;
}
.modal-wrapper.open {
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=1);
  background: rgba(0, 0, 0, 0.2);
}

.modal {
  display: inline-block;
  position: relative;
  margin: auto;
  height: 550px;
  width: .5vh;
  min-width: 900px;
  background: var(--gray-color);
  opacity: 0;
  filter: alpha(opacity=0);
  transition: all 0.3s ease-in-out;
  transform: scale(0.25);
}

.modal-wrapper.open .modal {
  opacity: 1;
  filter: alpha(opacity=100);
  transform: scale(1);
  border-radius: 20px;
}

.content { text-align: center; }


/* Contact Form
--------------------------------------------------------------------------- */
form {
  position: relative;
  padding: 0;
  overflow-x: hidden;
  z-index: 10;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: calc(100% - 2rem);
  width: 100%;
  overflow: hidden;
  z-index: 1000;
  border: 0px dashed var(--h1-color);
  border-radius: 0 0 20px 20px;
}

.contact-form {
  position: relative;
  height: inherit;
  align-items: stretch;
  justify-items: end;
  padding: 1rem 2rem 0 0; /* top right bottom left */
  border: 0px dashed #00FF00;
}

/* The main container for contact information */
.contact-info {
  position: relative;
  height: inherit;
  padding: 1rem 2rem 0; /* top right bottom left */
  border: 0px dashed #FF00FF;
}

/* Styling for the title within the contact information */
.contact-info .title {
  margin-bottom: 0.7rem;
  margin-top: -0.35rem;
  text-align: left;
}

/* input controls the Name and Email input boxes, this element controls the spacing between input boxes */
.input-container { position: relative; margin: 0 0 1rem 0; }

/* Name and Email input boxes without focus */
.input {
  width: 100%;
  outline: none;
  padding: 0.6rem 1.2rem;
  color: var(--text-color);
  font-size: 0.95rem;
  border-radius: 10px;
  transition: 0.25s;
  background: var(--gray-color);
  border: 1px dashed var(--text-color);
  opacity: 35%;
}

input:focus {
  padding: 1rem .2rem;
  overflow-y: auto;
  background: var(--bg-color);
  border: 1px dashed var(--bg-color);
  border-radius: 7px;
  opacity: 100%;
}
/* textarea controls the Message input box */
textarea.input {
  padding: 1rem .2rem;
  min-height: 250px;
  resize: none;
  overflow-y: auto;
  background: var(--gray-color);
  border: 1px dashed var(--text-color);
  border-radius: 7px;
  opacity: 35%;
}

/* Message container effects when the input container is focused */
textarea.input:focus {
  padding: 1rem .2rem;
  min-height: 250px;
  resize: none;
  overflow-y: auto;
  background: var(--bg-color);
  border: 1px dashed var(--bg-color);
  border-radius: 7px;
  opacity: 100%;
}

/* Position the labels above the input fields without focus*/
.input-container label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  padding: 0rem 0.4rem;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.25s;
}

/* Position the labels above the input fields on focus */
.input-container.textarea label { top: 1rem; transform: translateY(0); }

/* Container behind the small input text on focus */
.input-container span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 1rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

/* Pseudo-elements before and after the span for visual effects */
.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: 0.2s;
  height: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-color);
  border-radius: 7px 7px 0 0px;
}

/* Position the :before pseudo-element to the left */
.input-container span:before {
  left: 50%;
  border-radius: 0 7px 0 0;
}

/* Position the :after pseudo-element to the right */
.input-container span:after {
  right: 50%;
  border-radius: 7px 0 0 0;
}

/* Style changes when the input container is focused */
.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 10px;
  font-size: 0.8rem;
}

/* Expand the before and after pseudo-elements upon focus */
.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

/* Styling for the text within the contact information */
.text {
  color: var(--text-color);
  margin: 1.5rem 0 2rem 0;
  font-size: 1.15rem;
  text-align: left;
}

/* Close button */
.btn-close {
  cursor: pointer;
  position: relative;
  right: 10px;
  top: 5px;
  margin: 0;
  padding: 10px;
  width: 15px;
  height: 15px;
  float: right;
}

.clear { clear: both; }

/* Form - Send Button */
.btn {
  padding: 0.6rem 1.3rem;
  background: var(--text-color);
  border: 2px solid var(--text-color);
  font-size: 0.95rem;
  color: var(--bg-color);
  line-height: 1;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: 0.25s;
  margin: 0;
  width: 50%;
  margin-left: -50%;
}

.btn:hover { background: transparent; color: var(--text-color); }


/* Social Media Icons
--------------------------------------------------------------------------- */
.hov-em:hover { color: #F2AF1E; }
.hov-be:hover { color: #1769FF; }
.hov-ig:hover { color: #E1306C; }
.hov-li:hover { color: #0A66C2; }
.hov-gh:hover { color: #692DEC; }
.hov-x:hover { color: #FF3131; }

/* Styling for the social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  font-size: 28px;
  line-height: 20px;
  border: 0 dashed #FF00FF;
}

/* Styling for the social media icons box */
.social-icons a {
  width: 40px;
  height: 40px;
  background: transparent;
  margin: 0 .25rem 0 .25rem; /* top right bottom left */
  transition: 0.15s;
  border: 0 dashed #ff8800;
}

/* Hover effect on social media icons and their box */
.social-icons a:hover {
  margin-top: -2px;
  transform: scale(1.07);
  border: 0 dashed #0099ff;
}

/* Media Queries
--------------------------------------------------------------------------- */
@media (max-width: 850px) {
  .form { grid-template-columns: 1fr; }
  .contact-info:before { bottom: initial; top: -75px; right: 65px; transform: scale(0.95); }
  .contact-form:before { top: -13px; left: initial; right: 70px; }
  .text { margin: 1rem 0 1.5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 1.5rem; }
  .contact-info:before { display: none; }
  form, .contact-info { padding: .5rem .5rem 0; }
  .form { width: 400px; align-items: center; justify-content: center; }
  .text, .information, .social-media p { font-size: 1.25rem; }
  .title { font-size: 2.5rem; }
  .input { padding: 0.415rem .5rem; }
  .btn { padding: 0.45rem 1.2rem; }
  /* Added from pop-up animation */
  .modal { height: 95%; width: 100%; padding: 0; }
  /* My Additions */
  #logobutton{ width: calc(var(--logo-size) - 50px) }
}

@media screen and (max-width: 320px) {
  .form, .contact-info { padding: 1.5rem 0.8rem; }
}