.outside1 {
  width: 400px;
  height: 400px;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inside1 {
  background-color: pink;
  height: 200px;
  width: 200px;
}

.outside2 {
  width: 400px;
  height: 400px;
  background-color: #ccc;
  display: flex;
}

.inside2 {
  background-color: pink;
  height: 200px;
  width: 200px;
  margin: auto;
}

.outside4 {
  display: grid;
  place-content: center;
  background-color: #ccc;
}

.inside4 {
    color: black;
}

.outside5 {
  width: 400px;
  height: 400px;
  background-color: #ccc;
  position: relative;
}

.inside5 {
  background-color: pink;
  height: 200px;
  width: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.outside7 {
  width: 400px;
  height: 400px;
  background-color: #ccc;
  text-align: center;
}

.inside7 {
  background-color: pink;
  line-height: 400px;
}

.outside1, .outside2, .outside3, .outside5, .outside7 {
    max-width: 100%;
    width: min(400px, 90vw);
    height: min(400px, 90vw);
}

.element {
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background-color: pink;
}

.code-container {
    position: relative;
    margin: 0.8rem 0;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.copy-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

#upBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    z-index: 10;
}
