
/* Reset some default styles for list items and links */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

ul {
    list-style: none;
    padding: 0;
}

.center-title {
    text-align: center;
}

.center-title h1 {
    margin: 0;
    font-size: 2.5em;
    padding-top:10px;
}

header {
    background-color: #032330;
    color: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 20px;
    @media screen and (max-width: 1199px) {
        padding: 0 10px;
    }
}

.logo img {
    height: 70px;
    width: auto;
    @media (max-width: 767px) {
        height: 60px;
        padding: 10px 0 5px 0;
    }
}
/*
@media screen and (max-width: 767px) {
    /* Reduce the width between buttons /
    .menu {
        margin: 0px; /* Adjust the margin as needed /
        padding: 0;
        font-size: 14px !important; /* Reduce font size /
    }

    nav {
        overflow: wrap;
    }
}*/

.subject-button {
    text-align: left;
    display: block;
    padding: 10px 15px;
    color: #fff;
    margin: 10px auto; /* Center-align the buttons */
    border: none;
    border-radius: 5px;
    text-decoration: none; /* Remove underline from links */
    width: 200px; /* Fixed width for the buttons */
    white-space: nowrap; /* Prevent button text from wrapping */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Show ellipsis for long button text */
    font-size: 16px; /* Increase font size */
    line-height: 24px; /* Match the line height with the icon size for vertical alignment */
    display: flex; /* Center vertically */
    align-items: center; /* Center vertically */
}

/* Style for the subject icons */
.subject-icon {
    margin-right: 10px;
    font-size: 24px;
}

#phys {
    background-color: #FF5733;
}
#phys:hover {
    background-color: #e55026;
}
#chem {
    background-color: #FFC300;
}
#chem:hover {
    background-color: #e5b026;
}
#bio {
    background-color: #2db826;
}
#bio:hover {
    background-color: #1f8a1d;
}
#calc {
    background-color: #3374ff;
}
#calc:hover {
    background-color: #1d5fe5;
}
#eng {
    background-color: #a333ff;
}
#eng:hover {
    background-color: #7407cd;
}

#studykiwilogobig {
    height: 70vh;
    width: auto;
    margin: 0;
  }

@media screen and (max-width: 767px) {
    #studykiwilogobig {
        display: none;
        /* width: 90vw; /* Make the image width 100% to fit the screen */
    }
}

.menu {
    display: flex;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: space-between; /* Space items evenly along the main axis */
    padding: 0;
    margin: 0;
    /*
    gap: 20px;

    @media screen and (max-width: 767px) {
        gap: 10px;    
    }*/
}

.menu li {
    position: relative;
    margin: 5px;
    text-align: center;
    @media screen and (max-width: 767px) {
        flex: 0 0 calc(50% - 10px); /* Two items per row with spacing */
    }
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
    @media screen and (max-width: 1199px) {
        padding: 10px 0.1vw;
    }
}

.menu a:hover {
    background-color: #555;
}

.left-panel ul {
    list-style: none;
    padding: 0;
    padding-top: 10px;
}

.left-panel li {
    text-align: center;
}

/* Style the dropdown button */
.dropdown-button {
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.dropdown-button:hover {
    background-color: #f5f5f5;
}

.dropdown-button a, .dropdown-button p {
    display: inline-block; /* Make <a> and <p> inline-block */
    vertical-align: middle; /* Align them vertically in the middle */
    margin: 0; /* Remove any default margin */
    text-decoration: none;
    color: black;
}

/* Style the dropdown content */
.dropdown-content {
    display: none;
}

/* Style the dropdown links */
.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s ease;
}

/* Style the dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.leftnavlinks {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s ease;
}

.leftnavlinks:hover {
    background-color: #f5f5f5;
}

.arrow-icon {
    padding-left: 5px;
}

.content a, .right-panel a{
    display: table;
    color: gray;
}

.content a:hover, .right-panel a:hover{
    text-decoration: none;
}

.content {
    margin-left: 250px; /* Adjust the margin to create space for the left panel */
    padding: 20px 0 20px 20px;
    float: left; /* Float content to the left for wider screens */
    width: 75%;
    transition: 0.3s ease;
}

.content.widemode {
    width: 90%;
    margin-left: 60px;
    transition: 0.3s ease;
}

/* Adjust the positioning of the right-hand panel */
.right-panel {
    width: 300px;
    background-color: #f5f5f5;
    float:right;
    position: absolute;
    top: 150px; /* Adjust as needed to align with the top of the content */
    right: 0;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Default styles for wider screens */
.center-title {
    text-align: center;
    margin: 0;
}

/* Style for the link list */
.link-list {
    list-style: none;
    width: 100%;
}

/* Style for each link box */
.link-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
}

/* Style for link images */
.link-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    margin: 10px;
}

/* Style for link content */
.link-content {
    flex: 1;
    padding: 0px;
}

/* Style for link titles */
.link-content h2 a {
    color: #333;
    font-size: 1.2rem;
    color: #007BFF;
    font-weight: bold;
}

.link-content h2 {
    margin:10px 0;
}

/* Style for link summaries */
.link-content p {
    font-size: 0.9rem;
}

/* CSS for the collapsible navigation */
.left-panel {
    background-color: white; /* Set background color to white */
    border-right: 1px solid #ccc; /* Add a gray border line */
    padding: 20px;
    width: 200px;
    color: #fff;
    position: fixed;
    top: 150px;
    left: 0;
    overflow-y: auto;
    transition: 0.3s ease;
}

.left-panel ul {
    display:list-item;
}

.left-panel.closed {
    width: 60px; /* Set the collapsed width as needed */
    padding-right: 0;
    border-right: none;
    overflow-y: hidden;
    transition: 0.3s ease;
}

.left-panel.closed ul {
    display: none; /* Hide the links when collapsed */
}

.toggle-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
}

@media screen and (max-width: 767px) {
    .left-panel {
        display: none;
    }
    .content {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Style for the footer section */
footer {
    background-color: #032330;
    color: #fff; /* Text color */
    display: flex; /* Use flexbox to align links */
    justify-content: space-between; /* Space links apart */
    align-items: center; /* Center vertically */
    position: relative; /* Position the footer absolutely */
    bottom: 0; /* Stick it to the bottom of the viewport */
    width: 100%; /* Full width */
    margin: 0 auto; /* Center the footer horizontally */
    padding: 25px 0;
}

/* Style for the left link */
.left-link p {
    text-decoration: none;
    color: #fff !important; /* Force white text color */
    padding-left:20px;
    margin:0;
}

/* Style for the right link */
.right-link a {
    color: #fff !important; /* Force white text color */
    padding:20px;
}

/* Change text color on hver */
.left-link a:hover,
.right-link a:hover {
    color: #ddd;
    text-decoration: none;
}

