/*** You will not need this file until Unit 3 ***/
/*** 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.
***/
.header-item {
background: linear-gradient(135deg, #E6D8A8, #DCC87F, #C9B458) !important;
border: 3px solid black !important;
border-radius: 8px !important;
padding: 10px !important;
flex: 0 1 300px !important;
min-width: 300px !important;
max-width: 350px !important;
}

html {
    background-color: var(--bg-color);
    scroll-padding-top: 50px; /* Adjust to match height of your navbar */
}

/*** 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 */
      padding: 50px; 
      margin: 0px;
}

/*** 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
***/
.main-header h1{
  width: 100%;   
  background-color:#BB2528;
  padding: 10px; 
  border: 3px solid black;               
  border-radius: 5px ;
  color: white; 
  text-align: left;
}

h1 {
    
}

h2 {

}

h3 {
  
}


h4 {
    
}

h5 {
  color: #BB2528;
}

p {
  font-family: 'Tahoma', sans-serif;  /* consistent with body font */
  font-size: 16px;                     /* readable text size */
  line-height: 1.6;                    /* space between lines for readability */
  margin: 10px 0;                       /* vertical spacing above and below */
}

a:link{
  color:rgb(59, 59, 255);
}
a:visited{
  color: rgb(163, 82, 163);
}
a:hover{
  color:red;
}
a:active{ 
  color: #FFD700;
}
a.button{ 
    background: linear-gradient(135deg, #E6D8A8, #DCC87F, #C9B458); /* muted/dull gold */
    color: #BB2528;
    font-weight: bold;
    font-size: 13px;   
    border: none;               
    text-shadow: 1px 1px 2px #FFD700;
    padding: 5px 15px;      /* more horizontal padding for pill shape */
    border-radius: 25px;
    border: none;
    cursor: pointer;   /* makes the cursor change when over button */
    text-decoration: none;  /*  removes underline */
    display: inline-block;  /*  makes padding work */

}
a.button:hover{
    background: #BB2528;
    color: #E6D8A8; 
    text-shadow: none;

}

.tight {
    margin: 0;          /* removes all space between lines */
    line-height: 1.4;     /* keeps lines close together */
}          

.space-above{
    margin-top: 10px; /* adds 20px space above  */
}

button:hover {
    /* Make the button look different when the user hovers over it */

  }


/*** 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 { 
    display:flex;
    flex-direction:row;
    flex-wrap: wrap;  
    text-align: left;
    margin-top: -10px;
    gap: 20px; 
    color: black;
}

.header-item {
  background: linear-gradient(135deg, #E6D8A8, #DCC87F, #C9B458);
  border: 3px solid black;
  border-radius: 8px;
  padding: 10px;
  flex: 0 1 300px;
  min-width: 300px;
  max-width: 350px;
}

.flex-button {
    background: #BB2528; 
    color: white;
    font-weight: bold;
    font-size: 13px;   /* big text */
    text-shadow: 1px 1px 2px black;
    padding: 5px 15px;       /* more horizontal padding for pill shape */
    border-radius: 25px;
    border: none;
    cursor: pointer;            /* makes the cursor change when over button */
}
.flex-button:hover {
    background: rgb(247, 207, 213);
    border: 1px solid black;
    border-radius: 25px;
    color: black;
    text-shadow: none;
}

.logout-button {
    float: right;
    
}
/* Add style to button */
#dark-theme-button {
  margin-top: 7px;
  background-color: #BB2528;
  color: white;
  border: 2px solid black; 
  border-radius: 5px ;
  padding: 3px;       
}

#dark-theme-button:hover {
    background: linear-gradient(135deg, #E6D8A8, #DCC87F, #C9B458);
    color: #BB2528;
    border: 2px solid black;
}

body {

}

.car {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

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

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

.footer { /* Example B: This styles elements with class="footer" */
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 15px;
}


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

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

.navbar 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%;
    font-size: 14px;
    margin: 0px;
    background-color: white;
    height: 35px;
}
    
.navbar ul li {
    float: left;
    margin: 10px;
}
.navbar ul li a {
  display: block;
  text-decoration:underline;
  color: black;
}

.navbar ul li a:hover {
  background: linear-gradient(135deg, #E6D8A8, #DCC87F, #C9B458); /* muted/dull gold */
  color: #BB2528;
  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 [PLACEHOLDER] [ADDED IN UNIT 6] ***/
/*** Animations [PLACEHOLDER] [ADDED IN UNIT 8] ***/
/*** Success Modal [PLACEHOLDER] [ADDED IN UNIT 9] ***/

/* Default dark mode style */
.dark-mode {
  background-color: var(--bg-color-dark-mode);
  color: var(--text-color-dark-mode);
}

/* Example: Different dark mode style for h1 */
.dark-mode .header-item,
.dark-mode .main-header h1 {
  border: 3px solid white !important;
}

/* Example: Different dark mode style for visited links */  

.dark-mode a:hover * {
  color: pink;
  text-decoration: underline;    
}

/*** 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: rgb(247, 207, 213);
    --text-color: black;

    /* Dark Mode */
    --bg-color-dark-mode: black;
    --text-color-dark-mode:rgb(247, 207, 213);

    /* 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;
}
