* {
    scroll-behavior: smooth;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    color: #6d6900;
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    background-color: #424242;
}

a {
    text-decoration: none;
}

.wrapper {
    max-width: 900px;
    margin: 0px auto;
    width: 100%;
    text-align: center;
    padding: 2%;
    background-color: #6d6b179c; 
    border: 1px solid white;
    height: 100vh;
}

.wrapper h1 {
    color: #ffffff;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8); 
}

.wrapper h1 + p {
    color: #dbd534;
}

.scoreWrap {
    float: left;
}
.timeWrap {
    float: right;
}

.outerWrap:after {
    content: "";
    display: block;
    clear: both;
}

.bg {
    background-color: #9baf04;
}

.wrapper button {
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    border: none;
    background-color: #ffff73;
    box-shadow: 0px 5px 0px 0px #cec346;
    outline: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 22px;
    margin: 20px;
    color: #313030;
    cursor: pointer;
}

.wrapper button:hover {
    background-color: #eefa80; /* Lighter violet on hover */
    box-shadow: 0px 5px 20px rgb(226, 244, 137); /* Intense glow on hover */
    transform: scale(1.05); /* Slight scaling effect */
}

.wrapper button:active {
    transform: translate(0px, 5px);
    box-shadow: 0px 1px 0px 0px;
}

.scoreWrap p, .scoreWrap span, .timeWrap p, .timeWrap span {
    font-size: 30px;
    color: #ECF0F1;
}

.wordsWrap {
    margin-top: 50px;
}

.words span {
    font-size: 60px;
    letter-spacing: 1px;
    color: #ECF0F1;
}

/* Background */
.background {
    background-image: url("../RESOURCES/SCI/BACKGROUNDS/sci.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    z-index: 0;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.5;
}

/* Academy Wrapper */
.academy-wrapper {
    z-index: 10;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.academy-wrapper h1 {
    text-shadow: rgba(219, 224, 255, 0.9) 0px 0px 18px;
}
/* Initial Entrance Buttons */
#initial-entrance {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

#initial-entrance button {
    width: 250px;
    height: 400px;
    border: none;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    text-shadow: rgba(163, 175, 255, 0.9) 0px 0px 18px;
    transition: all 0.3s ease;
}

#initial-entrance button:hover {
    transform: scale(1.05); /* Hover scaling */
    box-shadow: 0 0 15px #8c7ae6; /* Violet glow */
}

/* Button images */
.btn-lecture {
    background-image: url('../RESOURCES/IMAGES/door1.jpg');
}

.btn-hands-on {
    background-image: url('../RESOURCES/IMAGES/door2.jpg');
}

.btn-activity {
    background-image: url('../RESOURCES/IMAGES/door3.jpg');
}

/* Container Styles */
.lecture-container,
.hands-on-container,
.activity-container,
.twoPics-oneWord-container,
.spells {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    position: fixed;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in, opacity 0.3s ease-in;
    z-index: 100; 
}

.lecture-container,
.hands-on-container {
    z-index: 100; 
    background-image: 
    linear-gradient(rgba(208, 169, 69, 0.7), rgba(34, 27, 5, 0.7)), 
    url("../RESOURCES/SCI/BACKGROUNDS/scibkg.jpg");
    background-position: center;
    background-size: cover;
}


#lecture-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lecture-container p {
    background-color: #42450f8d;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 5px;
}

.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}


