/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* Navigation bar styles */
.topnav {
    overflow: hidden;
    background-color: #88C273;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
.active:hover {
    background-color: #88C273;
}

.logo {
    margin: 0px;
    width: 100%;
    height: 16px;
}

.topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #3e9e41;
    color: white;
}

.topnav .icon {
    display: none;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive styles for navigation */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdown {float: none;}
    .topnav.responsive .dropdown-content {position: relative;}
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* Header styles */
header {
    background-color: #2e8831;
    color: white;
    padding: 1em 0;
    text-align: center;
}

/* Main content styles */
main {
    padding: 1em;
}

/* Footer styles */
footer {
    background-color: #536493;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;    
}

.welcome {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 290px 80px 1fr;
}

.welcome p{
    text-align: start;
    margin: 0px 30px 0px 15px;
}

.welcome-text{
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 4;
    min-width: 400px;
    font-family: "Chewy", serif;
    font-size:x-large;
    font-weight: 400;  
    font-style: normal;
}

.welcome button {
    display: inline-block;
    border-radius: 4px;
    background-color: #88C273;
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 28px;
    padding: 20px;
    width: 200px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;

    font-family: "Chewy", serif;
  }
  
.welcome button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }
  
.welcome button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }
  
.welcome button:hover span {
    padding-right: 25px;
  }
  
.welcome button:hover span:after {
    opacity: 1;
    right: 0;
  }

/*Balance Sheet Game */
/* Rules popup styles */
.rules-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.rules-popup.hidden {
    display: none;
}

.rules-popup .popup-content {
    background-color: #fff;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rules-popup .popup-content h2 {
    margin-top: 0;
}

.rules-popup .rules-list {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.rules-popup .rules-list li {
    margin-bottom: 10px;
}

.rules-popup button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #2e8831;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.rules-popup button:hover {
    background-color: #3e9e41;
}


details{
    border: 1px solid;
    margin-bottom: 10px;
    min-width: 150px;
    border-radius: 4px;
    border: 0px;
}

summary{
    background-color: #88C273;
    border-radius: 4px;
}

.balanceGame {
    display: grid;
    grid-template-columns: 250px 5px 230px 5px 440px;
    grid-template-rows: 275px 1px 1fr;
}

#guide {
    min-width: 75px;
}

#wordBank {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 3;
    grid-column-end: 3;

    display: grid;
    grid-template-columns: 110px 110px;
    grid-template-rows: repeat(5);
    
}


.answer {
    border-style: solid;
    border-width: 2px 1px 2px 1px; 
    border-radius: 5px;
    background-color: #88C273;
    border-color:#2e8831 ;
    width: 110px;  
    height: 47px;
}

#balanceSheet {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 5;
    display: grid;
    height: 150px;
}

#equitySheet {    
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 5;
    grid-column-end: 5;
    
}

#balanceSheet div{
    border-style: solid;
    border-width: 2px 1px 2px 1px;    
}

#equitySheet div{
    border-style: solid;
    border-width: 2px 1px 2px 1px;    
}

.aspectsBS {
    display: flex;
    justify-content: space-between;
}

.aspectsBS p{
    margin: 0px;
}

.questionInput {
    display: grid;
    grid-template-columns: 110px 110px 110px 110px;
    grid-template-rows: 50px;
}

.dropzone {
    width: 110px;  
    height: 47px;
    justify-content:space-around;
}
