/* GENERAL */

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway';
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}


.container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* DESKTOP NAVIGATION */

#header-nav {
    min-width: 550px;
    height: 3.5rem;
    width:100%;
    background-color: #ea5b0c;
    z-index: 1;
    font-family: 'Raleway';
    margin-bottom: 1rem;
}

#header-nav h1 {
    color: white;
    position: absolute;
    font-family: 'Raleway';
    margin-left: 2rem;
    margin-top: 0.75rem;
}

#desktop-nav ul {
    float:right;
    padding-right: 1rem;
}

#desktop-nav ul > li {
    display: inline-block;
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 2px solid black;

}

#desktop-nav ul > li > a {
    text-decoration: none;
    color: white;
    font-family: 'Raleway';
}

#desktop-nav ul > li > a:hover {
    color: black;
}

#desktop-nav ul > li > .active > a:hover {
    color: orange;
}

#mobile-nav {
    display:none;
}

@media (max-width: 1000px ) {

    #desktop-nav {
        display:none;
    }

    #mobile-nav {
        display:block;
    }
    
}


/* MOBILE NAVIGATION */

#mobile-nav-btn {
    float: right;
    font-size: 2rem;
    border: 2px solid #fff;
    width: 35px;
    height: 35px;
    position:relative;
    margin-top: 0.75rem;
    margin-right: 1.5rem;
}

#mobile-nav-btn > span {
    position: absolute;
    bottom: -2px;
    left: 7px;

}

#mobile-nav-content > ul > li {
    display: block;
    background-color: black;
    height: 50px;
    padding: .4rem 1.2rem;
    text-align: center;
}

#mobile-nav-content > ul > li > a {
    text-decoration: none;
    color: white;
}

#mobile-nav-content > ul > li > a:hover {
    text-decoration: none;
    color: orange;
}

#mobile-nav-dropdown {
    position:relative;
    float: right;
}

#mobile-nav-dropdown:hover > #mobile-nav-content {
    display: block;
    margin-top: 0.275rem;
}

#mobile-nav-content {
    position: absolute;
    right: 0;
    top: 50px;
    display: none;
}

.active{
    background-color: black;
}

/* FORMS */

/* FUNDRAISERS */
#addfundraiser-form-box {
    border: #ddd, solid, 1px;
    padding: 8px;
    width:170px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
#addfundraiser-form-box > form > label > input {
    width:150px;
    margin-left: auto;
    margin-right: auto;
} 

.date-info, #date-edit-popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.date-info-content, .date-info-content form {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close-date-info, .close-date-edit {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-date-info:hover,
.close-date-edit:hover,
.close-date-info:focus,
.close-date-edit:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* EXPENSES */
#addexpense-form-box {
    border: #ddd, solid, 1px;
    padding: 20px;
    width:190px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
#addexpense-form-box > form > label > input {
    width: 150px;

} 

.expense-info, #expense-edit-popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.expense-info-content, .expense-info-content form {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close-expense-info, .close-expense-edit {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-expense-info:hover,
.close-expense-edit:hover,
.close-expense-info:focus,
.close-expense-edit:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* CAR */
#addcar-form-box {
    border: #ddd, solid, 1px;
    padding: 8px;
    width:170px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
#addcar-form-box > form > label > input {
    width:150px;
} 

/* TABLES */

table { 
    border-collapse: collapse; width: auto; 
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

th, td { 
    border: 1px solid #ddd; padding: 8px; text-align: left; 
}

tr:nth-child(even) { 
    background-color: #f2f2f2; 
}

.positive { 
    color: green; 
}

.negative { 
    color: red; 
}

.actions { 
    white-space: nowrap; 
}

/* BUTTONS */

button.add-btn { 
    background-color: #00aa2b; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    cursor: pointer; 
}
button.add-btn:hover { 
    background-color: #007706; 
}

button.edit-btn { 
    background-color: #ffa600; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    cursor: pointer; 
}
button.edit-btn:hover { 
    background-color: #c06d00; 
}

button.delete-btn { 
    background-color: #ff4444; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    cursor: pointer; 
}
button.delete-btn:hover { 
    background-color: #cc0000; 
}

#nav-btn {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

#nav-btn > button > a {
    color: white;
    text-decoration-line: none;
}