/*
	Student Name: Michael Runstein
	File Name: styles.css
	Date: November 20, 2026
*/

/* CSS Reset */
body, header, nav, main, footer, h1, div, img, ul,figure, figcaption, video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Include padding and borders within element widths */
body, header, nav, main, footer, div, figure, figcaption {
    box-sizing: border-box;
}

#container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

main {
	padding: 0 5%;
}

hr {
    margin: 25px 0;
}

img {
    max-width: 100%;
    display: block;
}

header img {
    max-width: 175px;
    height: auto;
    margin: 20px;
}

/* Video */
video {
    width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
	margin-top: -15px;
}

/* Disclaimer page */
main.disclaimer {
    text-align: center;
}

/* Disclaimer box */
.disclaimer-box {
    border: 2px solid #555;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 5in;
	zoom: 75%
}

/* Disclaimer download button */
#download-btn {
    background-color: #aaa;
    color: white;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
}

/* Disabled download button */
#download-btn:disabled {
	background-color: #aaa;
    color: #eee;
    cursor: not-allowed;
}

#download-btn:not(:disabled) {
	font-weight: bold;
	background-color: #bbb;
    color: black;
}

.about .fullparagraph,
.about .shortparagraph {
	margin-top: 20px;
}

.video-heading {
	text-align: center;
	width: 100%;
	margin: 0 auto;
}

.copyright {
	text-align: center;
}

.copyright p {
	margin: 15px 0 0 0;
}

#ms-logo img {
	display: block;
	margin-top: 20px;
	margin-left: 20px;
}

#download-dialog, #confirm-download {
    background-color: #f3f8ef;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
	background-size: 25px 25px;
    border: 1px solid #aaa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#confirm-download {
    width: 550px;
    max-width: 90%;
    box-sizing: border-box;
}

.download-instructions {
    width: 400px;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #777;
    border-radius: 10px;
    padding: 12px;
    margin: 15px auto 0;
}

.download-instructions p:first-child {
    margin-top: 0;
}

.download-instructions p:last-child {
    margin-bottom: 0;
}

/* Graph paper background */
body {
    background-color: #f3f8ef;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
}

.dialog-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
}

.dialog-buttons form {
    justify-self: end;
}

.mobile-download-message {
    display: none;
}

/* Feedback page */
main.feedback {
    grid-column: 1 / -1;
}

.feedback-page {
    width: 75%;
    max-width: 8.5in;
    aspect-ratio: auto;
    background-color: white;
    border: 1px solid black;
    box-sizing: border-box;
    margin: 20px auto;
}

.feedback-page h4 {
    text-align: center;
    text-decoration: underline;
    margin-top: 11.76%;
}

.feedback-page form > p {
    text-align: center;
    font-size: 1rem;
}

.feedback-page label {
    white-space: nowrap;
}

.feedback-comments {
    margin-bottom: 5px;
}

.feedback-comments textarea {
    width: calc(100% - 0.5in);
	max-width: 6in;
    box-sizing: border-box;
}

.feedback-page button[type="submit"] {
    margin-left: 0.05in;
    margin-bottom: 0.05in;
}

/* Feedback confirmation page */
main.confirmation {
    grid-column: 1 / -1;
    text-align: center;
    margin: 50px auto;
}

