﻿html {
    background-image: url("../img/bg_angle.svg");
    /*background-repeat: no-repeat;*/
    font-family: "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif;
    font-size: 12px;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 100%;
}

body {
    /*font-family: Arial, Helvetica, sans-serif;*/
    
   /* width: 100%;
    height: 100%;*/
}

/*form {
    width: 100%;
    height: 100%;
}
*/
.boldTitle {
    font-weight: bold;
}

/* BEGIN LOADER */
#loader {
    position: absolute;
    display: none;
    z-index: 1;
    left: 50%;
    top: 60%;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    /*border: 16px solid #203380;*/
    border: 16px solid #d6c278;
    border-radius: 50%;
    border-top: 16px solid #ffffff;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*END LOADER*/

/*Grid Areas*/
.main-head {
    grid-area: header;
}

.content {
    grid-area: content;
}

.main-nav {
    grid-area: nav;
}

.side {
    grid-area: sidebar;
}

.rside {
    grid-area: rsidebar;
}

.timeZoneLabel {
    grid-area: timeZoneLabel;
    background-image: url("../img/YourTimeZone.svg");
    height: 2rem;
    width: 40%;
   /* background:red;*/
    /*justify-items: end;*/
    /*background-position: right;*/
    /*display:block;*/
    /*width:3rem;*/
    background-repeat: no-repeat;
    background-position: bottom right;
    /*background-size: 40%;*/
}

.dateLabel {
    grid-area: dateLabel;
    background-image: url("../img/SpecificDate.svg");
    height: 2rem;
    width: 35%;
    background-repeat: no-repeat;
    background-position: bottom right;
}

.dateList {
    grid-area: dateList;
}

.timeZoneList {
    grid-area: timeZoneList;
}

.eventLabel {
    grid-area: eventLabel;
    background-image: url("../img/SpecificEvent.svg");
    height: 2rem;
    width: 35%;
    background-repeat: no-repeat;
    background-position: bottom right;
}

.eventList {
    grid-area: eventList;
}

#dateButton {
    grid-area: dateButton;
}

#feedButton {
    grid-area: feedButton;
}

.timeZoneLabel, .timeZoneList, .dateLabel, .dateList, #feedButton, #dateButton {
    /*background-color: #afb2b2;*/
}

.theBox {
    background-image: url("../img/theBox_phone.svg");
    max-height: 80vh;
    padding: 20px;
    background-attachment: fixed;
    background-size: cover;
    grid-area: theBox;
    display: grid;
    /*grid-gap: 5px;*/
    border: 5px solid #003853;
    justify-content: space-evenly;
    justify-items: center;
    align-content: space-evenly;
    align-items: center;
    grid-template-areas:
        "navBox"
        "content"
}

.navBox {
    /*background-color: #afb2b2;*/
    grid-area: navBox;
    display: grid;
    grid-gap: 5px;
    /*border: 5px solid #afb2b2;*/

    justify-content: space-evenly;
    justify-items: right;
    text-align: center;
    align-content: space-evenly;
    align-items: center;
    grid-template-areas:
        "timeZoneLabel"
        "timeZoneList"
        "dateLabel"
        "dateList"
        "eventLabel"
        "eventList"
}
/*End Grid Areas*/

/*Start Header*/
#masthead {
    background-image: url("../img/2024SummerGames.svg");
    height: 10rem;
    background-repeat: no-repeat;
    background-position: center top;
}
/*End Header*/

#feedButton > img {
    object-fit: cover;
    max-height: 1.5rem;
    cursor: pointer;
}

#dateButton > img {
    object-fit: cover;
    max-height: 1.5rem;
    cursor: pointer;
}

.timeZoneList , .dateList , .eventList {
    top: 0em;
    width: 100%;
    padding: .25em .25em;
    border-radius: .2em;
}

.timeZoneList select, .dateList select , .eventList select {
    top: 0em;
    width: 100%;
    padding: .25em .25em;
    border-radius: .2em;
}

.content {
    display: block;
    width: 80%;
    overflow-y: scroll;
    min-width: 2rem;
    /*background: #f1e9f7;*/
    background: #003853;
    /*border: 10px solid #afb2b2;*/
    border: 10px solid #d6c278;
    text-align: center;
    /*height: 40em;*/
    height: 40vh;
}

/*
.content {
    background-color: orange;
    max-height: 50%;
    min-height: 50%;
    overflow-x: auto;
}
*/
#wrapper {
    display: grid;
    grid-gap: 10px;
    padding: 20px;
    /*justify-self: center;
    align-content: center;*/
    /*TRY AND FORCE FOOTER TO BOTTOM*/
    min-height: 100%;
    grid-template-rows: auto 1fr auto;
    /*END TRY AND FORCE FOOTER TO BOTTOM*/

    /*grid-row-gap: 20px;*/
    grid-template-areas:
        "header"
        "theBox"
        "footer"
}

/*RESULTS TABLE*/
.eventResults {
    /*border: 3px solid #afb2b2;*/
    border: 3px solid #d6c278;
    grid-area: content;
    /*background-color: #007ac3;*/
    background-color: #ffffff;
}

    .eventResults tr td {
        text-align: left;
        padding: 1rem;
        
    }

    .eventResults tr:nth-of-type(even) > td {
        /*background-color: #e6e6e6;*/
        background-color: #d6c278;
    }
