/*** VSCodeEDU preview fix 

  Purpose:
  - Fix VSCodeEDU issue that causes a white border to show around
    the preview window

  When To Modify:
  - If you change the background color of your webpage, you may need to update this rule too.
***/
html {
    background-color: var(--bg-color);
}

/*** body ***
  
  Purpose:
  - Add style rules for the body of your webpage
  - This is useful if you want a rule to apply to EVERYTHING on your page
    - (Tip: You can always override these rules later in the stylesheet)

  When To Modify:
  - [ ] Project 3 (REQUIRED FEATURE) 
  - [ ] Any time after
***/

body {
    /* Add a background color or image */
    background-color: var(--bg-color); /* see bottom of file for color variables */

    /* Customize the default size, color, and font for text*/
    font-size: 16px;
    color: var(--text-color);
    font-family: Tahoma, sans-serif; /* This tells the browser: "Try to use `Tahoma`, and if you can't find it, use any sans-serif font." */

    /* Put space around the edges of the webpage */
    margin: 50px;
}

/*** Text ***
  
  Purpose: 
  - Add style rules for headings (h1-6),
    paragraphs (p), links (a), and buttons

  When To Modify:
  - [X] Project 3 (REQUIRED FEATURE) 
  - [ ] Any time after
***/

h1 {
    color: blue;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    
    font-size: 40px;
}

h2 {
    font-style: italic;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    
}

h3 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h4 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h5 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h6 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

p {
    font-family: 'Times New Roman', Times, serif;
    list-style: circle;
}

a,
a * {
    color: black;
    text-decoration: none;
}

a:link{
    color: blue;
    text-decoration: none;
}
a:visited{
    color: lightblue;
}
a:hover{
    color: lightblue;
}
a:active{
    color: lightblue;

}
a article h3 {
    color: blue;
    text-decoration: underline;
}
a article h3:visited {
    color: lightblue;
}
a article h3:hover{
    color: lightblue;
}
a article h3:active {
    color: lightblue;
}

button {
    background-color: blue;
    color: white;              
    border: none;               
    padding: 7px 12px;          
    border-radius: 10px;         
    cursor: pointer;
}

button:hover {
    background-color: lightblue;
}

/*** header ***
  
  Purpose:
  - Add style rules for your website's header section

  When To Modify:
  - [X] Project 3 (REQUIRED FEATURE) 
  - [ ] Project 4 (REQUIRED FEATURE) 
  - [ ] Any time after
***/

.header-container { /* Example A: This styles elements with class="header" */
    padding-top: 30px;
    margin-bottom: 30px;
    text-align: left;
    padding: 10px;
    
    
    background-color: #fb8555;
    border-radius: 10px;

    display:flex;
    flex-direction:row;
    text-align: center;
    margin-top: 30px;

}

.header-item:nth-of-type(1) {
    width: 50%;
    text-align: left;
}

.header-item:nth-of-type(2) {
    width: 50%;
    text-align: right;
    
}

#header-img {
    max-width: max-content;
    align-items: center;
    width: 300px;
    margin-left: 30px;
    margin-right: 30px;
    height: 100px;
}

.header-button {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: blue;
    text-align: center;
    font-size: 15px;
    color: white;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}

.header-button:hover {
    background-color: lightblue;
}

/*** footer ***
  
  Purpose:
  - Add style rules for your website's footer section

  When To Modify:
  - [ ] Project 3 (STRETCH FEATURE) 
  - [ ] Any time after
***/

