body{
    background: #000;
    color: #f2f2f2;
    font-family: 'Montserrat', sans-serif;
}

/* Let images shrink on small screens while keeping their width/height ratio */
img {
    max-width: 100%;
    height: auto;
}

/*Heading*/
#header{
    text-align: center;
}

#logo p{
    font-size: 40px;
    
}
#nav {
    
    margin-bottom: 10px;
}
#nav p {
    display: inline-block;
    margin: 0px 50px 20px 50px;
    font-size: 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}
#footerNav {
    display: none;
}
.navLink {
    text-decoration: none;
    color: white;
}

/* Border */
.border{
    background: #25AD00;
    height: 20px;
    width: 100%;
    margin-left: 2px;
}

/*Category*/
#checklists {
    width: 99%;
    text-align: center;
    margin-top: 11px;
}
.categories {
    width: 207px;
    background: #2A2A2A;
    padding: 12px 0;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin: 0 5px 10px 5px;
}
.categoryHeader {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}
.categoryHeader img {
    height: 30px;
    width: 30px;
    margin-bottom: -5px;
}
.categoryHeader .title {
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 20px;
}
.categoryHeader p {
    font-weight: 900;
    font-size: 25px;
}


/*Checklists*/
.list ul {
    list-style-type: none;
}
.list li {
    position: relative;
    left: -30px;
    margin-bottom: 25px; 
    width: 175px;
    line-height: 24px;
    font-weight: 600;
}

/* The container */
.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #2A2A2A;
    border: 3px solid #A1A1A1;
    border-radius: 3px;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Show keyboard users which checkbox is focused */
.container input:focus-visible ~ .checkmark {
    outline: 2px solid #f2f2f2;
    outline-offset: 2px;
}

/* Checkmark/indicator */
.container .checkmark:after {
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid #f2f2f2;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/*Clear Button*/
.buttonDiv {
    display: flex;
    justify-content: center;
}
/*Clear and Print Buttons - green outline, fills green on hover*/
.button, .printButton {
    background: transparent;
    border: 2px solid #25AD00;
    color: #f2f2f2;
    padding: 10px 28px;
    text-align: center;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
}
.button:hover, .printButton:hover {
    background: #25AD00;
}
.button:focus-visible, .printButton:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 2px;
}
.button {
    margin: 15px 5px;
}
.printButton {
    margin: 5px 5px 20px 5px;
}
.printDiv {
    text-align: center;
}

/*A finished category turns green, so its Clear button switches to off-white to stay visible*/
.categories.complete .button {
    border-color: #f2f2f2;
}
.categories.complete .button:hover {
    background: #f2f2f2;
    color: #000;
}
.categories.complete .addItemButton {
    background: #f2f2f2;
}

/*Blank write-in lines only appear on paper (see print styles at the bottom)*/
.list .writeIn {
    display: none;
}

/*Add Your Own Item*/
.addItem {
    display: flex;
    gap: 6px;
    width: 185px;
    margin: 0 auto;
}
.addItemText {
    flex: 1;
    min-width: 0;
    background: #000;
    border: 2px solid #A1A1A1;
    border-radius: 3px;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 16px; /* 16px or larger stops iPhones zooming in on focus */
    padding: 6px 8px;
}
.addItemText::placeholder {
    color: #A1A1A1;
}
.addItemText:focus {
    outline: none;
    border-color: #25AD00;
}
.addItemButton {
    background: #25AD00;
    border: none;
    border-radius: 3px;
    color: #000;
    font-size: 16px;
    padding: 0 12px;
    cursor: pointer;
}
.addItemButton:focus-visible, .removeItem:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 2px;
}

/*Custom items get a remove button on the right*/
.customItem .container {
    padding-right: 24px;
}
.removeItem {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #A1A1A1;
    font-size: 16px;
    line-height: 24px;
    padding: 0 4px;
    cursor: pointer;
}
.removeItem:hover {
    color: #f2f2f2;
}
#footer {
    font-size: 14px;
    text-align: center;
    color: #bfbfbf;
}
.lineThrough{
    text-decoration: line-through;
}
/* Every item in the category is checked (desktop and mobile) */
.categories.complete {
    background: #25AD00;
}
.shareBox {
    text-align: center;
}

/* Share Buttons */
ul.share-buttons{
    display: inline-block;
    list-style: none;
    padding: 0;
}

ul.share-buttons li{
    display: inline;
}

