html {
  font-size: 15px;
}

/* FIREFOX SCROLLBAR */
/* @supports (scrollbar-color: auto) {
  :root {
    scrollbar-color: #b0b0b0 #f1f1f1 !important;
  }

  html,
  body,
  * {
    scrollbar-width: thin !important;
    scrollbar-color: #b0b0b0 #f1f1f1 !important;
  }
} */

@media screen and (min-width: 390px) {
  html {
    font-size: 16px;
  }
}

@media screen and (min-width: 800px) {
  html {
    font-size: 17px;
  }
}

@media screen and (min-width: 1040px) {
  html {
    font-size: 18px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  font-family: "Poppins", "Segoe UI", Helvetica, Verdana, sans-serif;
  line-height: 1.5;
  color: white;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    25deg,
    rgba(19, 86, 132, 1) 20%,
    rgba(85, 139, 183, 1) 49%,
    rgba(156, 183, 204, 1) 73%,
    rgba(213, 232, 247, 1) 98%
  );

  background-size: cover;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
}

.header-title {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  justify-content: center;
  align-items: center;
  margin: 0;
}

img {
  display: block;
  height: 2.5em;
  margin: 0.7em 1.5em;
  border-radius: 9999px;
}

h1 {
  margin: 0;

  font-family: "Lucida Console", "Poppins", Arial, sans-serif;
  font-size: 2em;
  font-weight: 300;

  text-shadow: 0px 0px 4px rgb(9, 25, 80);
}

.imie {
  font-family: "Dancing Script", cursive;
}

.header-text {
  width: 95%;
  margin: 15px auto 15px auto;
  max-width: 1200px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 40px;
}

.header-text > p,
.project > p {
  padding: 0 20px 0 20px;
  text-align: left;
  font-size: 0.8rem;
}

/* MAIN & ASIDE - WRAPPER*/

.wrapper {
  flex: 1;

  width: 95%;
  max-width: 1200px;
  margin-top: 25px;
  margin-bottom: 50px;

  display: flex;
  flex-wrap: wrap;
  gap: 20px 20px;
}

.wrapper.mainpage {
  flex-direction: column-reverse;
}

.wrapper.subpage {
  flex-direction: column;
}

aside {
  flex: 1;
  min-width: 260px;
}

/* MAIN */

h2 {
  margin: 10px 0 0 0;
  color: #cb3406;
}

.project {
  /* width: 100%; */

  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);

  background: linear-gradient(
    130deg,
    rgba(156, 183, 204, 0.6) 10%,
    rgba(85, 139, 183, 0.6) 40%,
    rgba(85, 139, 183, 0.6) 70%
  );
}

/* GITS */

.project-code {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.gist-container {
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: auto;
}

.gist .gist-file {
  margin-bottom: 0 !important;
}

div.gist .gist-data {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

div.gist .blob-wrapper {
  padding-bottom: 12px !important;
}

div.gist .blob-code {
  padding-right: 20px !important;
  padding-left: 20px !important;
}

/* USUNIECIE OTULINY PRZY NAWIGACJI STRZALKAMI KLAWIATURY CHROME*/
.gist .blob-wrapper:focus,
.gist .blob-wrapper:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* WITHOUT ONECOMPILER Mobile Information */

.try-console {
  width: 100%;
  background: #09090b;
}

.try-console > p {
  font-family: "Lucida Console", "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 10px 20px 10px 20px;
  text-align: left;
  font-size: 0.8rem;

  color: #9f9f9a;
  border-top: solid 1px #2a2b2d;
  background: #121215;
}

.try-console > h2 {
  margin-bottom: 10px;
  padding-left: 20px;
  text-align: left;
  font-size: 1rem;
}

/* ONECOMPILET Mobile */

/* CONSOLE TRIM */

main {
  /* flex: 3; */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;

  min-width: 0; /* konsola potrzebuje żeby się skalować */
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;

  min-width: 0;

  position: relative;
  overflow: hidden;
}

/* ONECOMPILER Mobile */

.console {
  display: none;
}

.console-mobile {
  height: 471px;
  width: 266%;
  transform: translateX(-62%);

  background-color: #121215;

  overflow: hidden;
}

@media screen and (min-width: 440px) {
  .console-mobile {
    width: 262%;
    transform: translateX(-61.5%);
  }
}

@media screen and (min-width: 550px) {
  .console-mobile {
    width: 262%;
    transform: translateX(-61.2%);
  }
}

/* ASIDE - NAV MENU */

/* HIDDING - SHOWING list menu */
#basicNav,
#midNav {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#basicNav.active {
  display: block;
}

#midNav.active {
  display: block;
}

/* GAP between main menu buttons */
#menuToggleMid {
  margin-top: 20px;
}

/* ALL BUTTONS AND list items SETTINGS  */
button,
.nav-item {
  color: white;
  font-family: "Poppins", "Segoe UI", Helvetica, Verdana, sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 5px;
}

/* MAIN BUTTONS SETTING */