.footer-container { /* Example B: This styles elements with class="footer" */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fb8555;
    text-align: center;
    font-style: italic;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/*** Navigation bar (navbar) ***
  
  Purpose:
  - Add style rules for your website's navbar

  When To Modify:
  - [ ] Project 4 (REQUIRED FEATURE) 
  - [ ] Any time after
***/

.navbar-container ul {
    z-index: 1000; /* Ensures the navbar is on top of other elements */
    
    list-style-type: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 10px;
}

.navbar-container ul li {
    float: left;
    margin: 10px;
}

.navbar-container ul li a {
    display: block;
    text-decoration: none;
    color: blue;
    text-align: center;
    padding: 10px;


}

.navbar-container ul li a:hover {
    background-color: none;
    color: white;
    text-decoration: underline;
}

/*** About Section ***
  
  Purpose:
  - Add style rules for your website's About section

  When To Modify:
  - [ ] Project 3 (OPTIONAL)
  - [ ] Project 4 (STRETCH FEATURE) 
  - [ ] Any time after
***/


/*** Schedule Section ***
  
  Purpose:
  - Add style rules for your website's Schedule section

  When To Modify:
  - [ ] Project 3 (OPTIONAL)
  - [ ] Project 4 (STRETCH FEATURE) 
  - [ ] Any time after
***/


/*** Links Section ***
  
  Purpose:
  - Add style rules for your website's Links section

  When To Modify:
  - [ ] Project 3 (OPTIONAL)
  - [ ] Project 4 (STRETCH FEATURE) 
  - [ ] Any time after
***/


/*** RSVP Section ***
  
  Purpose:
  - Add style rules for your website's RSVP form

  When To Modify:
  - [ ] Project 6 (REQUIRED FEATURE)
  - [ ] Project 7 (REQUIRED FEATURE)
  - [ ] Any time after
***/

.rsvp-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    padding-bottom: 50px;
}

.rsvp-para {
    width: 55%;
    padding-right: 10px;
}

.rsvp-participants {
    width: 45%;
    padding-right: 10px;
}

/* Add other rsvp-related selectors here */
.error {
    border-style: solid;
    border-width: 2px;
    
    /* Set border-color and background */
    border: 2px solid red;
    background-color: pink;
    border-radius: 5px;
}


/*** Animations [PLACEHOLDER] [ADDED IN UNIT 8] ***/
/*** Success Modal  ***
  
  Purpose:
  - Add style rules to your website's pop-up modal, which appears
    when a user successfully submits the RSVP form

  When To Modify:
  - [ ] Project 9 (REQUIRED FEATURE)
  - [ ] Any time after
***/

.modal {
  display: none;   /* modal should be hidden by default*/
  position: fixed; /* modal cannot move around the screen */
  z-index: 2;      /* modal appears above other elements */ 
  
  /* TODO: Make the modal fill the entire screen */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* Add a semi-transparent background to shadow non-modal elements*/
  background-color: rgba(0,0,0,0.4); /* 40% opacity black */

  /* Flexbox settings for modal */
  /* These won't apply until we update "display:" from "hidden" to "flex" in our JS */
  flex-direction: column; 
  align-items: center;
  justify-content: center;
}

.modal-container {
    /* Change modal size and spacing here */
    padding: 50px;
    width: 55%;

    /* Customize modal style here */
    background-color: lightsteelblue;
    color: black;
    text-align: center;
    font-size: 1rem;
    font-family: monospace;

    /* Optional: Use flexbox to customize .modal-item layout */
    display: flex;

}

.modal-item {
    /* Optional: Style individual elements within the modal */
}
/* Default dark mode style */

#theme-button {
    text-decoration: none;
    font-weight: bold;
}

.dark-mode {
    border-color: white;
    background-color: #6EADE5;
    color: white;
    
}

/* Example: Different dark mode style for h1 */
.dark-mode h1 {
    
}

.dark-mode .footer-container {
    background-color: #55CBFB;
}
.dark-mode .header-container {
    background-color: #55CBFB;
}
.dark-mode .a *{
    background-color: #55CBFB;
    color: white;
}


/* Example: Different dark mode style for visited links */
.dark-mode a:visited * {
    
}



/*** Custom Colors (OPTIONAL) ***
  
  Purpose:
  - Use CSS variables to define custom colors for your website
  - To get you started, we've provided the color scheme used in our example site.
  - To reference a color variable in your css, use var(--variable-name) in place of a color value

  When To Modify:
  - [ ] Any time (OPTIONAL)
***/

:root {
    /* Light Mode */
    --bg-color: #e5a66e;
    --text-color: #231942;

    /* Dark Mode */
    --bg-color-dark-mode: #6EADE5;
    --text-color-dark-mode: #fff;

    /* Accent Colors */
    --accent-color-light: #d2cff5;
    --accent-color-medium: #684fb5;
    --accent-color-dark: #482f95;
    --accent-color-darkest: #231942;
    --accent-color-green: #28eb76;

    /* Error Colors */
    --error-color: #f8bbd0;
    --error-color-border: #e63946;
}