
/* Global settings for nav and footer */
nav, footer {
    width: 100%;
    position: relative;
    z-index: 1;
  }
 
  /*  Global Reset  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /*  Page Backgrounds >> All of the backgrounds needed for all 3 pages  */
  body {
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Background for home (index.html) */
  .home-page {
    background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
    background-size: cover;
  }
  
  /* Background for classes page */
  .classes-page {
    background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
    background-size: cover;
  }
  
  /* Background for assignments page */
  .assignments-page {
    background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
    background-size: cover;
  }

  
  /*  Navigation Menu  */
  nav {
    background-color: rgba(17, 17, 17, 0.8);
    padding: 10px 0;
    text-align: center;
    border: 20px solid #f7fafa;
  }
  
  nav ul.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul.menu > li {
    display: inline-block;
    position: relative;
    margin: 0 15px;
  }
  
  nav ul.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
  }
  
  /*  Nav Hover color  */
nav ul.menu li a:hover,
nav ul.menu li a:focus {
  background-color: #00beee;
  border-radius: 4px;
  outline: none;
}

  
  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #222;
    min-width: 160px;
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
  }
  
  .dropdown-content li {
    display: block;
  }
  
  .dropdown-content li a {
    padding: 10px;
    display: block;
    color: #fff;
  }
  
  .dropdown-content li a:hover {
    background-color: #00bceb;
  }
  
  /* Show dropdown on hover */
  .dropdown:focus-within .dropdown-content {
  display: block;  /* works for keyboard focus and mobile tap */
}

  
  /*  Main Container that houses "Welcome to COP4813 (Header)  */
  .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: rgba(77, 120, 195, 0.3);
    border-radius: 10px;
  }
  
  /*  Hero's section  */
  /* This section adjusts the heading and subheading as well as colors of the text*/
  h1 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
  
  .subtext {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
  
  
  /*  Profile Section  */
.profile {
    text-align: center;
    padding: 40px 20px;
  }
  /* profile picture insert*/
  .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #ecce25;
  }
  
  /*  Class Summary Section  */
  /*.class-summary displays the backdround semi transparent in blue */
  .class-summary {
    background-color: rgba(107, 160, 228, 0.51);
    padding: 40px;
    text-align: center;
    margin: 10px;
    border-radius: 10px;
    border: 20px solid #f7fafa;
    
  }
  /* Header for class summary*/
  .class-summary h3 {
    margin-bottom: 10px;
  }
  /* list of items under class summary*/
  .class-summary ul {
    list-style-type: none;
    padding: 10;
    font-size: 1.1rem;
  }
  
  .class-summary li {
    margin-bottom: 5px;
  }
  
  /*  Call to action (cta) Section on index page  */
  .cta {
    text-align: center;
    padding: 30px 20px;
    font-size: 1.1rem;
  }
  
  .cta a {
    color: #00ccff;
    font-weight: bold;
    text-decoration: none;
  }
  
  .cta a:hover {
    text-decoration: underline;
  }

  /*  Class course details styling section  */
.class-detail {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    border: 20px solid #f7fafa;
  }
  
  .class-course {
    background-color: rgba(48, 62, 85, 0.557);
    border-left: 5px solid #00ccff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
  }
  
  .class-course h2 {
    margin-bottom: 10px;
    color: #fff;
  }
  
  .class-course p {
    color: #ddd;
    margin: 5px 0;
  }
  
  .class-course a {
    color: #00ccff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .class-course a:hover {
    text-decoration: underline;
  }
  /*  Class course details styling section Ends  */


 /*  assignment-list details styling section starts  */
 .assignment-detail {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    border: 20px solid #f7fafa;
  }
  
  .assignment-list {
    background-color: rgba(48, 62, 85, 0.557);
    border-left: 5px solid #00ccff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
  }
  
  .assignment-list h2 {
    margin-bottom: 10px;
    color: #fff;
  }
  
  .assignment-list p {
    color: #ddd;
    margin: 5px 0;
  }
  
  .assignment-list a {
    color: #00ccff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .assignment-list a:hover {
    text-decoration: underline;
  }
  /* assignment-list styling section Ends */

  