.return {
    background-color: #c0392b;
    color: white;
    padding: 10px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.return:hover {
    background-color: #e74c3c; /* Lighter red on hover */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); /* Red glow */
}

.return.top-left {
    position: absolute;
    top: 10px;
    left: 10px;
}



.hands-on-container {
    text-align: center;
}

.hands-on-container h2 {
    margin-top: 50px;
}

.quest-box h3 {
    margin-top: 0;
}



:root {
	--skintone-color: #DE9B72;
	--dark-color: #3A3D3E;
}

.body {
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-size: 140%!important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@media (min-width: 992px) {
	.body {
	    background-size: 148vh!important;
	    background-repeat: no-repeat !important;
	    background-position: 50% -31vh!important;
	}
}

.row {
	margin-right: 0;
    margin-left: 0;
}

.social-row {
	display: flex;
    flex-direction: column;
    right: 0;
    position: absolute;
}

@media (min-width: 768px) {
	.social-row {
		position: relative;
	  	flex-direction: row;
	  	justify-content: flex-end;
	}
}

.social-row a {
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-size: contain;
   	padding: 1em 0;
    z-index: 99;
    margin-bottom: 1em;
  	margin-right: 1em;
}

@media (min-width: 768px) {
	.social-row a {
	    width: 2.5em;
  	  	height: 2.5em;
	    padding: 1em 0;
	    margin-bottom: 0;
	}
}

@media (min-width: 1200px) {
	.social-row a {
	    width: 3em;
	    height: 3em;
	    padding: 0;
	}
}

.countach {
	font-family: countach,sans-serif;
	font-weight: 400;
	font-style: normal;
}

.tilda-petite {
	font-family: tilda-petite,sans-serif;
	font-weight: 400;
	font-style: normal;
}

.montserrat {
	font-family: montserrat, sans-serif;
	font-weight: 300;
	font-style: normal;
}

.skintone-text {
	color: var(--skintone-color);
}

.dark-text {
	color: var(--dark-color);
}

.white-text {
	color: #fff;
}

a:hover {
	color: #c2c2c2;
}

.logo {
	width: 20vh;
}

@media (min-width: 768px) {
	.logo {
		width: 16em;
	}
}

@media (min-width: 992px) {
	.logo {
		width: 18em;
	}
}

@media (min-width: 1200px) {
	.logo {
	    width: 28vh;
    	height: 28vh;
	}
}

h1 {
	font-size: 4.5vh;
    letter-spacing: 4px;
    padding-top: .5em;
}

@media (min-width: 992px) {
	h1 {
		font-size: 2.75em;
	}
}

@media (min-width: 1200px) {
	h1 {
		font-size: 3em;
	    letter-spacing: 5px;
	}
}

.lead {
    font-size: 1.5rem;
  	padding-top: 0.5em;
}

@media (min-width: 992px) {
	.lead {
	    font-size: 2rem;
	    padding-top: 0.5em;
	}
}

@media (min-width: 1200px) {
	.lead {
    	font-size: 2.5rem;
		padding-top: 1em;
	}
}

p.general {
    font-size: 2.5vh;
    margin-bottom: 0.5em;
    line-height: 1.25em;
}

@media (min-width: 992px) {
	p.general {
		font-size: 1.25em;
		 line-height: 1.5em;
	}
}

@media (min-width: 1200px) {
	p.general {
	    font-size: 1.5em;
	}
}


.inner-border {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.outer-border {
	border: 2px solid #DE9B72;
   	height: 99%;
    width: 98%;
    padding: 6px;
    margin: 0 auto;
}

@media (min-width: 992px) {
	.outer-border {
		height: 94%;
	}
}

.mid-border {
    border: 6px solid #DE9B72;
    height: 100%;
    width: 100%;
    padding: 6px;
    margin: auto;
}

.inner-border {
	position: relative;
	border: 2px solid #DE9B72;
    height: 100%;
    width: 100%;
    margin: auto;
}


/* Decorations */
.corner-decoration {
	position: absolute;
    width: 3em;
    margin: -3px;
}

@media (min-width: 768px) {
	.corner-decoration {
		width: 3.5em;
	  	margin: -4px;
	}
}

@media (min-width: 992px) {
	.corner-decoration {
		width: 4em;
	  	margin: -5px;
	}
}

@media (min-width: 1200px) {
	.corner-decoration {
		width: 5em;
	  	margin: -6px;
	}
}

.corner-decoration.corner-left-top {
	left: 0;
	top: 0;
}

.corner-decoration.corner-right-top {
	top: 0;
	right: 0;
	 -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.corner-decoration.corner-right-bottom {
	right: 0;
	bottom: 0;
	 -webkit-transform: scale(-1);
  	transform: scale(-1);
}

.corner-decoration.corner-left-bottom {
	left: 0;
	bottom: 0;
	-webkit-transform: scaleY(-1);
  	transform: scaleY(-1);
}


.vertical-decoration {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	width: 11em;
}


@media (min-width: 768px) {
	.vertical-decoration {
		width: 16em;
	}
}


@media (min-width: 992px) {
	.vertical-decoration {
		width: 20em;
	}
}

@media (min-width: 1200px) {
	.vertical-decoration {
		width: 27em;
	}
}

.vertical-decoration.top {
	top: 0;

}

.vertical-decoration.bottom {
	bottom: 0;
	-webkit-transform: scaleY(-1);
  	transform: scaleY(-1);
}



/* Quest Boxes */
.quest-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    place-items: center;
    align-items: center;
    justify-content: center;
}

.card {
    position: relative;
    width: 350px;
    aspect-ratio: 16/9;
    background-color: #f2f2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 0 0 5px #ffffff80;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
.card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
  
  .card__image {
    width: 100%;
    height: 100%;
  }
  
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
  }
  
  .card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .card:hover .card__content {
    transform: rotateX(0deg);
  }
  
  .card__title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
  }
  
  .card:hover svg {
    scale: 0;
  }
  
  .card__description {
    margin: 10px 0 10px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
  }
  
  .card__button {
    padding: 15px;
    border-radius: 8px;
    background: #777;
    border: none;
    color: white;
  }
  
  .secondary {
    background: transparent;
    color: #777;
    border: 1px solid #777;
  }
  


  #game-container {
    background-color: #ffffff;
    width: 100%; 
    height: 100vh;  
    padding: 20px;
    top: 0;
    left: 0;
    position: fixed;  
    text-align: center;
    z-index: 9999;  
    border: 2px solid #d1ce02;
    display: none; 
    background-image: 
    linear-gradient(rgba(73, 59, 26, 0.7), rgba(34, 27, 5, 0.7)), 
    url("../RESOURCES/SCI/BACKGROUNDS/scibkg.jpg");
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}


.show-game {
    display: flex;  
    z-index: 2000;   
}

.game-container h1, h2 {
    color: #ffffff;
    font-weight: bold;
}

.game-container button {
    background-color: #ffffff; /* Chemistry blue */
    border: none;
    color: white;
    padding: 12px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    
}

.game-container button:hover {
    background-color: #ffffff;
}

/* Timer and score panel */
.timer, .score {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
}

.timer span, .score span {
    font-weight: bold;
    color: #d32f2f; /* Red for visibility */
}

/* End message */
#endMessage {
    margin-top: 20px;
    font-size: 20px;
    color: #ffffff;
}

