/* Initializes CSS variables */
:root {
    --primary-text-color: rgb(0, 0, 0);
    --nav-text-color: #373737;
    --nav-background-color: #f5f5f5;
    --body-background: transparent;
    --body-font: Georgia;
    --hidden-display: none;
    --believer-text: none;
}
/* Nav CSS */
    /*Nav CSS was redone using flex, along with most of the other content*/
.navbar {
    display: flex;
    flex-direction: column;
    width: 20%;
    height: 100%;
    max-height: 100vh;
    position: fixed;
    text-align: center;
    background-color: var(--nav-background-color);
    row-gap: 10px;
    overflow-y: auto;
}
.navbarRow {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
/*NEW, universal selector*/
.navbar > * {
    padding-top: 5px;
}

hr {
    width: 100%;
    height: 2px;
    padding: 0px;
}

.navbar a {
    color: var(--nav-text-color);
    font-family: var(--body-font);

}

.navbar li {
    text-align: left;
}




/* Sets Broad CSS for most elements */
body {
    overflow-wrap: normal;
    background-color: var(--body-background);
    color: var(--primary-text-color);
    font-family: var(--body-font);
}



main {
    display: flex;
    flex-direction: column;
    margin-left: 20%;
    padding-left: 1%;
}

header {
    height: 15%;
    width: 80%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin-left: 20%;
    text-wrap: wrap;
}

h1 {
    text-align: center;
    text-wrap: wrap;
}


    /*NEW, style links*/
a {
    color: #4996FC;
    font-family: 'Courier New', Courier, monospace;
}

    /*NEW, Attribute selector*/
[src^="../images/holidays"] {
    border-style: groove;
    border-color: #DE3139;
    border-width: 3px;
}

    /*NEW, Pseudoelement Selector*/
p::first-letter {
    font-weight: bold;
}

img {
    border: var(--primary-text-color);
    border-style: groove;
    border-width: 5px;
    padding: 2px;
    max-width: 500px;
    max-height: 500px;
}

    /*NEW Ordered Lists*/
ol {
    list-style-type: lower-alpha;
}

ol > li {
    padding: 3px;
}

button > img {
    border-width: 0px;
}


/* Used for the images on the gallery page */
    /*NEW, revamped using Grid*/
.HOFRow {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 15px;
}

.imageContainer {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    padding: 5px
}

.imageBottomAlign {
    text-align: center;
    text-wrap: wrap;
}

    /*NEW, style images, margin is within the image container*/
.galleryIMG {
    border: var(--primary-text-color);
    border-style: groove;
    border-width: 5px;
    padding: 5px;
}

/* Used for the "previous days" page */
.holidayContainer {
    height: auto;
    width: 50%;
    text-align: center;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
}

.holidayOfTheDay {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.holidayChanger {
    text-align: center;
    flex-grow: 1;
    flex-shrink: 1;
}

.holidayButtons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Used to mark notes related to the assignment */
.assignmentNote {
    background-color: #04aaaa;
}
/* Used for the hidden message on the history page */
.hiddenMessage {
    display: var(--hidden-display);
}

.believerButton {
    display: block;
}

#believerMessage {
    display: var(--believer-text);
}

.matrixFormatting {
    color: #41FF00;
    background-color: #000000;
    font-family: 'Courier New';
}

/*NEW, tables*/
table {
    table-layout: fixed;
    width: 50%;
    padding: 2px;
}

    /*NEW, Adjacent Sibling detector*/
#tableHead1 + th {
    font-weight: normal;
}


td {
    text-align: right;
}

    /*NEW, Sibling Selector*/
td ~ td {
    text-align: center;
    font-weight: bold;
    padding: 2px;
}

.rowNumber > td {
    font-weight: normal;
    text-align: center;
}

.ticTacButton {
    padding: 25%;
    text-align: center;
}

#tableContainer {
    display: block;
    font-size: 100%;
    margin-left: 25%;
}

/*NEW, media queries for phone and tablet, default css made for desktop*/
/*Phone*/
@media (max-width:600px) {
    main {
        margin-left: 0%;
    }
    
    .navbar {
        flex-direction: row;
        width: 100%;
        height: 10%;
        flex-wrap: wrap;
        justify-content: center;
        top: 0px;
    }
    .colorChangerExtra {
        display: none;
    }
    .navbar > * {
        padding: 3px;
        margin: 3px;
    }
    .navbarRow {
        display: flex;
        flex-direction: row;
        justify-content: center;
        column-gap: 10px;
    }
    .navbarRow > * {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }
    .HOFRow {
        display: grid;
        grid-template-columns: auto;
        justify-content: center;
    }
    .holidayContainer {
        width: 90%;
        margin-bottom: 5px;
        padding: 2px;
    }
    table {
        width: 100%;
    }
    #tableContainer {
        margin: 5px;
        margin-right: 18%;
    }
    header {
        margin-left: auto;
        width: 100%;
        height: 10%;
        margin-top: 10%;
        padding: 5px;
    }
}
/*Tablet*/
@media (min-width: 600px) and (max-width: 1080px) and (orientation: landscape) {
    main {
        margin-left: auto;
    }
    
    .navbar {
        flex-direction: row;
        width: 100%;
        height: 10%;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        top: 0px;
    }
    .colorChangerExtra {
        display: none;
    }
    .navbar > * {
        padding: 3px;
        margin: 3px;
    }
    .navbarRow {
        display: flex;
        flex-direction: row;
        justify-content: center;
        column-gap: 10px;
    }
    .navbarRow > * {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }
    .HOFRow {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
    }
    .holidayContainer {
        width: 70%;
        margin-bottom: 5px;
        padding: 3px;
    }
    table {
        width: 100%;
    }
    #tableContainer {
        margin: 5px;
        margin-right: 18%;
    }
    header {
        margin-left: auto;
        width: 100%;
        height: 10%;
        margin-top: 5%;
        padding: 5px;
    }
}