* {
    box-sizing: border-box;
}
html, body {
    height: 100%; /* Make the body fill the entire height of the viewport */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
}
header {
    background-color: #130217;
    color: white;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em; /* Space between logo and title */
    height: 80px; /* Adjust height as needed */
}
.logo {
    width: 40px; /* Adjust size as needed */
    height: auto;
}
h1 {
    margin: 0;
    font-size: 2em; /* Adjust size as needed */
}
.info {
    background-color: #f4f4f4; /* Light background for the info section */
    padding: 1em;
    font-size: 1.2em; /* Adjust size as needed */
    height: 80px; /* Adjust height as needed */
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1em;
    padding: 0 1em;
    flex-grow: 1; /* Makes the container take up available space between header and footer */
    box-sizing: border-box;
}
.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #ccc; /* Default background, overridden by specific classes */
    font-size: 1.2em; /* Adjust font size as needed */
}
.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.advert {
    background-color: #ffffff; /* Light background for the advert section */
    padding: 1em;
    font-size: 1.2em; /* Adjust size as needed */
    height: 100px; /* Adjust height as needed */
}
footer {
    background-color: #130217;
    color: white;
    padding: 1em;
    text-align: center;
    height: 80px; /* Adjust height as needed */
    width: 100%; /* Ensures footer takes up full width */
    position: relative;
    bottom: 0;
}
.footer-button {
    background-color: #4cc9f0;
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.footer-button:hover {
    background-color: #7209b7;
}
.part1 { background: #ecd078; }
.part2 { background: #d95b43; }
.part3 { background: #c02942; }
.part4 { background: #542437; }
.part5 { background: #53777a; }
.part6 { background: #ff3d7f; }

/* Custom Timer Container */
#custom-timer-container {
    text-align: center;
    margin-bottom: 0em;
}

#custom-timer-form {
    margin-bottom: 1em;
}

#custom-timer-form label, 
#custom-timer-form input {
    margin: 0.5em;
    font-size: 1.2em;
}

#custom-timer-display {
    font-size: 6em;
    margin-top: 1em;
}

#motivational-quote {
    font-size: 1.2em;
    margin-top: oem;
    color: #333;
}

button {
    font-size: 1.2em;
    padding: 0.5em 1em;
    margin: 0.5em;
    border: none;
    border-radius: 5px;
    background-color: #7209b7;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4cc9f0;
}

#noise-monitor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    text-align: center;
}

#noise-meter {
    margin: 20px;
}

svg {
    width: 200px;
    height: 200px;
}

#noise-circle {
    transition: stroke 0.5s, stroke-dashoffset 0.5s;
}

button {
    font-size: 1.2em;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    background-color: #4cc9f0;
    color: white;
    border: none;
    border-radius: 5px;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #7209b7;
}

#student-input-form {
    margin-bottom: 1em;
}

/* Styles for behaviour tracker */
#behaviour-tracker-container {
    text-align: center;
    padding: 20px;
}

.student-form {
    margin-bottom: 20px;
}

#student-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.student-box {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
}

button {
    font-size: 1em;
    margin: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

button.r-btn {
    background-color: #4caf50;
    color: white;
}

button.c-btn {
    background-color: #f44336;
    color: white;
}

span {
    font-size: 1.5em;
}



.flashcard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flashcard {
    width: 320px;
    height: 220px;
    perspective: 1000px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.flashcard-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

/* Front side (term) */
.flashcard-front {
    background-color: #ffddc1; /* Light peach */
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    font-size: 1.2rem;
}

/* Back side (definition) */
.flashcard-back {
    background-color: #c1dfff; /* Light blue */
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    font-size: 1.2rem;
}

button {
    margin-top: 20px; /* Space out button */
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}