@import url('https://fonts.googleapis.com/css2?family=Nunito&family=Roboto&family=Titillium+Web&display=swap');

:root {
  --dark: #0E0B16;
  --light: #e7dfdd;
  --mid: #4717f6;
  --mid-2: #a239ca;
  --darkgrey: rgb(67, 67, 67);
  --white: white;
}


* {
    box-sizing: border-box;
    margin: 0;
}

body {
  font-family: 'Titillium', sans-serif;
  background-color: var(--light);
}

/*header to have width of the screen and flex property*/

header{
  background-color: var(--dark);
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 40px;
}

header img {
  width: 400px;/*width to be 400px*/
  margin-bottom: 10px;
}

#socials {
  display: flex;
}

#socials img {
  width: 50px;
  margin: 10px;
  
}

#logo-style {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slogan {
  color: var(--white);
  font-size: 20px;
}

.searchContainer {
  display: flex;
}
 
/*input field*/
.searchContainer input{
  font-size: 15px;
  padding:6px;
  border-radius: 10px;
  border-color: var(--dark);
}

/*search button */
.searchContainer button{
  padding:6px;
  font-size: 20px;
  cursor: pointer;
  background-color: var(--mid-2);
  border-color: var(--dark);
  border-radius: 10px;

}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: var(--light);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

header div span p {
  color: --dark;
}

main{
  display: flex;
  flex-wrap: wrap;
}

.container {
  margin: 10px;
}

/*Event header*/
.container h2 {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 50px;
  color: var(--dark);
  padding: 20px;
}

/*Container for image*/
.ImageContainer {
  position: relative;
  text-align: center;
  color: #ffffff;
  font-size: 80px;
}

#map {
  height: 400px;
  /* The height is 400 pixels */
  width: 100%;
  /* The width is the width of the web page */
  margin-left:20px;
  margin-right:20px
}
/*Events and location history container*/
.containerEvents {
  
  margin-left: 20px ;
  margin-right: 20px;
  display: flex;
  justify-content:space-between;/* evenly distributes space between elements*/
}

.eventTitle {
  background-color: var(--mid-2);
  display: flex;
  flex-direction: column;
  margin: 10px;
  border-radius: 10px;
  padding: 10px;
}



.asideRecent {
  flex: 1;/*flex grow of 1*/
  background-color: var(--darkgrey);
  padding: 30px;
  text-align: center;
  height: auto;/*height fits the conatiner*/
  margin: 10px;
  border-radius: 10px;
  color: var(--white)
}

.asideRecent h3 {
  font-size: 30px;
}

#recent-locations {
  margin-top: 30px;
}

#recent-locations div {
  padding: 10px;
  cursor: pointer;
}


.Events {
  flex: 4;/*flex grow of 4*/
  display: flex;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
}


footer {
  padding: 20px;
  text-align: center;
  background-color: var(--dark);
  color: #fff;
}


.aboutus {
  /* background-color: var(--mid-2); */
  display: flex;
  justify-content: space-evenly;/*spaces elements evenly in container*/
  align-items: center;
  margin: 20px;
  color: var(--dark);
  font-size: 20px;
  text-align: center;
  border-color: var(--mid);
  border-style: solid;
  border-width: 10px;
  border-radius: 10px;
}

.aboutus aside {
  background-color: var(--mid);
  padding: 40px;
  max-height: 100%;
  color: var(--light);
  font-size: 30px;
}

.aboutus div p {
  padding: 20px;
}


.event-info{
  background-color: var(--light);
  border-style: solid;
  border-color: var(--dark);
  border-width: 3px;
  border-radius: 10px;
  padding:10px;
  margin:8px;
  font-size:17px;
  font-family:'Lucida Sans Unicode', 'Lucida Sans', Arial, sans-serif;
  flex:0 0 300px;
}

/*Make the event images uniform*/
.event-image img{
  margin: auto;
  margin-bottom: 20px;
  width:250px;
  height:200px;
  object-fit: cover;/*images to fit the given dimension keeping aspect ratio*/
  overflow: hidden;
  
}

.event-name {
  margin-bottom: 5px;
}

.event-venue {
  margin-bottom: 5px;
}

.event-date {
  margin-bottom: 5px;
}

.event-time {
  margin-bottom: 5px;
}

.event-postcode {
  margin-bottom: 5px;
}

.contact{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.contact a {
  color: var(--light);
  cursor: pointer;
}

/*Heading of the footer*/
footer h3 {
  margin: 15px;
  padding-bottom: 20px;
  font-size: 30px;
  color: var(--light);
}

#company-name {
  width: 300px;
  height: 100%;
}

#address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;/*align items in container to end */
  color: var(--light);
}

/*When the screen width is 768px or smaller*/
@media screen and (max-width: 768px) {
  .centered{
    width:100px;
    font-size: 50%;
  }

  header{
    background-color: var(--dark);
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;/*palces items in reverse column order*/
    justify-content: space-between;/*distributes space between the elements*/
    align-items: center;
    font-size: 40px;;
  }
  header img {
    width: 275px;
  }
  .searchContainer {
    display: flex;
    margin-top: 20px;
  }
  #socials img {
    width: 30px;
    margin: 10px;
    margin-bottom: 40px;
  }
  .aboutus {
    /* background-color: var(--mid-2); */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 20px;
    color: var(--dark);
    font-size: 20px;
    text-align: center;
    border-color: var(--mid);
    border-style: solid;
    border-width: 10px;
    border-radius: 10px;
  }
  .containerEvents {
    margin-left: 20px ;
    margin-right: 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content:space-between;
  }
  .asideRecent {
  background-color: #b9c6ae;
  padding: 80px;
  text-align: center;
  height: auto;
  }
  .event-image img{
    margin: auto;
    width:250px;
    height:200px;
    object-fit: cover;
    overflow: hidden;
    
  }
}
    

/*When the screen width is 576px or smaller */

@media (max-width: 576px) {
  .centered{
    width:100px;
    font-size: 50%;
  }
  header{
    background-color: var(--dark);
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    font-size: 40px;;
  }
  header img {
    width: 275px;
  }
  .searchContainer {
    display: flex;
    margin-top: 20px;
  }
  #socials img {
    width: 30px;
    margin: 10px;
    margin-bottom: 40px;
  }
  .aboutus {
    /* background-color: var(--mid-2); */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 20px;
    color: var(--dark);
    font-size: 20px;
    text-align: center;
    border-color: var(--mid);
    border-style: solid;
    border-width: 10px;
    border-radius: 10px;
  }

  .aboutus aside {
    background-color: #4717f6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 40px;
    max-height: 100%;
    color: var(--light);
    font-size: 30px;
  }

  .containerEvents {
    margin-left: 20px ;
    margin-right: 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content:space-between;
  }

  .asideRecent {
  background-color:var(--darkgrey);
  padding: 80px;
  text-align: center;
  height: auto;
  }
  
  .event-image img{
    margin: auto;
    width:250px;
    height:200px;
    object-fit: cover;
    overflow: hidden;
    
  }


  .contact{
    display:flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding-top: 20px;
  }

  .contact a {
    color: var(--light);
    cursor: pointer;
  }

  footer h3 {
    margin: 15px;
    padding-bottom: 20px;
    font-size: 30px;
    color: var(--light);
  }

  #company-name {
    width: 300px;
    height: 100%;
  }

  #address {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--light);
  }

  .contact a {
    margin: 20px;
  }
  .contact img {
    margin: 20px;
  }
  .contact div {
    margin: 20px;
  }

#address {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light);
}
}
    