/*STOP RESULTS TABLE*/

/*IMAGE MODAL POPUP*/
/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Add Animation */
.modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}
/*STOP IMAGE MODAL POPUP*/


/*Start Footer*/
.footer-logo {
    vertical-align: text-top;
}

footer {
    grid-area: footer;
    background-color: #f2f2f2;
    width: 100%;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    /* max-width: 768px; */
    /*padding: 20px;*/
    
}

footer ul {
    list-style-type: none;
    margin: 5px 0;
    padding: 0;
}

footer li {
    /* display: inline-block; */
    margin: 5px 0;
    font-size: .8em;
}

footer {
    /* border-top: solid 1px #ddd; */
    /* font-size: 13px; */
    /* text-align: center; */
}
/*End Footer*/

@media only screen and (min-width: 550px) {
    article {
        /*background-color: green;*/
        width: 80%;
    }

    .content {
        /*background-color: green;*/
    }

    #wrapper {
        min-height: 100%;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr 6fr 1fr;
        grid-template-areas:
            "header header  header"
            /*"sidebar    navBox    rsidebar"*/
            "sidebar    theBox    rsidebar"
            "footer footer footer"
            /*"sidebar    content    rsidebar"*/
    }

    /*.navBox {
        grid-template-areas:
            "timeZoneLabel"
            "timeZoneList"
            "dateLabel dateList"
            "dateButton feedButton"
    }*/

    .theBox {
        background-image: url("../img/theBox_tablet.svg");
        background-attachment: fixed;
        background-size: cover;
        grid-area: theBox;
        display: grid;
        /*grid-gap: 5px;*/
        border: 5px solid #003853;
        justify-content: space-evenly;
        justify-items: center;
        align-content: space-evenly;
        align-items: center;
        grid-template-areas:
            "navBox"
            "content"
    }

    .footer-wrapper {
        display: grid;
        gap: 25px;
        /*padding: 25px;*/
        grid-template-columns: 1fr 1fr 1fr 1fr;
        /* max-width: 1200px; */
        justify-items: center;
        align-items: center;
        text-align: center;
        /* margin: 10 auto; */
    }

    .p {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.5rem;
    }

    footer {
        text-align: left;
    }

        footer ul {
            display: inline-block;
            margin: 0;
        }
}

@media only screen and (min-width: 1350px) {

    .content {
        /*background-color: blue;*/
        height: 65vh;
    }

    #wrapper {
        /*        min-height: 100%;
        grid-template-rows: auto 1fr auto;
*/
        align-content: space-between;
        grid-gap: 30px;
        grid-template-columns: 2fr 6fr 2fr;
        grid-template-areas:
            "header header  header"
            /*"sidebar    navBox    rsidebar"*/
            "sidebar    theBox    rsidebar"
            /*"footer footer footer"*/
            /* "sidebar    content    rsidebar"*/
    }

    .theBox {
        background-image: url("../img/theBox.svg");
        display: grid;
        grid-area: theBox;
        align-items: start;
        height: 70vh;
        justify-content: space-between;
        justify-items: center;
        align-content: space-between;
        
        /*background-attachment: fixed;
        background-size: cover;
        grid-area: theBox;
        display: grid;
        grid-gap: 5px;*/
        /*border: 5px solid #003853;*/
        /*justify-content: space-evenly;
        justify-items: center;
        align-content: space-evenly;
        align-items: center;*/
        grid-template-areas: "navBox content"
    }

    /*.navBox {
        grid-template-areas:
            "timeZoneLabel timeZoneList dateButton"
            "dateLabel dateList feedButton"
    }*/
}

@media only screen and (min-width: 1700px) {

    .content {
        /*background-color: red;*/
        /*width: 45vw;*/
        /*width: 80%;*/
    }

    #wrapper {
        /*        min-height: 100%;
        grid-template-rows: auto 1fr auto;
*/
        align-content: space-evenly;
        grid-gap:30px;
        
        grid-template-columns: 2fr 12fr 2fr;
        grid-template-areas:
            "header header  header"
            /*"sidebar    navBox    rsidebar"*/
            "sidebar    theBox    rsidebar"
            "footer footer footer"
            /* "sidebar    content    rsidebar"*/
    }

    /*.navBox {
        grid-template-areas:
            "timeZoneLabel timeZoneList dateButton"
            "dateLabel dateList feedButton"
    }*/

    .theBox {
        background-image: url("../img/theBox.svg");
        display: grid;
        padding: 30px;
        height: 70vh;
        /*grid-gap: 30px;*/
        /*background-position: center;*/
        background-repeat: no-repeat;
        align-items: start;
        justify-content: space-evenly;
        justify-items: center;
        align-content: space-evenly;
        /*background-size: 70%;*/
        /*width: 100%;*/
        /* height: auto;
        overflow: auto;*/
        /*background-attachment: fixed;*/
        /*border: none;*/
        /*
        background-size: cover;
        grid-area: theBox;
        display: grid;
        grid-gap: 5px;*/
        /*border: 5px solid #003853;*/
        /*justify-content: space-evenly;
        justify-items: center;
        align-content: space-evenly;
        align-items: center;*/
        grid-template-areas: "navBox content"
    }
}

