/* Prevent global styles from affecting mxgraph diagrams */
.mxgraph,
.mxgraph * {
  text-shadow: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  max-width: unset !important;
  color: unset !important;
  background: unset !important;
}
a {
  color: #f2f7fb;
}
.about-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-images figure {
  margin: 0;
}
img,
iframe {
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  display: block;
}
.about-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.about-images figure {
  margin: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-images img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
html {
  background: linear-gradient(to top, #0369db 0%, #068bef 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100%;
}
body {
  color: #f2f7fb;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  position: relative;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

pre code {
  text-shadow: none !important;
}

.cloud-background {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  max-width: 500px;
  height: auto;
  border: none !important;
}

.cloud-background-top {
  position: fixed;
  top: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  max-width: 200px;
  height: auto;
  border: none !important;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cloud-background-center {
  position: fixed;
  top: 35%;
  left: 30%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  max-width: 250px;
  height: auto;
  border: none !important;
}

.cloud-background-left {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  max-width: 150px;
  height: auto;
  border: none !important;
}

.weekly-grid a,
.weekly-grid span {
  padding: 0.5em 1em;
  border: 2px solid #b6cee6;
  background: #f2f7fb;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  color: #222 !important;
  text-shadow: none !important;
}

.weekly-grid span {
  text-decoration: line-through;
  pointer-events: none;
  cursor: not-allowed;
  background: #f2f7fb;
}

/* If .showcase-disabled is a class on span, use this selector: */
.weekly-grid span.showcase-disabled {
  text-decoration: line-through;
  pointer-events: none;
  cursor: not-allowed;
  background: #f2f7fb;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1em;
}

.gallery-item {
  flex: 1 1 180px;
  min-width: 180px;
  position: relative;
}

.gallery-sketch,
.gallery-image {
  width: 100%;
  max-width: 100%;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
  display: block;
}
.gallery-grid iframe {
  width: 100%;
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
}

.gallery-code {
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
  background: #222831;
  width: 98%;
  height: auto;
  max-height: 600px;
  overflow: auto;
  margin-left: 1rem;
  margin-right: 1rem;
}

/* Copy button styles for code blocks */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-2 {
  top: 0.5rem;
}

.right-2 {
  right: 0.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.text-gray-500 {
  color: #6b7280;
}

.hover\:text-gray-700:hover {
  color: #374151;
}

/* Transparent button styles */
.copy-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.gallery-grid iframe {
  aspect-ratio: 16/9;
}

.gallery-sketch iframe {
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
  border-radius: 4px;
  background: #222831;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
  box-sizing: border-box;
}

.gallery-sketch canvas {
  border: 2px solid #f2f7fb;
  box-sizing: border-box;
  border-radius: 4px;
  background: #222831;
  width: 100%;
  height: auto;
}

a:visited {
  color: #b6cee6;
}

hr {
  border: none;
  border-top: 2px solid #b6cee6;
  height: 0;
  margin: 2em 0;
}