/* Contact 1 form starts */
.error {
    color: red;
    font-size: 0.9em;
  }
  
  /*  Background image   */
  body.contact-page {
    background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
  }
  
  .form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    gap: 40px;
  }
  

  .form-container,
  .info-container {
    background: rgba(98, 169, 235, 0.404);
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-sizing: border-box;
    border: 20px solid #f7fafa;

  }
    /* Created to extend the message about contacting me with a subtle background (blue) */
  .info-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #00ccff; 
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
  }

  form input,
  form textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  button {
    padding: 10px 20px;
    background: #00ccff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background: #043870;
  }
  /* "Let's Connect" adjustment of size and color */
  .info-container h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #ffffff;
  }
  /* Info under "Let's Connect" changes the size and color of paragraph*/
  .info-container p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
  }
  
/* Contact 1 form ends */

/* Logistic Growth Calculator Begins*/

.calculator {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 10px;
    background: #aeceee;
  }
  
  .input-sections {
    margin-bottom: 20px;
  }
  

  input {
    margin: 5px;
    padding: 5px;
  }  

/* Logistic Growth Calculator Ends*/

/* Spirograph starts */

    body.spirograph-page {
        background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
        background-size: cover;
        font-family: Arial, sans-serif;
    }
    
    .spirograph-container {
    margin-top: 40px;
    background: #000000;
    border: 1px solid #f6f6f6;
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    }
    
    
    .spirograph-container h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #ffffff;
    }
    
    
    .spirograph-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    }
    
    
    .spirograph-controls label {
    font-size: 14px;
    margin-right: 4px;
    color: #444;
    }
    
    
    .spirograph-controls input {
    width: 60px;
    padding: 4px;
    font-size: 14px;
    text-align: center;
    }
    
    
    #spirographCanvas {
    border: 2px solid #000;
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
    }
    
    
    button#drawBtn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    }
    
    
    button#drawBtn:hover {
    background-color: #0056b3;
    }
/* Spirograph ends */

/* Player table data display begins */

#playerTableContainer table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    padding: auto;
  }
  
  .center-heading {
    text-align: center;
    margin-top: 20px;
  }

  #playerTableContainer th,
  #playerTableContainer td {
    border: 1px solid #91baf2;
    padding: 15px;
    text-align: center;
    background-color: rgba(17, 17, 17, 0.943);
  }
  
  #playerTableContainer th {
    background-color: #64bcf600;
  }
  /* Player table data display ends*/



  /* Drag and drop Cards*/
 /* Space below the title */