/* Media Query for Mobile Viewport */
@media screen and (max-width: 629px) {

/* Show mobile class, hide tablet-desktop class and menu-links id */
	.mobile {
		display: block;
	}
	
	.tablet-desktop, #menu-links {
		display: none;
	}

	.fullparagraph {
		display: none;
    }

    .shortparagraph {
        display: block;
		padding: 0 20px;
    }
	
	.demo-invitation {
		display: none;
	}
	
	.video-container video {
		margin-top: 5px;
	}
	
	main.disclaimer {
		display: none;
	}
	
	.mobile-download-message {
		display: block;
		text-align: center;
		margin: 40px 20px;
		font-weight: bold;
	}
	
	#page-title {
		text-align: center;
		font-size: 1.5em;
	}

	#container > h4 {
		text-align: center;
		font-size: 1em;
		padding: 0 4em;
	}
	
	main#content > .mobile {
		margin-bottom: 40px;
	}
	
	#download-dialog, #confirm-download {
		display: none;
	}
	
	/* Style rules for hamburger menu */
	.mobile-nav a {
		color: #000;
		font-family: 'Francois One', sans-serif;
		text-align: center;
		font-size: 2em;
		text-decoration: none;
		padding: 3%;
		display: block;
	}
	
	.mobile-nav a.menu-icon {
		display: block;
		position:absolute;
		right: 0;
		top: 0;
	}
	
	nav {
		padding-left: 20px;
	}

	nav ul {
		list-style-type: none;
		padding-left: 0;
	}
	
	.feedback-form {
		font-size: 0.675rem;
	}
	
	.feedback-page button[type="submit"] {
		margin-top: 5px;
	}
	
	.feedback-comments {
		display: none;
	}
	
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 630px) and (max-width: 1020px) {
	
	/* Hide mobile class, show tablet-desktop class and menu-links id */
	.mobile-nav {
		display: none;
	}
	
	.tablet-desktop {
		display: block;
	}
	
	.mobile img, 
	.tablet-desktop img {
		max-width: 85%;
		margin: 0 auto;
	}
	
	main .mobile {
		margin-bottom: 50px;
	}
	
	#container {
    display: grid;
    grid-template-columns: 300px 1fr;
	}
	
	#container > h4 {
    grid-column: 1 / -1;
    text-align: center;
	padding: 0 5%;
	}
	

	#ms-logo {
		grid-column: 1;
		grid-row: 1;
	}
	
	#ms-logo img {
		max-width: 225px;
	}
	
	#page-title {
		grid-column: 1 / -1;
		text-align: center;
	}
	
	#container:has(main.disclaimer) .tablet-desktop li {
    font-size: clamp(1.25rem, 3.2vw, 2.25rem);
}

	nav.tablet-desktop {
		grid-column: 2;
		grid-row: 1;
		margin-top: 20px;
		position: relative;
		left: -50px;
	}
	
	.tablet-desktop ul {
		display: grid;
		grid-template-columns: repeat(6, max-content);
		justify-content: space-evenly;
		list-style-type: none;
		padding: 0;
		margin: 0;
	}

	.tablet-desktop li {
		text-align: center;
		font-size: clamp(0.85rem, 2vw, 1.25rem);
	}
	
	.tablet-desktop li a {
		white-space: nowrap;
		text-decoration: none;
		display: inline-block;
		transition: transform 0.3s ease;
	}

	.tablet-desktop li a:hover {
		transform: translateY(5px) scale(1.15);
	}
	
	.video-container video {
		margin-top: 5px;
	}

	main, footer {
		grid-column: 1 / -1;
	}

	.fullparagraph {
		display: block;
		padding: 0 40px;
    }

    .shortparagraph {
        display: none;
    }
	
	.demo-invitation {
    text-align: center;
    margin:45px 0 10px;
    font-weight: bold;
	}

}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1021px) {
	
	.fullparagraph {
		display: block;
		padding: 0 60px;
    }

    .shortparagraph {
        display: none;
    }
	
	.mobile-nav {
    display: none;
	}
	
	#container {
		display: grid;
		grid-template-columns: 300px 1fr;
	}

	#ms-logo {
		grid-column: 1;
		grid-row: 1;
	}

	#ms-logo img {
		max-width: 250px;
	}
	
	main.about {
		grid-column: 1 / -1;
	}
	
	main#content {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
	}

	main#content .mobile {
		grid-column: 1;
		align-self: center;
	}

	main#content video {
		width: 90%;
		margin-top: 5px;
	}
	
	main#content .video-container {
		grid-column: 2;
		align-self: center;
	}
	
	main#content .mobile img {
		width: 90%;
		margin: 0 auto;
	}

	main#content .demo-invitation,
	main#content > .tablet-desktop {
		grid-column: 1 / -1;
	}
	
	main#content .demo-invitation {
		width: 65%;
		margin: 45px auto 5px;
		text-align: center;
	}

	main#content > .tablet-desktop img {
		width: 65%;
		margin: 0 auto;
	}
	
	main#content hr {
		grid-column: 1 / -1;
		width: 100%;
	}
	
	main#content:has(hr) > img {
		align-self: center;
	}
	
	main#content > img {
		align-self: center;
	}
	
	main.disclaimer {
		grid-column: 1 / -1;
		width: 5in;
		max-width: 100%;
		margin: 0 auto;
	}

	nav.tablet-desktop {
		grid-column: 2;
		grid-row: 1;
		margin-top: 20px;
		position: relative;
		left: -50px;
	}

	.tablet-desktop ul {
		display: grid;
		grid-template-columns: repeat(6, max-content);
		justify-content: space-evenly;
		list-style-type: none;
		padding: 0;
		margin: 0;
	}

	.tablet-desktop li {
		text-align: center;
		 font-size: 1.5rem;
	}

	.tablet-desktop li a {
		white-space: nowrap;
		text-decoration: none;
		display: inline-block;
		transition: transform 0.3s ease;
	}

	.tablet-desktop li a:hover {
		transform: translateY(5px) scale(1.15);
	}
	
	#page-title {
		margin-top: -15px;
		grid-column: 1 / -1;
		text-align: center;
	}

	#container > h4 {
		grid-column: 1 / -1;
		text-align: center;
		padding: 0 15%;
	}
	
	footer {
		grid-column: 1 / -1;
	}

}

