/***************************************************/
/* general */
/***************************************************/

/* Page background inspired by SVG colors */
body {
  background: linear-gradient(to right, #aac300 0%, #cccccc 30%, #aac300 100%);
  margin: 0;
  font-family: sans-serif;
}

/* Main container with white background */
.container {
  max-width: 960px;
  margin: 0 auto;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  min-height: 100vh; /* 🔥 force full screen height */
  display: flex;
  flex-direction: column;
}




.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left h1 {
  font-size: 1.8rem;
  margin: 0;
}

.logo {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;

}

.translate-box {
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}


h1 {
  text-align: center;
  margin-bottom: 1rem;
}

h2, h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/*
h2::after, h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: #ffe500;
  opacity: 0.5;
  border-radius: 2px;
}
*/

hr {
  border: none;
  height: 4px;
  background: #ffe500;
  margin: 2rem 0;
  border-radius: 2px;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

button {
  background-color: #ffe500;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #ffff00;
}

.button-like {
  background-color: #ffe500;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.button-like:hover {
  background-color: #ffff00;
}

.button-like input[type="file"] {
  display: none;
}


#content {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin: 0.4rem 0;
}

.note-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
  padding: 0.4rem;
  font-size: 1rem;
}


/***************************************************/
/* Markdown content styling */
/***************************************************/
.markdown {
  font-family: Georgia, serif;
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  line-height: 1.6;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  overflow-x: auto;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  margin-top: 1.5em;
  color: #333;
}
.markdown h2::after,
.markdown h3::after {
  background-color: #ffe500;
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-top: 2rem;
}


.markdown ul,
.markdown ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.markdown code {
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.markdown pre code {
  display: block;
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown th,
.markdown td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: left;
}

.markdown th {
  background-color: #f0f0f0;
}

.markdown a {
  color: #0055cc;
  text-decoration: none;
}

.markdown a:hover {
  text-decoration: underline;
  color: #ffe500;
}
 


/***************************************************/
/* Check list                                      */
/***************************************************/
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin: 0.4rem 0;
  line-height: 1.5;
}


.checklist-section h2::after,
.checklist-section h3::after {
  background-color: #ffe500;
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-top: 2rem;
}


.checklist-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 0.8rem;
} 

.checklist-item p {
  margin-bottom: 0.4rem;
}


.checklist-item label {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  font-weight: normal;
  white-space: nowrap;
}

.checklist-item input[type="radio"] {
  margin-right: 0.4rem;
}

.description-field {
  font-size: 0.9rem;
  padding: 0.4rem;
  font-family: sans-serif;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
}



/* ############################## 
    CSS animation
  ############################## */

/* Make the SVG scale and not be clipped */
#logo {
  display: block;
  width: min(92vw, 520px);  /* responsive width, cap at ~520px */
  height: auto;
  overflow: visible;        /* IMPORTANT: allow tagline to render outside intrinsic box */
}

/* If your header or header-left had overflow: hidden; remove it */
.header, .header-left, .logo { overflow: visible !important; }

/* Colors */
#logo .django { fill: #111111; }
#logo .ml     { fill: #D50000; }
#logo .powered{ fill: #2496ED; }

/* Draw-in effect, then fill */
#logo .django, #logo .ml {
  stroke: currentColor;
  paint-order: stroke fill;
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: transparent;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
#logo .django { color:#111; animation: draw 1.2s ease-out forwards, fill-django .6s ease-out forwards .9s; }
#logo .ml     { color:#D50000; animation: draw 1.2s ease-out .15s forwards, fill-ml .6s ease-out 1.05s forwards; }

/* Tagline fades up */
#logo #tagline {
  opacity: 0;
  transform: translate(256,0);
  animation: tagline .6s ease-out 1.2s forwards;
}

/* Hover polish */
#logo { transition: transform .2s ease, filter .2s ease; will-change: transform; }
#logo:hover { transform: translateY(-2px); filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-django { to { fill: #111111; } }
@keyframes fill-ml     { to { fill: #D50000; } }
@keyframes tagline     { to { opacity: 1; transform: translate(256,120); } }



/* go back button */
#backToTop {
  position: fixed;
  left: 10px;
  bottom: 20px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#backToTop:hover {
  opacity: 1;
}
