/* Color Palette 
background colour: #fae0bf - Light Peach
#3D5B59 - Dark Teal
#ACC0D3 - Light Blue
#09A1A1 - Bright Teal
#f3b973 - Soft Orange
#D396A6 - Soft Pink
#5484A4 - Medium Blue
*/

/* underconstruction */
.underconstruction {
    height: 200px;
}

/* Styles */
body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #fae0bf;
}

li {
    color: #3D5B59;
}
 
/* Header Styles */
header {
    text-align: center; 
    background-color: #ACC0D3;
    padding: 20px;
}

header h1 {
    font-size: 50px;
    color: #09A1A1;
    margin-bottom: 10px;
    text-transform: uppercase;
    background-color: transparent;
}

header nav li {
    list-style-type: none;
    display: inline-block;
    padding: 20px;
    font-size: 20px;
    text-align: center;
}

header nav li a {
    text-decoration: none;
    color: #5484A4;
}

header nav li a:hover {
    color: #09A1A1;
    text-decoration: underline;
}

#logo {
    float: left;
    height: 280px;
    position: absolute;
    top: 0;
    z-index: 4;
}

/* Video Styles */

iframe {
    height: 225px; 
    width: 400px;
    z-index: 4;
    position: absolute;
    top: 9px;
    right: 9px;
}

/* Footer Styles */
footer {
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
    clear: left;
    color:#09A1A1;
}

/*Heading Styles */

.sectiontitle {
    text-align: center;
    color: #3D5B59;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #D396A6;
    clear:both;
    font-size: 30px;
}

h2, h3, h4 {
    color: #3D5B59;
    text-align: center;
}

h3 {
    text-decoration: underline;
}

.projecttitle {
    text-align: center;
    color:#3D5B59;
    font-size: 40px;
    text-decoration: underline;
}

/* section styles */
div {
    width: 80%;
    position: relative;
    left: 10%;
}

.step p {
    width: 80%;
    position: relative;
    left: 10%;
    padding: 0;
}

main p {
    color: #3D5B59;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 30px;
    font-size: 20px;
}

.step {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 #ACC0D3, 0 6px 20px 0 #D396A6;
    margin-bottom: 20px;
}

.hypothesis, .result, .method {
    background-color: #f5c78d;
    padding: 10px 0;
    border-radius: 10px;
    margin: 10px 0;
}

.overallhyp {
    text-align: center;
    font-size: large;
}

#intro a {
    color:#5484A4;
    text-decoration: none;
}

#intro a:hover { 
    color:#09A1A1;
    text-decoration: underline;
}

/* Code Section */

pre {
    background-color: hsla(344, 21%, 71%, 0.3);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #3D5B59;
    width: 80%;
    margin: 20px auto;
    word-wrap: break-word;
}

/* images */
.data {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 150px;
    padding: 10px;
    border-radius: 10px;
}

.graph {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    padding: 10px;
    border-radius: 10px;
}

.results {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 50px;
    padding: 10px;
    border-radius: 10px;
}

/* Conclusion Section */

ol {
    color: #3D5B59;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 20px;
    margin-left: 40px;
}

/* Terminal input/output styles and animation */
#input {
    width: 60%;
    padding: 0.5rem;
    font-size: 30px;
    margin-right: 0.5rem;
    text-align: center;
}
#demo {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.fade-in {
    animation: fadeIn 450ms ease-out both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

button {
    font-size: 30px;
    background-color: #09A1A1;
    height: 40px;
    color: white;
}

button:hover {
    background-color: #3D5B59;
}

input {
    height: 40px;
}

#inputsection {
    position: relative;
    right: 50px;
}

div .display{
    clear: right;
    clear: left;
    text-align: center;
    margin-top: 20px;
}

/* List style section */
.list {
    width: 80%;
    text-align: center;
    list-style-type: none;
    flex-direction: row;
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;  
    justify-content: space-around; 
}

ol {
    text-align: left;
    margin-inline-start: 0;
    
}

.list-item {
    width: 150px;
    height: 80px;
    display: flex;
    flex-direction: column;
    border: #09A1A1 2px solid;
    align-content: center;
}

.introlist {
    text-align: center; 
    list-style-position: inside;
    color: #3D5B59;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 30px;
    font-size: 20px;
}

/* Sorting Hat quiz styles - light, site-matching appearance */
#sorting-quiz {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin: 0 13.5rem 1rem;
    color: #3D5B59;
}

#sorting-quiz h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    margin: 0 0 0.6rem 0;
    text-align: left;
}

#sorting-quiz form label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 160ms ease;
    cursor: pointer;
}

#sorting-quiz form label:hover {
    background-color: rgba(9,161,161,0.06);
}

#sorting-quiz input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #09A1A1; /* modern browsers */
}

#sorting-quiz .choices {
    margin-bottom: 0.6rem;
}

#sorting-quiz button {
    font-size: 18px;
    background-color: #09A1A1;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#sorting-quiz button:hover {
    background-color: #3D5B59;
}

/* Make quiz responsive on small screens */
@media (max-width: 600px) {
    #sorting-quiz { width: 94%; padding: 0.8rem; }
    button { font-size: 16px; height: 40px; }
}