/* CSS Developed by MTeasdale 2024 */
/* Uses media queries for small smartphone and tablet screens */

/* Set the body properties */
body {
    font-family:'Roboto', 'Calibri', sans-serif; color: #000000;
    background: black url("../images/background.jpg") repeat fixed center;
    background-size: cover;
    margin-top: 10px;
    margin-bottom: 50px;
}

/*Link colours*/
a:link {
  color: #BD1550;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
    color: #f61ead;
    background-color: transparent;
    text-decoration: underline;
}

ul, ol li{
    font-size: 1.3em;
    padding-bottom: 15px;
    color: #201659;
}

/* heading and fonts */
h1 {
    font-size: 3.3em;
}

h2 {
    font-size: 2.5em;
    color: #490A3D;
}

h3 {
    font-size: 1.6em;
    color: #BD1550;
}

p {
    font-size: 1.2em;
    color: #140d4b;
}

.clear{
    clear: left;
}

table {
    font-size: 1.2em;
    table-layout: fixed;
    width: auto;
    border-collapse: collapse;
    border: 2px solid #490a3d;
    background: #f1eaff;
}

th, td {
    padding: 25px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.important{
    color:#FF0000;
    font-weight: bold;
    font-size: 1.3em;
}

.error{
    color:#FF0000;
    font-style: italic;
    font-size: 0.8em;
}

.success {
    color: #006421;
    font-weight: bold;
    font-size: 1.3em;
}

.highlight{
    color: #490a3d;
    font-size: 1.1em;
    font-weight: bold;
}

.credits{
    font-size: 12px;
    color: #1c1c1c;
    font-style: italic;
    margin-top: 5px;
    margin-left: 10px;
}

/* layout of main content in site */
#gridcontainer{
    width: 80%;
    margin: auto;
    border-left: 5px solid #490A3D;
    border-right: 5px solid #490A3D;
    background-color: #fbfaff;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 250px 1fr;
    grid-template-areas:
        "header header"
        "main main"
        "footer footer"
}

/* header stuff */
header {
    grid-area: header;
    border-top: 5px solid #490A3D;
    border-bottom: 5px solid #490A3D;
    background: #08022c;
    padding: 0px 10px 0px 10px;
    max-height: 100px;
}

.theme-button{
    background: url("../images/theme-button.png") no-repeat;
    background-size: cover;
    font-size: 0.8em;
    border-radius: 5px;
    padding: 4px;
    height: 55px;
    width: 80px;
    margin-top: auto;
    margin-bottom: auto;
    border: none;
}

.theme-button:active {
    transform: scale(0.90); /* Makes the button slightly smaller */
}

header img {
    width: 370px;
    height: 95px;
}

.siteHeader{
    display: flex;
    flex-direction: row;
    height: 90px;
    max-height: 110px;
}

#siteTitle{
    width: auto;
}

#site-Title-Sm{display: none;}

/* Navigation Settings */
nav {
    grid-area: nav;
    margin-left: auto;
    padding-right: 10px;
    font-size: 1.3em;
}

/* Menu for big screen */
/* The wrapper */
#header-Nav {
    width: 100%;
    background: #08022c;
    margin-left: auto;
    text-align: right;
}

/* set menu items horizontally */
#headerItems { display: flex; float: right; }
#headerItems a {
    margin-top: 25px;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
}

/*change link colour when hovering*/
#headerItems a:hover { background: #b7057c; }

/* hide label and checkbox menu when not clicked */
#burgermenu, label[for="burgermenu"] { display: none; }

/* format primary button */
.primary-button {
    background-color: #490A3D;
    border: solid 2px #b2b2b2;
    color: #fff;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 5px 3px;
    border-radius: 12px;
    cursor: pointer;
  }


.primary-button:hover {
    background-color: #b7057c;
}

#register {
    background-color: #490A3D;
}

#register:hover {
    background-color: #b7057c;
}

#register:disabled {
    background-color: grey;
}

#register:disabled:hover {
    background-color: grey;
}

.secondary-button {
    background-color: #490A3D;
    border: solid 1px #b2b2b2;
    color: #fff;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 3px 2px;
    border-radius: 10px;
    cursor: pointer;
}


/* Style for the image buttons */
.image-button {
    display: inline-block;
    width: 70px;
    height: 60px;
    text-align: center;
    line-height: 100px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    margin: 15px; /* Add spacing between buttons */
}

/* Hover effect */
.image-button:hover {
    background-color: #b7057c; /* Darker color on hover */
}

/* Style for the images */
.image-button img {
    max-width: 100%;
    max-height: 100%;
}

/* set flex styles for sections */
.flex-parent-section{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}

.flex-child{
    width: 48%;
    margin-right: 10px;
}

