/*General body styling */
body 
{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ba9; 
    /*Light blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/*CSS styles for the top navigation bar */
.topnav 
{
    overflow: hidden;
    background-color: #865;
    /*#333;*/
    width: 100%;
    position: fixed;
    top: 0;
    /*left: 10%;*/
    height: 8.5%;
    display: block;
    z-index: 1000;
    /*font-style: italic;*/
    text-align: center;
    color: #fff;
    /*padding: auto;*/
    justify-content: center;
    align-items: center;
}

.topnav h1
{
    margin: auto;
    /*font-family: cursive;*/
    font-family: Arial;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.topnav a 
{
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 15px;
}

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

.topnav a.active 
{
    background-color: #4CAF50;
    color: white;
}

/*CSS styles for the main content layout */
/*.main-content */

/*{*/
/*    display: flex;*/
/*    height: calc(100% - 40px); */
     /*Adjust for the topnav height */
/*    margin-top: 40px; */
     /*Adjust for the topnav height */
/*}*/

/*Container styles */
.main-container 
{
    width: 80%;
    position: fixed;
    height: 80%;
    top: 70px;
    /*max-width: 800px;*/
    margin: auto;
    display: block;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.apps-container
{
    width: 80%;
    height: 95%;
    
    margin-right: 1.5%;
    float: right;
    background-color: #aabacf; 
     /*White background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid blue;
    
    /*width: 80%;*/
    /*position: absolute;*/
    /*margin: 20px auto;*/
    /*background-color: #afa;*/
    /*padding: 20px;*/
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    overflow: scroll;
    /*overflow-y: auto;*/
    /*max-height: 80vh;*/
}

 /*Centered frame styling */
.app-frame 
{
    width: 90%;
    height: 70%;
    /*height: 300px;*/
    
    margin-right: 1.5%;
    /*float: right;*/
    background-color: #eaeaef; 
     /*White background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    text-align: center;
    
    border: 2px solid black;
    
    /*width: 80%;*/
    /*position: absolute;*/
    margin: 20px auto;
    /*background-color: #afa;*/
    /*padding: 20px;*/
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    overflow-y: auto;
    /*max-height: 80vh;*/
}

.app-frame .games
{
    background-color: #fafaef;
}

.app-frame, h2, .app-frame h3
{
    display: block;
}


.sidebar 
{
    position: absolute;
    width: 16.5%;
    display: block;
    float: left;
    flex: 1;
    padding: 16px;
    background-color: #aaa;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 4px;
    z-index: 10;
}

/*.sidebar */
/*{*/
/*    width: 200px;*/
/*    position: absolute;*/ 
/*    display: block;*/
/*    width: 15%;*/
/*    top: 15%;*/
/*    float: left;*/
/*    max-height: 50%;*/
/*    background-color: #333;*/
/*    padding-left: 20px;*/
/*    transition: background-color 0.3s ease;*/
/*}*/

.sidebar a 
{
    display: flex;
    color: #ddd;
    padding-left: 4px;
    background-color: #777;
    /*height: 33%;*/
    margin-top: 2%;
    width: auto;
    left: 3%;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 7px;
}

.sidebar a:hover, .sidebar a.active
{
    background-color: #555;
    color: #eea;
}

.content 
{
    flex: 3;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.centered-frame 
{
    /*margin-left: 220px; */
    /* Adjusted for sidebar width */
    margin: auto;
    padding: 20px;
    flex-grow: 1;
    /*border: 14px solid #af8;*/
}

/*CSS styles for the support modal */
.modal 
{
    /*display: none;*/
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 95%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content 
{
    background-color: #eaeeee;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*Style for the form inside the modal */
form 
{
    margin: 20px auto;
    width: 80%;
}

label 
{
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea 
{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] 
{
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover 
{
    background-color: #45a049;
}

/*Style for the response message */
#responseMessage 
{
    margin-top: 10px;
    font-weight: bold;
}

/*Style for the FAQ section */
h3 
{
    margin-top: 20px;
}

h4 
{
    margin-top: 10px;
}

ul 
{
    list-style-type: none;
    padding: 0;
    overflow: scroll;
}

li 
{
    margin-bottom: 5px;
}

/*CSS styles for the explanation sections */
.explanation 
{
    display: none;
    margin-top: 10px;
}

li:hover 
{
    color: #007bff;
}

/*Override link styles for list items */
li a 
{
    text-decoration: none; 
     /*Remove underline */
    color: inherit;
     /*Inherit text color */
}

li a:hover 
{
    text-decoration: underline;
    color: #0056b3;
}

.explanation 
{
    display: none;
    margin-top: 10px;
}

/*Footer styles */
.footer 
{
    width: 100%;
    height: 8%;
    position: fixed;
    bottom: 0;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 7px 0;
}

.footer a 
{
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover 
{
    text-decoration: underline;
}

.app 
{
    margin-bottom: 40px;
    clear: auto;
    display: block;
}

.app h3, .app h2 
{
    margin: 20px 0;
}

.demo 
{
    position: relative;
    display: flex;
    width: 88%;
    margin: auto;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.demo img 
{
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.demo img.active 
{
    display: block;
}

.nav-button 
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    line-height: 20px;
}

.nav-button.left 
{
    left: 10px;
}

.nav-button.right 
{
    right: 10px;
}

.play-button, .try-button 
{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.play-button:hover, .try-button
{
    background-color: #0056b3;
}

.licence
{
    font-size: 10px;
    position: absolute;
    display: block;
    margin: auto;
}