ul.share-buttons .sr-only{
    position: absolute;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.social i {
    color: #25AD00;
}

/* ABOUT US PAGE */
.subPageHeader {
    text-align: center;
    font-size: 36px;
}
.aboutUsBox {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
}
.aboutUsBox div {
    display: inline-block;
    margin: 0 50px;
}
.aboutUsPic, .aboutUsInfo {
    width: 500px;
    height: 100%;
}
.aboutUsPic img {
    width: 100%;
}
.aboutUsInfo {
    vertical-align: top;
    text-align: left;
    font-size: 20px;
}

/* CONTACT US / FEEDBACK PAGE */

.contactUsInfo {
    margin: 0 auto;
    width: 500px;
}
.contactUsInfo img {
    width: 100%;
}
.contactUsInfo p {
    text-align: center;
}
.email {
    text-align: center;
    font-size: 20px;
}
.email a {
    text-decoration: none;
    color: white;
}
.brokenpage p {
    text-align: center;
}
    
/* TABLET and MOBILE */

@media only screen and (max-width: 921px)  {
    /* Header */
    #logo img {
        width: 85%;
    }
    #logo p{
        font-size: 25px;
    }
    /* Navigation */
    #nav {
        display: none;
    }
    #footerNav {
        display: block;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        text-align: center;
        margin-top: 30px;
    }
    #footerNav div {
        padding: 0;
        margin: 10px 0;
        font-size: 18px;
    }
    #footerNav p {
        cursor: pointer;
        text-transform: uppercase;
        display: inline-block;
    }
    
    .border{
        height: 10px;
        margin-bottom: 1px;
    }
    
    /* Category */
    #checklists {
        width: 100%;
        margin-top: 0px;
    }
    .categories {
        width: 100%;
        background: black;
        margin: 2px;
        padding: 0;
        /* Row 2 (the list) slides between 0fr (closed) and 1fr (open) */
        display: grid;
        grid-template-rows: auto 0fr;
        transition: grid-template-rows 0.4s ease;
    }
    .categories.open {
        grid-template-rows: auto 1fr;
    }
    .headerContainer {
        background: #2A2A2A;
        height: 60px;
        padding: 10px 0;
    }
    
    .headerContainer:hover {
        cursor: pointer;
    }
    .headerContainer:focus-visible {
        outline: 2px solid #f2f2f2;
        outline-offset: -2px;
    }
    .categoryHeader{
        position: relative;
        top: -10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0px;
        
    }
    .categoryHeader:before {
        content:url(../assets/images/right.png);
        padding: 7px;
    }
    .categoryHeader.downArrow:before {
        content:url(../assets/images/down.png);
        padding: 7px;
    }
    .categoryHeader .title {
        font-size: 17px;
        margin-left: 11px;
        width: 165px;
        display: inline-block;
        text-transform: uppercase;
        
    }
    .categoryHeader p {
        font-size: 24px;
        font-weight: 900;
        margin-right: 5px;
    }
    .safety p {
        padding-left: 15px;
    }
    
    /*Checkboxes*/
    .list {
        min-height: 0;
        overflow: hidden;
        /* Hide closed lists from keyboard/screen readers once the slide finishes */
        visibility: hidden;
        transition: visibility 0s 0.4s;
    }
    .categories.open .list {
        visibility: visible;
        transition: visibility 0s;
    }
    .list li {
        display: inline-block;
    }
    .addItem {
        width: calc(100% - 40px);
        max-width: 400px;
    }
    .checkmark {
        background: black;    
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .categories, .list {
        transition: none;
    }
}

@media only screen and (max-width: 665px){
    .aboutUsBox div {
        margin: 0;
    }
    .aboutUsPic, .aboutUsInfo {
        width: 90%;
        
    }
    .aboutUsInfo {
        font-size: 18px;
    }
    .contactUsInfo {
        width: 100%;
    }
    .contactUsInfo img {
        width: 100%;
    }
    .list li {
        width: 275px;
    }
}
/* PRINT - a paper checklist for the trail. Shows whatever is checked on screen. */

@media print {
    @page {
        margin: 0.4in;
    }

    body {
        background: #fff;
        color: #000;
        margin: 0;
    }

    /* Nothing to click on paper */
    #nav, #footerNav, .shareBox, .buttonDiv, .printDiv, .border, #logo a, #footer,
    .addItem, .removeItem {
        display: none;
    }

    /* The logo is a dark photo - print the name as text to save ink */
    #logo::before {
        content: "The Off-Road Checklist";
        display: block;
        font-size: 18pt;
        font-weight: 900;
        text-transform: uppercase;
    }
    #logo p {
        font-size: 10pt;
        margin: 0 0 4pt;
    }
    #header > p {
        font-size: 9pt;
        margin: 0 0 10pt;
    }

    /* Three newspaper-style columns; a category never splits across columns or pages */
    #checklists {
        width: 100%;
        margin: 0;
        text-align: left;
        column-count: 3;
        column-gap: 0.3in;
    }
    .categories, .categories.complete {
        display: block;
        width: auto;
        margin: 0 0 12pt;
        padding: 0;
        background: none;
        break-inside: avoid;
    }

    .categoryHeader {
        display: flex;
        align-items: center;
        gap: 5pt;
        margin: 0 0 5pt;
        padding-bottom: 2pt;
        border-bottom: 1.5pt solid #000;
    }
    .categoryHeader img {
        width: 12pt;
        height: 12pt;
        margin: 0;
        filter: invert(1); /* icons are white - print them black */
    }
    .categoryHeader .title {
        flex: 1;
        margin: 0;
        font-size: 11pt;
    }
    .categoryHeader p {
        margin: 0;
        font-size: 11pt;
    }

    .list ul {
        margin: 0;
        padding: 0;
    }
    .list li {
        left: 0;
        width: auto;
        margin: 0 0 3pt;
        line-height: 1.25;
        break-inside: avoid;
    }
    .container {
        font-size: 9.5pt;
        padding-left: 15pt;
        margin: 0;
    }

    /* Plain outlined boxes with black ticks */
    .checkmark {
        top: 1pt;
        width: 7pt;
        height: 7pt;
        background: #fff;
        border: 1.2pt solid #000;
        border-radius: 1pt;
    }
    .container .checkmark:after {
        left: 2pt;
        top: 0;
        width: 2pt;
        height: 4.5pt;
        border-color: #000;
        border-width: 0 1.2pt 1.2pt 0;
    }

    /* Blank lines with an empty box for writing in extra gear */
    .list .writeIn {
        display: block;
        position: relative;
        height: 14pt;
        margin: 0 0 3pt;
    }
    .list .writeIn::before {
        content: "";
        position: absolute;
        left: 0;
        top: 3pt;
        width: 7pt;
        height: 7pt;
        border: 1.2pt solid #000;
        border-radius: 1pt;
    }
    .list .writeIn::after {
        content: "";
        position: absolute;
        left: 15pt;
        right: 0;
        bottom: 2pt;
        border-bottom: 0.75pt solid #000;
    }

    #footer {
        color: #000;
        font-size: 8pt;
    }
}