/* Image container styling */
.image-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.image-container img {
    width: 300px;
    height: 300px;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* Input styling */

.input-container {
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
}

.input-container input[type="text"] {
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    width: 100%;
    padding: 10px;
    color: #fff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    margin-bottom: 10px;
}


#difficulty-screen {
    z-index: 900; 
    position: fixed;  
    top: 0;
    left: 0;
    width: 100%;        
    height: 100vh;      
    background-image: 
    linear-gradient(rgba(208, 169, 69, 0.7), rgba(34, 27, 5, 0.7)), 
    url("../RESOURCES/SCI/BACKGROUNDS/scibkg.jpg");
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Feedback message */
#feedback {
    font-weight: bold;
    margin-top: 10px;
    color: #d32f2f;
}

/* Start screen styling */
#activity-container {
    background-image: 
    linear-gradient(rgba(208, 169, 69, 0.7), rgba(34, 27, 5, 0.7)), 
    url("../RESOURCES/SCI/BACKGROUNDS/scibkg.jpg");
    background-size: cover;
    color: #fff;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    place-items: center;
}

#difficulty-screen {
    background-color: #e1f5fe;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Chemistry-themed animations */
@keyframes molecule-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* From Uiverse.io by cssbuttons-io */ 
button {
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    margin: 10px;
  }
  
  button:hover {
    background-color: #23c483;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
  }
  
  button:active {
    transform: translateY(-1px);
  }

.input-container-inner {
    position: relative;
    margin: 20px;
  }
  
  /* Input field */
  .input-field {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background-color: transparent;
  }
  
  /* Input label */
  .input-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0);
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  /* Input highlight */
  .input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
  }
  
  /* Input field:focus styles */
  .input-field:focus + .input-label {
    top: -20px;
    font-size: 12px;
    color: #ffffff;
  }
  
  .input-field:focus + .input-label + .input-highlight {
    width: 100%;
  }
  