:root {
  --blue: #7cc7d4;
  --green: #44aa51;
  --yellow: #e9df26;
  --red: #dc5234;
  --purple: #878de3;
  --pink: pink;
  --orange: #fdd6c0;
  --font-size: 18px;
  --p-margin: 24px;
  --bg: white;
  --fg: #333;
  --link: blue;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2a2e;
    --fg: #d7d7db;
    --pink: #805159;
    --orange: #825433;
    --purple: #3e4062;
    --link: skyblue;
  }

  img {
    opacity: 0.75;
    transition: opacity 0.5s ease-in-out;
  }

  img:hover {
    opacity: 1;
  }
}

html,
body,
div,
span,
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}

*[lang="ar"] {
  text-align: right;
}

html {
  color: var(--fg);
  background-color: var(--bg);
  font-family: sans-serif;
  font-size: var(--font-size);
}

body {
  padding: 8px 12px;
}

p {
  line-height: 1.75;
  margin-bottom: var(--p-margin);
  max-width: 70ch;
}

h1 {
  width: max-content;
  margin-bottom: 48px;
  box-shadow: inset -20px -10px var(--orange);
  border-radius: 8px;
  font-size: 3rem;
}

h2 {
  width: max-content;
  margin-bottom: 32px;
  box-shadow: inset 20px 10px var(--purple);
  border-radius: 12px;
  border-radius: 12px;
  font-size: 2rem;
}

h3 {
  box-shadow: inset 20px 10px #6469b8;
  border-radius: 12px;
}

a {
  color: var(--link);
}

nav ul > li {
  display: inline-block;
}

nav ul {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: inset 20px 10px var(--pink);
}

article {
  max-width: 70ch;
  padding: 2ch;
  margin: auto;
}

img {
  max-height: 50%;
  max-width: 50%;
}

@media screen and (min-width: 640px) {
  .images {
    width: 50vw;
    height: 50vw;
  }
  img {
    max-height: 100%;
    max-width: 100%;
  }
}

@media screen and (min-width: 1400px) {
  .images {
    width: 1080px;
    height: 1080px;
  }
}
.images-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  position: relative;
}

.images-wrapper {
  outline-radius: 12px;
}

.images {
  border: 20px solid var(--blue);
  position: relative;
  z-index: 3;
  background-color: var(--blue);
  border-radius: 12px;
}

.images:before {
  content: " ";
  position: absolute;
  z-index: 1;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 10px solid var(--yellow);
  border-radius: 12px;
}

.images:after {
  content: " ";
  position: absolute;
  z-index: 1;
  top: -23px;
  left: -23px;
  right: -23px;
  bottom: -23px;
  border: 5px solid var(--green);
  border-radius: 12px;
}

.basmallah-subtitle {
  display: flex;
  flex-direction: row-reverse;
}

.writing h1 {
  font-size: var(--font-size);
  margin-bottom: var(--p-margin);
}
