@import url("reset.css");
:root {
  --font-color: #c0c0c0;
  --bg-color: #000000fb;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}
body {
  background: #000 url("img/TcWn.gif");
  background-blend-mode: screen;
  background-size: cover;
}
body.hack {
  background: #000 url("img/skull.gif") no-repeat center center;
  background-size: contain;
}
.terminal {
  background-color: #000000fb;
  color: var(--font-color);
  font-family: monospace;
  height: 100vh;
  overflow-y: scroll;
  font-size: 1rem;
}
.powered__by {
  padding: 0.5rem;
}

.output {
  padding: 0.75rem;
}

.input__container {
  display: flex;
  padding: 0.5em;
  gap: 0.5rem;
  background-color: transparent;
}

.prompt {
  color: #0f0;
  font-weight: bold;
  line-height: 1.5em;
}

.input {
  display: inline-block;
  border-bottom: none;
  outline: none;
  margin: 0;
  padding: 0;
  font-family: monospace;
  font-size: 16px;
  color: #fff;
  background: none;
  vertical-align: bottom;
  line-height: 1.5em;
}
.input::selection {
  background-color: var(--font-color);
  color: #000;
}

/* Commands list */
table.help,
th,
td {
  padding: 2px;
}

td:nth-child(even) {
  padding-left: 3rem;
}

/* Modal */
.modal {
  display: none; /* Par défaut, la fenêtre modale est masquée */
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}
.modal__title {
  background-color: green;
  line-height: 1.66rem;
  margin: -0.62rem 0 .62rem -10px;
  color: white;
  padding: 0;
  text-align: center;
  width: 108%;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  font-family: monospace;
}
.modal__title:hover {
  cursor: move !important;
}
.modal__content {
  font-family: monospace;
  background-color: #00000086;
  color: #fff;
  margin: auto; /* Centrer la fenêtre modale verticalement et horizontalement */
  padding: 10px;
  border: 1px solid #0f0;
  width: 100%;
  position: relative;
  box-shadow: 0 0 2rem rgba(0, 255, 0, 0.35);
}

.close {
  color: #0f0;
  position: absolute;
  top: -0.2rem;
  right: 0.5rem;
  font-size: 28px;
  font-weight: bold;
  transition: filter 0.4s;
}

.close:hover,
.close:focus {
  filter: brightness(0.75);
  text-decoration: none;
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Animations */
.fadeOut {
  animation: fadeOut 0.4s ease-in-out;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* Mobile */
@media screen and (max-width: 320px) {
  .output {
    max-width: 320px;
  }
}
@media screen and (max-width: 700px) {
  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }
}
