/* =========================================
   METADATA
   File: style.css
   Description: stils FotoWebsait
   Author: MartinsGotsons
========================================= */

/* Global styles */
body {
  margin: 0;
  background-color: white;
  font-family: Arial, sans-serif;
}

/* Headings */
h1 {
  text-align: center;
  font-family: Impact, sans-serif;
  letter-spacing: 1px;
  font-size: 100px;
  margin-top: 100px;
}

p {
  text-align: center;
  font-family: Impact, sans-serif;
  font-size: 20px;
}

/* Center helper */
.center {
  text-align: center;
}

/* ================= GALLERY ================= */

.gallery {
  padding-top: 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card p {
  margin-top: 10px;
  word-wrap: break-word;
}

/* ================= UPLOAD ================= */

.upload {
  text-align: center;
  margin-top: 150px;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

textarea {
  width: 300px;
  height: 150px;
  margin: 10px auto;
  display: block;
  font-family: Impact, sans-serif;
}

/* ================= BUTTONS ================= */

.btn {
  position: absolute;
  color: white;
  padding: 15px 32px;
  font-family: Impact, sans-serif;
  cursor: pointer;
  transition: 0.3s;
}

.top-left {
  top: 20px;
  left: 20px;
  background-color: red;
}

.top-right {
  top: 20px;
  right: 20px;
  background-color: green;
}

.publish {
  position: static;
  margin-top: 10px;
  background-color: blue;
}

/* Hover */
.btn:hover {
  box-shadow: 0 12px 16px rgba(0,0,0,0.24);
}

/* Click effect */
.btn:active {
  transform: scale(0.95);
}

/* ================= DOMA ================= */

.thought-form {
  margin-top: 15px;
  text-align: center;
}

.thought-form textarea {
  width: 220px;
  height: 80px;
  margin: 10px auto;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #ccc;
}

.thought-form textarea:focus {
  border-color: blue;
  outline: none;
}