body {
  margin: 0;
}

p {
  font-family: gillsans; 
  font-size: 15px;
  line-height: 1.5em;
  text-align: justify;          
  text-align-last: center;      
  color: #000000;                 
}

/* full-screen colored sections */
.h6-1, .h6-2, .h6-3, .h6-4, .h6-5 {
  display: flex;                
  justify-content: center;      
  align-items: center;          
  text-align: justify;          
  width: 100vw;                 
  height: 100vh;                
  margin: 0;                    
  padding: 250px;                
  border: none;                 
  box-sizing: border-box;  
  padding: 40px 20px;  /* or whatever small top spacing you want */
height: auto;        /* allow scroll */
min-height: 100vh;   /* still fills the screen when content is short */

}

.h6-1 { background-color: #FFD701; }
.h6-2 { background-color: #EC4A24; }
.h6-3 { background-color: #5480C1; }
.h6-4 { background-color: #30AA54; }
.h6-5 { background-color: #ffffff; color: black; }

.cookie {
  display: inline-block;            
  animation: spin 6s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { animation: none; }
}

.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50vh;          
  transform: translateY(-50%); 
  max-width: 100%;
  height: auto;
}

.yes-box,
.no-box {
  position: absolute;
}

.yes-box {
  bottom: 36%;   
  left: 33%;     
}

.no-box {
  bottom: 36%;
  left: 39%;
}

#fortune-cookie {
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;  
  max-width: 100%;
  height: auto;
}

.home {
  background-color: beige;
  font-family: Futura, sans-serif;
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  max-width: 100%;
  height: auto;
}

/* shared style for nav-like text (Weeklies / Projects / etc.) */
.nav-link {
  font-family: gillsans;
  font-size: 24px;
  text-align: center;
  margin: 10px 0;
  display: block;         /* so Weeklies / Projects stack nicely */
  text-decoration: none;  /* remove underline from links */
  color: inherit;         /* let .title / .weeklies / .projects set color */
}

/* specific colors for nav labels if you want them */
.weeklies {
  color: #5480C1;
  animation: spin 20s linear infinite;
  
}

.projects {
  color: rgba(84, 128, 193, 0.53);
  animation: spin 20s linear infinite;
}

/* page title */
.title {
  color: #651942;
  animation: spin 20s linear infinite;
}

/* layout for the Projects list */
#mainDiv {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center the links horizontally */
  gap: 8px;
}

/* style the project links */
#mainDiv a {
  font-family: gillsans;
  font-size: 18px;
  color: #000000;
  text-decoration: none;
}

#mainDiv a:hover {
  text-decoration: underline;
}

/* center the back link */
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  font-family: gillsans;
  color: #000000;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}
