/* 
// ╔╗ ╔═╗╔╗╔╔╦╗╔═╗
// ╠╩╗║╣ ║║║ ║ ║ ║
// ╚═╝╚═╝╝╚╝ ╩ ╚═╝ 
*/

/* V A R I A B L E S */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap'); /* Font Import */

:root {
  /* Font Size */
  --fg-primary: 12vh; /* Time and Greetings */
  --fg-secondary: 3vh; /* Profile and Extras widget */
  --fg-date: 3vh; /* Date */
  --fg-list: 2vh; /* Links List */
  --icon: 3vh; /* Icon Size */

  /* Fonts Color */
  --fg: #3a3a3a; /* Foreground color */
  --sfg: #494949; /* Sceondary Foreground color */

  /* Light Colors  */
  --accent: #57a0d9; /* Hover color */
  --background: #f5f5f5; /* Background color */
  --cards: #e4e6e6; /* Cards color */

  /* Image background  */
  --imgbg: url(assets/background.jpg); /* Image URL */
  --imgcol: linear-gradient(
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.7)

  ); /* Filter color */
}

.darktheme {
  /* Dark Colors  */
  --accent: #57a0d9; /* Hover color */
  --background: #19171a; /* Background color */
  --cards: #201e21; /* Cards color */

  /* Fonts Color */
  --fg: #d8dee9; /* Foreground color */
  --sfg: #2c292e; /* Secondary Foreground color */

  /* Image background  */
  --imgcol: linear-gradient(
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.85)
  ); /* Filter color */
}

/* S T Y L E S */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  transition: 0.2s ease-in-out;
}

body {
  background-color: var(--background);
}

main {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notransition {
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  transition: none;
}

.withImageBackground {
  background-image: var(--imgcol), var(--imgbg);
  background-size: cover;
}

#themeButton {
  position: absolute;
  margin: 2em 2em 0 0;
  right: 0;
  top: 0;
  color: var(--fg);
  border: none;
  cursor: pointer;
  background-color: #00000000;
}

#themeIcon {
  width: 25px;
  height: 25px;
}

.container {
  width: 145vh;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 30px;
  padding: 20px;
}

.topBlock {
  -webkit-text-fill-color: var(--fg);
}

.profile {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.profileName {
  font-size: 3.5vw;
  font-weight: bold;
}

.profileTitle {
  font-size: 1vw;
  text-align: center
}

.card {
  background-color: var(--cards);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  padding: 1em;
}

.card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35);
}

.profileBlock {
  grid-row: 1 / span 1;
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profileExtrasBlock {
  grid-column: 3 / span 2;
  grid-row: 1 / span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeBlock {
  height: 100%;
}

.date {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.weather {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock {
  display: flex;
  align-items: center;
  justify-content: center;
}

#hour,
#separator,
#minutes {
  font-size: var(--fg-primary);
  font-weight: bolder;
}

#year,
#month,
#day,
#weekday {
  font-size: var(--fg-date);
  font-weight: bold;
}

#weekday,
#day,
#month {
  margin-right: 0.5rem;
}

#greetings {
  font-size: var(--fg-secondary);
}

.weatherIcon img {
  width: 70px;
  height: 70px;
}

.weatherValue p {
  font-size: var(--fg-secondary);
  font-weight: bolder;
  margin-left: 15px;
  color: var(--fg);
}

.weatherDescription p {
  font-size: var(--fg-secondary);
  margin-left: 15px;
  color: var(--fg);
}

.reduceGap {
  grid-gap: 2rem !important;
}

.removeGap {
  grid-gap: 0 !important;
}

.linksBlock {
  grid-row: 2 / span 2;
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 1.5rem;
}

.linksBlockLeft {
  grid-row: 1 / span 2;
  grid-column: 1 / span 2;
}

.linksBlockRight {
  grid-row: 1 / span 2;
  grid-column: 3 / span 2;
}

.buttonsContainer {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 30px;
  padding: 20px;
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.button p {
  color: var(--fg);
}

.buttonIcon {
  width: var(--icon);
  height: var(--icon);
  color: var(--fg);
}

.button__1 {
  grid-row: 1;
  grid-column: 1;
}
.button__2 {
  grid-row: 1;
  grid-column: 2;
}
.button__3 {
  grid-row: 1;
  grid-column: 3;
}
.button__4 {
  grid-row: 2;
  grid-column: 1;
}
.button__5 {
  grid-row: 2;
  grid-column: 2;
}
.button__6 {
  grid-row: 2;
  grid-column: 3;
}

.button:hover {
  background-color: var(--accent);
}
.button:hover svg {
  stroke: var(--sfg);
}

.listsContainer {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 3rem;
  padding: 0.4rem;
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.list__1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.list__2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.listIcon {
  /* margin-top: 3vh; */
  margin-bottom: 2vh;
  color: var(--fg);
  width: var(--icon);
  height: var(--icon);
}
.listItem {
  text-decoration: none;
  font-size: var(--fg-list);
  color: var(--fg);
  margin-top: 1vh;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  width: 80%;
}
.listItem:hover {
  background-color: var(--accent);
  color: var(--sfg);
}

/* M E D I A - Q U E R I E S */

@media only screen and (max-width: 68.75em) {
  .container {
    grid-gap: 20px;
    padding: 10px;
  }

  .profileBlock {
    grid-row: 1 / span 1;
    grid-column: 1 / span 4;
  }

  .profileExtrasBlock {
    display: none;
  }

  #greetings {
    font-size: var(--fg-secondary);
  }

  .linksBlockRight {
    grid-row: 2 / span 1;
    grid-column: 1 / span 4;
  }

  .linksBlockLeft {
    grid-row: 1 / span 1;
    grid-column: 1 / span 4;
  }

  .button {
    grid-gap: 3vh;
  }
}

@media screen and (max-width: 60em) {
  .profileTitle {
    font-size: 2.5vw;
  }

  .buttonsContainer {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 20px;
    padding: 10px;
  }

  .linksBlock {
    grid-row: 2 / span 2;
    grid-column: 1 / span 4;
    display: grid;
    grid-gap: 1.5rem;
  }

  .button__1 {
    grid-row: 1;
    grid-column: 1;
  }
  .button__2 {
    grid-row: 1;
    grid-column: 2;
  }
  .button__3 {
    grid-row: 2;
    grid-column: 1;
  }
  .button__4 {
    grid-row: 2;
    grid-column: 2;
  }
  .button__5 {
    grid-row: 3;
    grid-column: 1;
  }
  .button__6 {
    grid-row: 3;
    grid-column: 2;
  }
}

@media screen and (max-width: 40em) {
  
  .buttonsContainer {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-gap: 20px;
    padding: 10px;
  }

  .button {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    width: 100%;
    text-decoration: none;
    text-align: left;
    grid-gap: 2vw;
    padding-left: 50px;
    padding-right: 50px;
  }

  .linksBlock {
    font-size: 4vw;
  }

  .linksBlockLeft {
    grid-row: 1 / span 1;
  }

  .button__1 {
    grid-row: 1;
    grid-column: 1;
  }
  .button__2 {
    grid-row: 2;
    grid-column: 1;
  }
  .button__3 {
    grid-row: 3;
    grid-column: 1;
  }
  .button__4 {
    grid-row: 4;
    grid-column: 1;
  }
  .button__5 {
    grid-row: 5;
    grid-column: 1;
  }
  .button__6 {
    grid-row: 6;
    grid-column: 1;
  }
}