.title-spaced {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  
  /* Center the Deal button */
  .center-button {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* Center card area */
  .card-area.centered {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  /* Discard pile styles */
  .discard-area {
    border: 2px dashed #ffffff;
    padding: 20px;
    min-height: 160px;
    width: 80%;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    background-color: #202022;
  }
  
  /* Card styles */
  .card {
    width: 100px;
    height: auto;
    cursor: grab;
  }
  
  /* Game rules section */
  .game-rules {
    max-width: 600px;
    margin: 0 auto 30px auto;
    background-color: #91baf2;
    padding: 20px;
    border: 1px solid #f4f4f4;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .game-rules h2 {
    text-align: center;
    margin-bottom: 10px;
  }

  #clearDiscardBtn {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  /* Drag and drop ends*/

/* ======================
   Animation Page Styling
   ====================== */

/* Full-page background (matches other assignment pages) */
.animation-page {
    background: url('010-Daytona-beach-skyline.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: #fff;
  }
  
  /* Summary Section */
  .animation-summary {
    background-color: rgba(77, 120, 195, 0.45);
    border: 20px solid #f7fafa;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 30px 25px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .animation-summary h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
  
  .animation-summary p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #f2f2f2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }
  
  /* Main animation display area */
  .animation-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 75vh;
    margin: 20px auto 40px auto;
    max-width: 900px;
    border-radius: 10px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);  /* darker overlay for clarity */
    backdrop-filter: blur(2px);
    box-sizing: border-box;
    border: 20px solid #f7fafa;
  }
  
  /* Section title */
  .animation-section .animation-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  /* Instruction tip under animation title */
.animation-section .animation-tip {
    font-size: 1rem;
    color: #ffeb3b; /* soft yellow for visibility */
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-style: italic;
    letter-spacing: 0.5px;
  }
  
  
  /* Canvas styling */
  .animation-section #myCanvas {
    border: 3px solid #2d6cdf;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
  }
  
  /* Hover effect for canvas */
  .animation-section #myCanvas:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
  }
  
 /* Animation for bouncing ball ends*/

   /*  Footer across all pages  */
   footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(17, 17, 17, 0.8);
    color: white;
    font-size: 0.9rem;
    border: 20px solid #f7fafa;
  }

  /*  Footer across all pages ends  */



 /* ======= MOBILE NAV ======= */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  margin: 10px 20px;
}

@media (max-width: 768px) {
  nav ul.menu {
    display: none;
    flex-direction: column;
    background-color: rgba(17,17,17,0.95);
    width: 100%;
  }

  nav.active ul.menu {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  nav ul.menu li {
    display: block;
    margin: 10px 0;
  }

  .dropdown-content {
    position: static;
  }
}

/* Audit section for results*/

.audit-results {
  background-color: rgba(107, 160, 228, 0.5);
  border: 20px solid #f7fafa;
  border-radius: 10px;
  padding: 30px;
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
  color: #fff;
}
.audit-results ul {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}
.audit-results img {
  width: 100%;
  max-width: 800px;
  margin: 15px 0;
  border-radius: 10px;
  border: 3px solid #f7fafa;
}


/* 
   CLASS ADVISOR TOOL PAGE STYLING */

body.advisor-page {
  background: url('010-Daytona-beach-skyline.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* Main advisor container */
.advisor-container {
  max-width: 900px;
  margin: 50px auto;
  background: rgba(107, 160, 228, 0.55);
  border: 20px solid #f7fafa;
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Headings */
.advisor-container h1 {
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.advisor-container h2 {
  color: #f7fafa;
  margin-top: 30px;
}

/* Instruction text */
.advisor-container p {
  font-size: 1.1rem;
  color: #f2f2f2;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Course sections */
#courseList, 
#availableCourses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* Course tile */
.course {
  padding: 12px 20px;
  border: 2px solid #003366;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.course:hover {
  background-color: #00beee;
  color: #fff;
}

.course.taken {
  background-color: #4caf50;
  color: #fff;
}

.course.locked {
  background-color: #999;
  color: #eee;
  cursor: not-allowed;
}

.available {
  min-height: 120px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 25px;
  border: 2px dashed #f7fafa;
  color: #fff;
}

/* Legend */
.legend {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1rem;
}

.legend-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 8px;
}

.legend-box.green { background-color: #4caf50; }
.legend-box.blue { background-color: #00beee; }
.legend-box.gray { background-color: #999; }

/* ===========================
   Course Info Modal Styling
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 20px 30px;
  border: 3px solid #003366;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  color: #003366;
  text-align: left;
}

.modal-content h2 {
  color: #003366;
  margin-bottom: 10px;
}

.close {
  color: #003366;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: red;
}

/* CMS TABLE STYLING */

.cms-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cms-table th, .cms-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
}

.cms-table th {
  background-color: #003366;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cms-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.cms-table a {
  color: #007bff;
  text-decoration: none;
}

.cms-table a:hover {
  text-decoration: underline;
}
