/* Styles for both index.html and tutorial.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0A1128;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding-top: 40px;
}

/* Styling for the main heading */
.main-heading {
    font-size: 2rem;
    text-align: center;
    color: #F5F8FA;
    margin-bottom: 20px;
}

/* Responsive heading: smaller font for mobile */
@media (max-width: 600px) {
    .main-heading {
        font-size: 1.2rem;
    }

}



.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #1C2541;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    color: #D9E3F0;
}

.card-title-index {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: #D9E3F0;
}


.card-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btn {
    background-color: #3A506B;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    width: 48%;
    text-align: center;
    text-decoration: none;
}

.btn-arcade {
    background-color: #3A506B;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
}


.btn:hover {
    background-color: #FF4C29;
    color: white;
}

.btn-arcade:hover {
    background-color: #FF4C29;
    color: white;
}


/* New styles for tutorial.html */
.tutorial-list {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.tutorial-link {
    display: block;
    padding: 15px;
    font-size: 1rem;
    background-color: #3A506B;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.tutorial-link:hover {
    background-color: #FF4C29;
}


/* Popup styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    z-index: 1000; /* Sit on top */
    justify-content: center; /* Center the popup */
    align-items: center; /* Center the popup */
}

.popup-content {
    background-color:#1F4068 ;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    height: 170px; /* Adjust width as needed */
    text-align: center;
    position: relative; /* Position relative for close button */
}

.popup-title{
    margin-bottom: 10px;
    font-size: 1.2em;
}

.popup-para{
    margin-bottom: 10px;
    color: #D9E3F0;
    font-size: 0.8em;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.button-close{
    background-color: #FF4C29;
    color: #FFFFFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    width: 25%;
    text-align: center;
    text-decoration: none;
}

.button-close:hover {
    background-color: #FF4C29;
}

/* Footer styles */
.footer {
    background-color: #0A1128;
    color: white;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.footer-text{
    display: flex;
    flex-direction: row;
}

.icon{
    margin-left: 8px;
}