/*apply box shadow to images and apply round edges*/
.flex-child img{
    box-shadow: 0 10px 12px 0 rgba(0, 0, 0, 0.37), 10px 6px 12px 0 rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

/* start main content stuff */
main {
    grid-area: main;
}

/* universal image sizes */
.small-image {
    width: auto;
    height: 300px;
    margin-top: 3px;
    margin-bottom: 3px;
    text-align: center;
    transition: width 1s, height 2s;
}
#small-image-D{text-align: center;}

.big-image{
    width: auto;
    height: 340px;
    margin-top: 20px;
    margin-left: 20px;
}

/* increase size on hover - Thanks W3Schools! */
.small-image:hover {
    width: auto;
    height: 340px;
}

/* homepage banner */
#banner{
    background: url("../images/festival-banner.jpg");
    height: 160px;
    width: auto;
    object-fit: cover;
}

#secondary-banner{
    background: #6A5ACD;
    height: 70px;
}

/* main content layout formatting */
#content{
    padding: 0px 20px 0px 20px;
    width: 96%;
    margin-left: auto;
}

#dashboard-content{
    text-align: center;
}


#paypal-button-container{
    width: 450px;
}

/*registration form*/
.input-form {
    width: 550px;;
    margin: 0 auto;
    padding: 20px;

    border-radius: 8px;
    border: 2px solid #414141;
    box-sizing: border-box;
    font-size: 1.2em;
    background: #f1eaff;
    box-shadow:
            0 10px 12px 0 rgba(0, 0, 0, 0.37),
            10px 6px 12px 0 rgba(0, 0, 0, 0.35);
}

/* Style for the textarea */
.input-form textarea {
    padding: 6px;
    font-size: 1.2em;
    border: solid 2px #414141;
    border-radius: 8px;
    width: 270px;
    background: #fff;
    resize: vertical;
}

/* Other form input styles (text, password, email, date) */
.input-form input[type="text"],
.input-form input[type="password"],
.input-form input[type="email"],
.input-form input[type="date"] {
    padding: 6px;
    font-size: 1.2em;
    border: solid 2px #414141;
    border-radius: 8px;
    width: 260px;
    background: #fff;
}

/* Additional styles for labels, etc. */
.input-form label {
    display: inline-block;
    padding-bottom: 30px;
    font-size: 1.2em;
    width: 180px;
    text-align: left;
}

.input-form {

}

 .input-form button {
     width: 200px;
     padding: 10px;
     font-size: 1.3em;
}
 #form-button{
     margin-left: auto;
 }

button:hover {
    background-color: #b7057c;
    color: #fff;
}

#total_cost{
    display: inline;
    font-size: 1.3em;
    color: #0017a8;
    text-decoration: underline;
    font-weight: bold;
}

/* START Search box for website */
.search-box{
    display: block;
    float: right;
    margin-top: 10px;
    margin-right: 10px;
}

.search-box input[type=text], .search-box button {
    padding: 6px;
    font-size: 1.3em;
    border: solid 2px #414141;
    border-radius: 8px;
}

.search-box button:hover {
    background-color: #b7057c;
    color: #fff;
}
/* END SEARCH BOX */

/*Footer Secondary*/
#footer-secondary{
    display: block;
    margin: 0;
    height: 70px;
}

#toTop{
    float: right;
    position: relative;
    bottom: 0;
    right: 12px;
    z-index: 1000;
    border-radius: 10px;
    color: #fbfaff;
    text-align: center;
    font-size: 1.1em;
}

#toTop img{
    height: 70px;
    width: 65px;
}

footer {
    grid-area: footer;
    text-align: center;
    background-color: rgb(171, 187, 255);
    background-image: linear-gradient(to right, #ff8fca, #ffe8b0);
    margin-top: 20px;
    border-bottom: 5px solid #490A3D;
}

#footer-title{
    font-size: 2.5em;
    font-weight: bold;
}

footer li{
    display: inline;
    list-style: none;
    margin-right: 20px;
}

#specialUL{
    margin-left: -50px;
}

#specialUL li{
    font-size: 1.1em;
}

footer a{color: rgb(0, 0, 0);
}

footer a:hover{color: #FF00AAFF;
}

/* set social media icons to 38px */
#social-media img, #social-media a{
    width: 38px;
    height: 38px;
    margin-right: 5px;
    text-decoration:none;
    transition: height 2s, width 2s;
}
#social-media img:hover{
    width: 44px;
    height: 44px;
}

/* MIN WIDTH 1280 RESPONSIVE LAYOUT FOR HD SCREENS */
/* Responsive layout - makes a one column layout instead of a two-column layout */

@media only screen and (min-width: 998px) and (max-width: 1200px) {

    #gridcontainer{
        width: 90%;
    }

    #content{
        padding: 0px 15px 0px 15px;
        width: 96%;
    }

    .flex-parent-section {
        flex-direction: column;
    }

    .flex-child {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    header img {
        width: 260px;
        height: 65px;
    }

    #headerItems a {
        margin-top: 15px;
    }

    #siteTitle{display: none;}
    #site-Title-Sm{display: inline-block;}
    #searchBox{display: none;}

    main img {
        max-width: 680px;
        height: 490px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* increase size using transition when hover */
    main img:hover{
        max-width: 600px;
        height: 400px;
    }

    footer li {
        margin-left: 10px;
        margin-right: 10px;
        list-style: none;
    }
}
/* ----------------- */
/* END MEDIUM LAYOUT */

