/* Base styles for The Houston Corporation website */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: #ccc;
  background: url('../img/logo.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

header, footer {
  background: #111;
  text-align: center;
  padding: 20px;
  
}

header h1, footer p {
  color: #ccc;
}

nav {
  background: #1a1a1a;
  text-align: center;
  padding: 10px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

nav a:hover {
  color: #fff;
}

.hero {
  background: linear-gradient(to bottom, #333, #000);
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  color: silver;
  font-size: 36px;
  text-align: center;
}

.carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px;
  gap: 20px;
}

.card {
  width: 250px;
  height: 300px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

.card-front {
  background: #1a1a1a;
  color: silver;
}

.card-front .logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0.5px;
  box-sizing: border-box;
}

.card-back {
  background: #222;
  color: #ccc;
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 10px;
}

.card-back a {
  margin-top: 10px;
  padding: 8px 15px;
  background: silver;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

section {
  padding: 40px;
  max-width: 1000px;
  margin: auto;
}

h3 {
  color: silver;
  margin-bottom: 10px;
}

footer p, footer a {
  color: #888;
  font-size: 14px;
  margin: 0 10px;
}

footer a {
  text-decoration: none;
}