/* CSS: Custom Minimal Framework */

/* Define color and style variables */
:root {
    --text-color: #301257; /* Default text color */
    --background-color: #ffffff; /* Background color for the body */
    --primary-color: #7d129f; /* Primary color used for buttons and highlights */
    --primary-dark-color: hsl(from var(--primary-color) h s calc(l - 8)); /* Darker shade for hover effects */
    --primary-light-color: hsl(from var(--primary-color) h s calc(l + 25)); /* Lighter shade for active states */
    --secondary-color: #ffd500; /* Secondary color for alternative actions */
    --secondary-dark-color: #b19b03;
    --secondary-light-color: #ffe98c;
    --danger-color: #F44336; /* Color for error or destructive actions */
    --success-color: #8BC34A; /* Color for success notifications */

    --modal-bg: #fff; /* Background color for modals */
    --modal-text: var(--primary-dark-color); /* Text color for modals */
    --nav-text: #d8b0ec; /* Text color for nav */

    /* Styles */
    --corner-radius: 2rem; /* Default border radius */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in element's total width/height */
}

body {
    font-family: Arial, sans-serif; /* Sets a clean, readable font */
    line-height: 1.6; /* Improves readability */
    margin: 0; /* Adds spacing around the body */
    padding: 0;
    background-color: var(--background-color); /* Applies the background color */
    color: var(--text-color); /* Sets the default text color */
    height: 100vh;
    /*width: 100vw;*/
    overflow: hidden;
}

nav {
    background-color: var(--primary-color);
    color: var(--nav-text);
    /*padding: 1rem;*/
    height: 4rem;
}

nav .logo {
    height: 2.5rem;
    padding-right: 1em;
}

nav .logo-text {
    font-size: 1.8rem;
    color: var(--nav-text);
    /*margin-bottom: 1rem;*/
}

a {
    text-decoration: none; /* Removes underline from links */
    color: inherit; /* Inherits text color from the parent element */
}

/* Utility Classes */
.container {
    /*max-width: 1200px; !* Limits the width of content to 1200px *!*/
    margin: 0 auto; /* Centers the container */
    padding: 0 15px; /* Adds horizontal padding */
}

.hidden {
    display: none; /* Utility class to hide elements */
}

/* Buttons */
.btn {
    display: inline-block; /* Makes the button an inline element */
    padding: 10px 20px; /* Adds padding inside the button */
    font-size: 1.1rem; /* Sets font size */
    /*font-weight: bold; !* Makes the text bold *!*/
    text-align: center; /* Centers the text */
    border-radius: 1rem; /* Rounds the corners */
    border: none; /* Removes the border */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for hover effects */
}

.btn-primary {
    background-color: var(--primary-color); /* Primary button color */
    color: #fff; /* White text color */
}

.btn-primary-outline {
    background-color: transparent; /* Transparent background */
    border: 2px solid var(--primary-color); /* Primary color border */
    color: var(--primary-color); /* Primary color text */
}

.btn-primary:hover {
    background-color: var(--primary-light-color); /* Darker shade on hover */
}

.btn-secondary {
    background-color: var(--secondary-color); /* Secondary button color */
    color: #fff; /* White text color */
}

.btn-secondary:hover {
    background-color: var(--secondary-light-color); /* Darker shade on hover */
}

.btn-danger {
    background-color: var(--danger-color); /* Danger button color */
    color: #fff; /* White text color */
}

.btn-danger:hover {
    background-color: #e53935; /* Darker shade on hover */
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -3px;
}

.btn-group .btn:last-child {
    background-color: var(--primary-dark-color);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -2px;
    /*border-left: 1px solid rgba(0, 0, 0, 0.4);*/
}

/* Disabled Button */
.btn:disabled {
    background-color: #ccc; /* Gray background for disabled state */
    cursor: not-allowed; /* Shows not-allowed cursor */
    opacity: 0.7; /* Reduces opacity to indicate disabled state */
}

/* Modals */
.modal {
    position: fixed; /* Positions the modal relative to the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    z-index: 1000; /* Ensures modal is above other content */
}


.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 999; /* Ensures background is behind modal but above main content */
}

.modal-content {
    background: var(--modal-bg); /* White background */
    border-radius: var(--corner-radius); /* Rounds the corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); /* Adds a shadow for depth */
    width: 90%; /* Makes the modal responsive */
    max-width: 500px; /* Limits the maximum width */
    z-index: 1000;
}

