@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primaryColor: #FFFFFF;
  --secondaryColor: #A9B4C4;
  --accentColor: #C83803;
  --accentColor2: #4af2ff;
  --backgroundPrimaryColor: #2a2a2a;
  --backgroundSecondaryColor: #2a2a2a;
  --textPrimaryColor: #FFFFFF;
  --textSecondaryColor: #CCD2DA;
  --textDarkColor: #00435b;
  --heading1-size: 3rem;
  --heading2-size: 2rem;
  --heading3-size: 1.5rem;
  --heading-weight: 700;
  --text-large-size: 1.25rem;
  --text-regular-size: 1rem;
  --text-regular-weight: 400;
  --text-bold-weight: 600;
  --errorColor: #FF4E4E;
  --warningColor: #FFC857;
  --successColor: #4CC27B;
  --background-overlay: rgba(0, 0, 0, 0.6);
}

/* CSS RESET */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* CSS */

body {
  font-family: "Roboto", sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--textPrimaryColor);
  font-size: var(--text-large-size);
  font-weight: var(--text-regular-weight);
  line-height: 1.25;
}

header {
  display: flex;
  justify-content: space-evenly;
  gap: 16px;
  padding: 16px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

a {
  text-decoration: none;
}

header a, nav a {
  text-decoration: none;
  color: var(--accentColor2);
  padding-bottom: 8px;
}

a:hover {
  opacity: .8;
}

.active {
  border-bottom: 2px solid var(--accentColor2);
}

main {
  min-height: 75vh;
  margin: 32px 0;
}

section {
  max-width: 50%;
}

input {
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: var(--text-regular-size);
}

.mainContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
}

.heading1w {
  font-size: var(--heading1-size);
  font-weight: var(--heading-weight);
  color: var(--accentColor2);
  text-align: center;
}

.heading2w {
  font-size: var(--heading2-size);
  font-weight: var(--heading-weight);
  color: var(--accentColor2);
  text-align: center;
}

.heading3w {
  font-size: var(--heading3-size);
  font-weight: var(--heading-weight);
  color: var(--accentColor2);
  text-align: center;
}

.secondaryText {
  color: var(--textSecondaryColor);
  font-size: var(--text-regular-size);
}

.containerColumn, .passwordSectionDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: auto;
}

.clockSection, .passwordSectionDiv, .weatherSection, .linkContainer {
  border: 2px solid var(--accentColor2);
  border-radius: 10px;
  padding: 24px;
  background-color: var(--background-overlay);
}

.formContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.primaryBtn {
  border: none;
  background-color: var(--accentColor2);
  border-radius: 4px;
  padding: 8px 16px;
  color: var(--textDarkColor);
  font-size: var(--text-large-size);
  width: fit-content;
}

.primaryBtn:hover {
  cursor: pointer;
  opacity: .8;
}

footer {
  font-size: var(--text-regular-size);
  font-weight: var(--text-regular-weight);
  color: var(--textSecondaryColor);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  margin-bottom: 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer a {
  text-decoration: none;
  color: var(--textSecondaryColor);
}



.secondaryFooter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;

}

/* CSS HOME */

.mainHome {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.containerHome {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px;
  max-width: 100%;
}

.clockHome .dateDiv {
  font-size: var(--heading2-size);
}

.weatherContainerHome {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.forecastWeatherHome .cardForecast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.passwordHome label {
  font-size: var(--text-large-size);
}

.passwordHome {
  max-width: 100%;
  overflow-x: hidden;
}

.linksHome {
  max-width: 100%;
  overflow-x: hidden;
}

/* CSS CLOCK */

.clockSection {
  background-color: var(--background-overlay);
  max-width: 50%;
}

.clockDiv, .dateDiv {
  font-size: var(--heading1-size);
}

.clockMessage {
  font-size: var(--heading3-size);
  color: var(--textSecondaryColor);
  line-height: 1.5;
  text-align: center;
}

/* CSS WEATHER */

.weatherContainer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
}

.iconWeather {
  width: 64px;
  height: 64px;
}

.currentWeather {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.locationTemperature {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
}

.temperature {
  font-size: var(--heading1-size);
}

.weatherCondition {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

.weatherCondition img {
  width: 80px;
  height: 80px;
}

.weatherCondition p {
  font-size: var(--text-large-size);
}

.weatherOtherInfo {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--text-regular-size);
  text-align: right;
}

.forecastWeather {
  display: flex;
  column-gap: 24px;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding: 12px;
}

.cardForecast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* CSS PASSWORDS */

.passwordLabel {
  font-size: var(--heading3-size);
}

.inputDiv {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.passwordResult {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 24px;
  margin-top: 16px;
  background-color: var(--background-overlay);
  font-size: var(--heading3-size);
  color: var(--textPrimaryColor);
  overflow-x: hidden;
}

.passwordResultSuccess {
  border: 1px solid var(--successColor);
  animation: passwordResultAnimation 1s ease;
}

.passwordResultError {
  border: 1px solid var(--errorColor);
}

.passwordSuccess {
  font-size: var(--heading2-size);
  color: var(--successColor);
  letter-spacing: 2px;
  line-height: 1.50;
  text-align: center;
}

.passwordErrorMessage {
  font-size: var(--heading3-size);
  color: var(--textSecondaryColor);
}

/* CSS LINKS */

.linkContainer {
  text-align: center;
}

.linksContainer {
  padding-top: 24px;
  width: 100%;
}

.linksContainer form, .linksContainer button {
  width: 100%;
}

.linksContainer input {
  height: 1.5rem;
  width: 100%;
}

.listLinksContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 24px;
  column-gap: 32px;
  margin-top: 64px;
  padding: 16px;
}

.cardLink {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primaryColor);
  border-radius: 12px;
  padding: 16px;
  width: fit-content;
  position: relative;
  background-color: var(--backgroundPrimaryColor);
  transition: transform .3s;
}

.cardLink a {
  color: var(--textPrimaryColor);
}

.cardLink:hover {
  transform: scale(1.10);
}

.deleteBtn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--errorColor);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--text-regular-size);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
}

.deleteBtn:hover {
  transform: scale(1.10);
}

/* ANIMATIONS */

@keyframes passwordResultAnimation {
  0% {
    opacity: 0;
    transform: translateY(0px);
  }
  25% {
    opacity: .25;
    transform: translateY(1px);
  }
  50% {
    opacity: .50;
    transform: translateY(2px);
  }
  75% {
    opacity: .75;
    transform: translateY(1px);
  }
  75% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (width < 640px) {
  .clockDiv, .dateDiv {
      font-size: var(--heading2-size);
    }
  .clockMessage {
    font-size: var(--text-large-size);
  }
}

@media (width < 380px) {

  .clockDiv,
  .dateDiv {
    font-size: var(--heading3-size);
  }
  .clockMessage {
    font-size: var(--text-regular-size);
  }
}