button {
  width: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border: 2px solid rgba(19, 86, 132, 0.8);
  border-radius: 9999px;
  background: linear-gradient(
    270deg,
    rgba(19, 86, 132, 1) 0%,

    rgba(11, 52, 79, 1) 88%
  );

  padding: 5px 10px 5px 10px;
}

/* PROJECT LIST SETTINGS */
.nav-item {
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9999px;

  padding: 5px;

  background: linear-gradient(
    270deg,
    rgba(19, 86, 132, 1) 20%,
    rgba(85, 139, 183, 1) 48%,
    rgba(85, 139, 183, 1) 68%
  );
}

/* BUTTONS HOVER */
.nav-item:hover {
  background: linear-gradient(
    270deg,
    rgba(140, 0, 0, 1) 20%,
    rgba(203, 52, 6, 1) 78%,
    rgba(242, 204, 173, 1) 100%
  );

  cursor: pointer;
}

.button:hover,
button:hover {
  transform: translateY(-2px) scale(1.02);

  cursor: pointer;
}

.selected {
  background: linear-gradient(
    270deg,
    rgba(140, 0, 0, 1) 20%,
    rgba(203, 52, 6, 1) 78%,
    rgba(242, 204, 173, 1) 100%
  );
}

/* CONTACT AND HELLO - BAR */

.contact-bar,
.contact-bar-small {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  font-family: "Lucida Console", "Poppins", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
}

.contact-bar {
  display: none;
}
.contact-bar-small {
  display: flex;
}

.hello,
.phone-mail {
  display: flex;
  margin: 0;

  align-items: center;
}

.hello {
  flex: 100%;
  justify-content: flex-start;
  background: linear-gradient(
    68deg,
    rgba(255, 255, 255, 1) 20%,
    rgba(252, 252, 252, 0.8) 45%,
    rgba(251, 251, 251, 0.5) 60%,
    rgba(250, 250, 250, 0) 80%
  );
}

.phone-mail {
  flex: 75%;
  justify-content: flex-end;
  background: linear-gradient(
    68deg,
    rgba(250, 250, 250, 0) 10%,
    rgba(251, 251, 251, 0.5) 30%,
    rgba(252, 252, 252, 0.8) 60%,
    rgba(255, 255, 255, 1) 80%
  );
  margin-top: 1.2rem;
}

.phone-mail a,
.hello a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 5px 10px 2px 10px;
  padding: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0px 0px 2px rgba(9, 26, 80, 0.5);

  color: #000;
  line-height: 1.2;
  text-align: center;
}

/* LINK DECORATION */

a:link {
  text-decoration: none;
}

a:active {
  text-decoration: none;
  text-decoration-color: none;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  line-height: 1.2;
}

/* FOOTER */

footer {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);

  border-top: 2px solid #000000;
  text-align: center;

  padding-top: 0.5rem;
  padding-bottom: 0.5rem;

  color: #ffffff;
  font-size: 0.8rem;
}

.footer-item {
  margin: 0;
  padding: 0;
}

/* GIST source buttons */

.project-code-source {
  display: flex;
  justify-content: flex-start;
  gap: 0px;
  margin: 0 auto 0 0;

  background: #c2c2c2;
  border-bottom: solid 1px #cb3406;
}

.source-button {
  width: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;

  border: none;
  border-right: solid 1px #f2f2f2;
  border-radius: 0;
  background: #c2c2c2;

  padding: 5px 10px 5px 10px;
  margin: 0;
}

#header-button {
  background: #f2f2f2;
  color: #cb3406;
}

.source-button:hover {
  transform: none;
  background: #f2f2f2;
  color: #cb3406;
  cursor: pointer;
}

#gist-heder {
  display: block;
}

#gist-implementation {
  display: none;
}

#gist-main {
  display: none;
}

/* CUSTOM BUTTON for MYCOMPILER */
.custom-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px 25px 2px auto;
}

.custom-run-button,
.custom-stop-button {
  display: flex;
  width: 75px;
  height: 32px;

  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
}

.custom-run-button {
  background: #e91e63;
}

.custom-stop-button {
  background: #555;
}

.custom-run-button:hover {
  transform: none;
  background: #c2185b;
  cursor: pointer;
}

.custom-stop-button:hover {
  transform: none;
  background: #444;
  cursor: pointer;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* MEDIA PAGE LAYOUT*/

/* HELLO AND CONTACT-BAR Desktop */
@media screen and (min-width: 666px) {
  .contact-bar {
    display: flex;
  }

  .hello {
    flex: 20%;
    padding-left: 20px;
  }

  .phone-mail {
    padding-right: 20px;
  }
  .contact-bar-small {
    display: none;
  }
}

/* ONECOMPILER Desktop */

@media screen and (min-width: 690px) {
  .console {
    display: flex;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
  }

  .console-mobile {
    display: none;
  }

  .custom-buttons {
    display: none;
  }

  .try-console {
    display: none;
  }
}

/* MAIN and ASIDE Desktop Layout */

@media screen and (min-width: 985px) {
  .wrapper.mainpage {
    flex-direction: row;
  }

  .wrapper.subpage {
    flex-direction: row;
  }

  main {
    flex: 3;
  }
}

/* HIDDING ELEMENTS important */

.hidden {
  display: none;
}