/* MIN WIDTH 550 RESPONSIVE LAYOUT */
/* FOR SMALL SCREENS/PHONES/TABLETS */
@media only screen and (min-width: 550px) and (max-width: 996px) and (orientation: portrait) {

    body {
        font-size: larger;
    }

    /* heading and fonts */
    h1 {
        font-size: 3.5em;
    }

    h2 {
        font-size: 2.8em;
        color: #490A3D;
    }

    h3 {
        font-size: 2.6em;
        color: #BD1550;
    }

    p {
        font-size: 1.8em;
        color: #201659;
    }

    .important{
        color:#FF0000;
        font-weight: bold;
        font-size: 1.8em;
    }

    .error{
        color:#FF0000;
        font-style: italic;
        font-size: 1.8em;
    }

    .success {
        color: #006421;
        font-weight: bold;
        font-size: 1.8em;
    }

    .search-box a, .search-box input[type=text], .search-box button {

        font-size: 2.1em;

    }

}

/*Layout for portrait and landscape devices*/
@media only screen and (min-width: 450px) and (max-width: 996px) {

    #gridcontainer {
        width: 98%;
    }

    #secondary-banner{
        background: #6A5ACD;
        height: 180px;
    }

    .flex-parent-section {
        flex-direction: column;
    }

    .flex-child {
        width: 98%;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
        border-bottom: solid 4px #adadad;
    }

    table{
        padding: 0;
        margin: 0;
        font-size: 1em;
    }

    /* Vertical menu when small screen */
    #headerItems a {
        box-sizing: border-box;
        display: block;
        width: 50%;
        padding: 5px 8px;
    }

    /* Show Menu Icon */
    #header-Nav label {
        display: inline-block;
        color: #fff;
        background: #000c79;
        font-style: normal;
        font-size: 1.4em;
        padding: 15px;
        cursor: pointer;
    }

    #header-Nav label:hover {
        background-color: #FF00AAFF;
    }

    /* toggle menu */
    #headerItems {
        display: none;
        position: absolute;
        top: 80px;
        right: 11%;
        font-size: 1.4em;
        background-color: #08022c;
        width: 50%;
        z-index: 10000; /* Ensure the menu appears above other elements */
    }

    #header-Nav input:checked ~ #headerItems {
        display: block;
        float: none;
    }

    .theme-button{
        display: block;
        position: fixed;
        bottom: 25px;
        right: 30px;
        width: 75px;
        height: 75px;
    }

    /*increase font and padding for smaller screens*/
    .primary-button {
        margin: 20px 5px 5px 5px;
        font-size: 2em;
        border-radius: 12px;
        padding: 6px;
        border: solid 2px #414141;
    }

    .search-box {
        float: none;
        margin-top: 0;
    }

    .search-box a, .search-box input[type=text], .search-box button {
        float: none;
        display: block;
        text-align: center;
        width: 99%;
        margin: 0;
        font-size: 1.8em;
        padding-top: 12px;
        padding-bottom: 12px;
        border-radius: 0;
    }

    .search-box button{
        margin-left:4%;
        width: 94%;
    }

    .search-box input[type=text], button {
        border: 1px solid #ccc;
    }

    .search-box button:hover {
        background-color: #FF00AAFF;
        color: #fff;
    }

    /*break input form to column whe smaller*/
    .input-form {
        width: 80%;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    .input-form label {
        display: block;
        padding: 20px 10px 5px 10px;
        font-size: 1.4em;
    }

    .input-form p{
        font-size: 1.3em;
    }

    .input-form input[type="text"], .input-form input[type="password"], .input-form input[type=email], .input-form input[type=date] {
        padding: 1px;
        font-size: 1.6em;
        width: 70%;
    }

    .input-form button {
        width: 250px;
        padding: 10px;
        font-size: 1.4em;
    }

    /* stop increase size using transition*/
    main img:hover{
        max-width: 450px;
        height: 300px;
    }

    /* Remove the footer title when below certain width */
    #footer-title{
        display: none;
    }

    /* apply a -50 margin to counter the default webkit margin on ul's */
    #specialUL{margin-left: -50px;}

    /* remove the footer dots  on small screens */
    #footerDots{display: none;}

    .small-image {
        max-width: 450px;
        max-height: 290px;
        margin-top: 3px;
        margin-bottom: 3px;
    }
}

/* ------------------------------- */
/* FOR SUPER SMALL SCREENS < 250px */
@media screen and (min-width: 250px) and (max-width: 550px) {

    /* fix issues with images and content spilling over on 580px less screens */
    .flex-parent-section {
        flex-direction: column;
    }

    .flex-child {
        width: 70%;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
    }
    .flex-child img{
        width: 340px;
        height: auto;
        transform: none;
    }
    /* increase size using transition when hover */
    main img:hover{
        width: 340px;
        height: auto;
    }

}
/* END SMALL SCREENS MEDIA QUERY*/