.modal-header {
    border-top-right-radius: var(--corner-radius); /* Rounds the corners */
    border-top-left-radius: var(--corner-radius);
    font-size: 20px; /* Sets font size for the header */
    font-weight: bold; /* Makes the header text bold */
    margin-bottom: 10px; /* Adds spacing below the header */
    text-align: center; /* Centers the header text */
    margin-top: 0; /* Removes default margin */
    background-color: var(--primary-color); /* Primary color for the header */
    color: var(--text-color); /* Text color for the header */
}

.modal-header .btn-primary-outline {
    background-color: transparent; /* Transparent background */
    /*border: 2px solid var(--primary-dark-color); !* Primary color border *!*/
    color: var(--modal-text); /* Primary color text */
}

.modal-body {
    padding: 1rem; /* Adds padding */
    padding-top: .25rem;
    color: var(--primary-dark-color); /* Darker shade for text */
}

.modal-body.subtitle {
    padding-top: 0;
    padding-bottom: 0;
}

.btn-close {
    /*position: relative; !* Positions the close button inside the modal *!*/
    top: 10px; /* Places it near the top */
    right: 15px; /* Aligns it to the right */
    font-size: 20px; /* Makes the text/icon larger */
    cursor: pointer; /* Changes cursor to pointer */
}

/* Forms */
form {
    margin: 20px 0; /* Adds vertical spacing */
}

label {
    display: block; /* Places label on a new line */
    margin-bottom: 5px; /* Adds spacing below the label */
    font-weight: bold; /* Makes the label text bold */
}

input, select, textarea {
    width: 100%; /* Full width inputs */
    padding: 10px; /* Adds padding inside the fields */
    margin-bottom: 10px; /* Adds spacing below the fields */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounds the corners */
}

input:focus, select:focus, textarea:focus {
    outline: none; /* Removes default focus outline */
    border-color: var(--primary-color); /* Changes border color on focus */
}

button {
    display: inline-block; /* Ensures buttons don't stretch */
    margin-top: 10px; /* Adds spacing above the button */
}

/* Grid System */
.row {
    display: flex; /* Enables flexbox layout */
    flex-direction: row;
    flex-wrap: wrap; /* Allows wrapping of columns */
    /*margin: -10px; !* Removes spacing between columns *!*/
    margin: 0;
    overflow: hidden;
}

.col {
    padding: 10px; /* Adds padding to columns */
    flex: 1; /* Ensures columns grow equally */
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

.col-1 {
    flex: 0 0 8.333%;
}

/* 1/12 column width */
.col-2 {
    flex: 0 0 16.666%;
}

/* 2/12 column width */
.col-3 {
    flex: 0 0 25%;
}

/* 3/12 column width */
.col-4 {
    flex: 0 0 33.333%;
}

/* 4/12 column width */
.col-6 {
    flex: 0 0 50%;
}

.col-8 {
    flex: 0 0 66.666%;
}

.col-9 {
    flex: 0 0 75%;
}

.col-10 {
    flex: 0 0 83.333%;
}

.col-11 {
    flex: 0 0 91.666%;
}

/* 6/12 column width */
.col-12 {
    flex: 0 0 100%;
}

.row-1 {
    flex: 0 0 8.333%;
}

.row-2 {
    flex: 0 0 16.666%;
}

.row-6 {
    flex: 0 0 50%;
}

/* Spacing */

.m-1 {
    margin: 1rem;
}

.m-2 {
    margin: 2rem;
}

.m-3 {
    margin: 3rem;
}

.mlr-1 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.mlr-2 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.mlr-3 {
    margin-left: 3rem;
    margin-right: 3rem;
}

.mc {
    margin: 0 auto;
}


p {
    margin-bottom: 1rem; /* Adds spacing below paragraphs */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 10px 0; /* Adds spacing above and below headings */
    font-weight: bold; /* Makes headings bold */
}

.fs-4 {
    font-size: 1.25rem;
}

.fs-5 {
    font-size: 1.5rem;
}

/* Larger font size */
.fs-6 {
    font-size: 2rem;
}

.italic {
    font-style: italic; /* Makes text italic */
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background-color);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.play-pause, .mute {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.play-pause:hover, .mute:hover {
    background-color: var(--primary-light-color);
}

.seek-bar, .volume-bar {
    flex: 1;
    cursor: pointer;
}

.audio-plwyer .time {
    font-family: monospace;
    color: var(--primary-color);
}

.player-time {
    text-align: center;
}


/* Full-width column */

/* Media Queries */
@media (max-width: 768px) {
    .col {
        flex: 0 0 100%;
    }

    /* Stacks columns on small screens */
}