


* {
  box-sizing: border-box;
}


html {
    cursor: url('/images/rainbowcursor.gif'), pointer;
}


p {
  line-height: 1.4;
}

  aside {
    width: 15%;
  }

 .button-container {
       display: flex;
       justify-content: center;
       align-items: center;
       flex-wrap: wrap;
}


.button-container img {
       margin-left: 5px;
       margin-right: 5px;
}


.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 50%;
}

.caption {
  text-align: center;
}

body {
  color: OldLace;
  font-family: Verdana, sans-serif;
  background-color: Indigo;
  background-image: url("wallpaper7.jpg")
}

.grid-container {
   display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
/*This makes the links stack when the screen is minimized but the grid container loses its centering */
   /* gap: 1rem; Not sure what this does but it came with the line above*/   

   grid-template-columns: repeat(auto-fill, minmax(25%, 1fr)); 
  /* Links don't stack with this option */
   
   row-gap: 20px;
   max-width: 80%;
   align-items: center;
}

.grid-item {
  /* padding: 20px; */
   text-align: center;
}


#flex {
    display: flex;
  }


main {
  margin: auto;
  flex: 1;
  max-width: 80%;
  order: 2;
}


.header {
  font-family: Georgia, serif;
  background-color: transparent;
  color: SpringGreen;
  padding: 15px;
}

.footer {
  background-color: transparent;
  text-align: center;
}



a:link {
  color: LightSalmon;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: GoldenRod;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: Khaki;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: HotPink;
  background-color: transparent;
  text-decoration: underline;
}

hr.new1 {
  border: 1px solid limegreen;
}
  
.talk {

	background-color: #1c2454; 
	padding: 20px;
	border-style: solid;
	border-width: medium;
	border-color: #4B335C;
}

.title {
    color: SpringGreen;
    text-align: center;
}    
  
.recipe {
    background-color: Indigo;
    color: SpringGreen;
    width: 60%;
    margin: auto;
  
}

.responsiveimg {
   max-width: 100%;
   height: auto;
}

.pic {
  display: flex;
  justify-content: center;
  align-items: center;
}


/*THESE 2 ONLY FOR THE CROSS STITCH PAGE */

.photorow {
  display: flex;
}

.photocolumn {
  flex: 50%;
  padding: 5px;
}

#rcorners2 {
  border-radius: 25px;
  border: 2px solid #00FF7F;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

/* TRYING OUT ANIMATED BORDERS */

.gradient-border {
  --borderWidth: 3px;
  background: #1D1F20;
  position: relative;
  border-radius: var(--borderWidth);
}

.gradient-border:after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 3s ease alternate infinite;
  background-size: 300% 300%;
}


@keyframes animatedgradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* END OF THE ANIMATED BORDER SECTION */

/* LIGHTBOX FOR CROSS STITCH GALLERY */


#darkbox { width:1280px; height:720px; position:absolute;
			top:0; left:0; background-color:#333; overflow: hidden; text-align:center;
		}
		.darkboximg { padding:5%; max-width: 1216px; max-height: 684px; }

		#gallery {
			line-height:0;
			-webkit-column-count:5;
			-webkit-column-gap:5px;
			-moz-column-count:5;
			-moz-column-gap:5px;
			column-count:5;
			column-gap:5px;
			margin-top:2rem;
		}

		#gallery img {
			width: 100%;
			height: auto;
			margin-bottom:5px;
			filter: grayscale(100%);
			transition: filter 2s;
		}

		#gallery img:hover {
			filter:none;
		}

		@media (max-width: 1200px) {
			#gallery {
				-moz-column-count:    4;
				-webkit-column-count: 4;
				column-count:         4;
			}
		}
		@media (max-width: 1000px) {
			#gallery {
				-moz-column-count:    3;
				-webkit-column-count: 3;
				column-count:         3;
			}
		}
		@media (max-width: 800px) {
			#gallery {
				-moz-column-count:    2;
				-webkit-column-count: 2;
				column-count:         2;
			}
		}
		@media (max-width: 400px) {
			#gallery {
				-moz-column-count:    1;
				-webkit-column-count: 1;
				column-count:         1;
			}
		}

/* END OF LIGHTBOX FOR CROSS STITCH GALLERY */



/* START MEDIA QUERIES */


 @media only screen and (max-width: 800px) {
    #flex {
            flex-wrap: wrap;
  }


}
@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
  
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  [class*="column"] {
    width: 100%;
    
  }
}