/* General Reset */
body,
h1,
h2,
h3,
p,
ul,
li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #13294b; /* UIUC Navy Blue */
    color: #ff5500; /* UIUC Orange */
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header h2 {
    font-size: 1.5rem;
    font-weight: normal;
}

/* Main Content */
main {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    justify-content: center;
    padding: 0 1rem;
}

#calendar-container {
    flex: 1 1 60%;
    max-width: 60%;
    margin: 1rem;
}

#details {
    flex: 1 1 30%;
    max-width: 30%;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login Page */
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  /* Adjust height excluding header/footer */
  text-align: center;
}

.form-container {
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.input-field {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #13294b;
  border-radius: 4px;
  font-size: 16px;
  max-width: 350px;
  width: 100%;
}

.input-field:focus {
  outline: none;
  border: 2px solid #e84a27;
}

.submit-button {
  background-color: #e84a27;
  /* University of Illinois orange */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background-color: #d13f21;
}

/* Event Details Styling */
#details h3 {
    color: #13294b;
    margin-bottom: 1rem;
}

#details p {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Footer Styling */
footer {
    text-align: center;
    background-color: #13294b;
    color: white;
    padding: 1rem;
    margin-top: 2rem;
}

/* Calendar Styling */
#calendar {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---- RESPONSIVE STYLES ---- */
/* Adjust the layout for tablets and smaller screens */
@media (max-width: 768px) {
    main {
        display: block; /* Stacks the sections vertically */
        padding: 0 1rem;
    }

    #calendar-container,
    #details {
        max-width: 100%;
        margin: 1rem 0;
        flex: none; /* Removes flexible resizing */
    }
}

/* Further reduce font sizes or adjust spacing for very small devices if needed */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header h2 {
        font-size: 1rem;
    }
    
    #details h3 {
        font-size: 1.2rem;
    }
}
