/* portfolio/css/portfolio.css */

body {
  margin: 0;
  padding: 0;
  background: url("../assets/background.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Courier New", monospace;
  color: #0000ee;
}

.portfolio-container {
  max-width: 1100px;
  margin: 60px auto 40px;
  padding: 0 20px;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.portfolio-item {
  border: 1px solid #0000ee;
  text-align: center;
  position: relative;
  background: white;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.title {
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.price {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 6px;
}


.ascii-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ascii-egg {
  position: absolute;
  font-size: 14px;
  color: #0000ee;
  opacity: 0.5;
  pointer-events: auto;
  text-decoration: none;
}

.ascii-egg:hover {
  opacity: 1;
  text-shadow: 0 0 3px white;
}

.thumbnail-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #0000ee;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  z-index: 3;
}

.thumbnail-button:hover {
  background: #5555ff;
}

.nokia-popup {
  display:none;
  position: fixed;
  top: 96px;
  bottom: 120px;
  left: 500px;
  right: 500px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid #0000ee;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
}


.nokia-popup.active {
  display: flex;
}

.nokia-top-bar {
  height: 24px;
  background: #d0d0ff;
  color: #0000ee;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #0000ee;
}

.nokia-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 25px;
  gap: 12px;
}


.nokia-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nokia-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nokia-text {
  display: none;
  font-size: 14px;
  color: #0000ee;
  background: #fff;
  padding: 10px;
  border: 1px solid #0000ee;
}

.nokia-text.active {
  display: block;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid #0000ee;
  background: #f8f8ff;
}

.bottom-bar button {
  font-family: inherit;
  font-size: 14px;
  color: #0000ee;
  background: none;
  border: none;
  cursor: pointer;
}

.bottom-bar button:hover {
  text-decoration: underline;
}


