/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/* 
    Created on : Feb 20, 2025, 12:37:31 AM
    Author     : haivanbenjamin
*/

/* Ensure all elements use border-box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default body margins and paddings */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Optional: Use a wrapper container to constrain content width */
.wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px; /* Add some horizontal padding for spacing on small screens */
}

/* Ensure images and other media don't overflow their containers */
img,
video {
  max-width: 100%;
  height: auto;
}

/*-------Project 1/2------------*/

/*Most styling for project 1*/
body {
    background-color: #F0F8FF;
    margin: 0;
    font-family: Arial, sans-serif;
}

a:hover {
    font-size: 150%;
}

/*Navigation bar styling*/
.navbar {
    background-color: #F0F8FF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.logo {
    color: rgb(255, 150, 150);
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-links img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    text-align: center;
}

.nav-links a:hover {
    color: #FF0000;
}

/*Styling for home page*/
.myName {
    display: grid;
    place-items: center;
    height: 80vh;
}

.haivan {
    border: 5px solid black;
    border-radius: 10px;
}

/*Most styling for personal page*/
#about-me h2 {
    color: red;
}

#hobbies h2 {
    color: darkblue;
}

#education h2 {
    color: green;
}

.college-degree {
    font-weight: bold;
}

.diploma {
    font-style: italic;
}

.certification {
    text-decoration: underline;
}

/*Styling for schedule page*/
table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 18px;
    text-align: center;
    border-radius: 10px;
}

th,
td {
    border: 2px solid #333;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #555;
    color: white;
}

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

tr:hover {
    background-color: lightyellow;
}

/* Primary list (months) - Arabic numbers */
ol {
    list-style-type: decimal;
    /* Ensures Arabic numbers (1, 2, 3...) */
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-left: 20px;
}

/* Secondary list (events & holidays) - Uppercase letters */
ol ol {
    list-style-type: upper-alpha;
    /* Ensures uppercase letters (A, B, C...) */
    margin-left: 20px;
}

/* Style the primary level */
ol>li {
    font-weight: bold;
    color: #2c3e50;
    /* Dark blue-gray */
    margin-top: 10px;
}

/* Style sublist items */
ol ol li {
    font-weight: normal;
    color: #555;
    /* Slightly lighter gray */
}

/* Style links (holidays/special events) */
ol ol li a {
    color: #2980b9;
    /* Blue links */
    text-decoration: none;
    font-weight: bold;
}

ol ol li a:hover {
    text-decoration: underline;
    color: #1a5276;
    /* Darker blue on hover */
}

/* Styling for Account page*/
#account-form {
    max-width: 400px;
    /* Restricts width */
    margin: auto;
    /* Centers the form */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Adds space between sections */
    padding: 20px;
    background: #f9f9f9;
    /* Light background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Adds space between inputs */
}

input {
    width: 100%;
    /* Makes inputs full-width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}


/*---------Project 3 CSS-------------*/
/* --- Additional Styles for Payment Processing Page --- */

/* Unique colors for each section header */
form h2:nth-of-type(1) {
    color: #e67e22;
    /* Shipping Information - Orange */
}

form h2:nth-of-type(2) {
    color: #27ae60;
    /* Billing Information - Green */
}

form h2:nth-of-type(3) {
    color: #2980b9;
    /* Payment Method - Blue */
}

/* Custom checkbox for "Same as Shipping" */
/* Remove default appearance and style based on checked status */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: grey;
    /* unselected state */
    cursor: pointer;
    position: relative;
    margin-right: 5px;
}

input[type="checkbox"]:checked {
    background-color: blue;
    /* selected state */
}

input[type="checkbox"]:checked::after {
    content: "\2713";
    /* Unicode check mark */
    color: white;
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 18px;
}

/* Replace the default hyperlink for CVV Info with an icon and tooltip. */
/* In this case, the anchor with id 'cvv-info' is styled to show a custom icon. */
#cvv-info {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../images/cvv_icon.png') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    /* hide the link text */
    border: none;
    vertical-align: middle;
}

/* Tooltip styling for the CVV icon */
#cvv-info::after {
    content: "The CVV/CVC is a 3- or 4-digit security code on your card.";
    position: absolute;
    bottom: 125%;
    /* place tooltip above icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
    font-size: 14px;
}

/* Tooltip arrow */
#cvv-info::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

/* Show tooltip on hover */
#cvv-info:hover::after,
#cvv-info:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Make credit card images smaller */
#credit-card-images img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

/* Make the Clear Form and Pay Now buttons smaller */
#form-buttons input[type="image"] {
    width: 80px;
    height: auto;
    margin: 5px;
}