
/*=============== Variables ===============*/
:root {

    /*========== Colors ==========*/
--main-color: #006ba6;

    --button-color: #00a5cf;
    --item-color: #005ab9;
    --item2-color: #ff78aa;
    --item3-color: #fc853f;

    --link-color: #42a4ff;
    --link-visited: #7d8597;
    --link-active: #cd8a0d;
    --link-hover: #ffbc42;

    --background: #f7f7f7;
    --container-bg: #fff;
    --soft-border: #cccccc;

    --section-color: #a9d6e5;

    --text-inverse: #fffefe;
    --text-regular: #000;
    --text-light: #fffefe;

/*========== Font and typography ==========*/
--font-h1: 2rem;
--font-h2: 1.75rem;
--font-h3: 1.55rem;
--font-h4: 1.3rem;
--font-reg: 1rem;
--font-small: .9rem;
--font-xsmall: 0.75rem;
--font-bold: 600;

  /*========== z index ==========*/
--z-tooltip: 10;
--z-fixed: 100;
}

/*========== Dark Mode ==========*/
.lightmode {
    --main-color: #006ba6;

    --button-color: #00a5cf;
    --item-color: #005ab9;
    --item2-color: #ff78aa;
    --item3-color: #fc853f;

    --link-color: #42a4ff;
    --link-visited: #7d8597;
    --link-active: #cd8a0d;
    --link-hover: #ffbc42;

    --background: #f7f7f7;
    --container-bg: #fff;
    --soft-border: #cccccc;

    --section-color: #a9d6e5;

    --text-inverse: #fffefe;
    --text-regular: #000;
    --text-light: #fffefe;

    transition: .2s ease;
}

.darkmode {
    --main-color: #012151;

    --button-color: #19768e;
    --item-color: #005ab9;
    --item2-color: #ff78aa;
    --item3-color: #fc853f;

    --link-color: #81c6f8;
    --link-visited: #e10000;
    --link-active: #000;
    --link-hover: #f7f252;

    --background: #1f1f1f;
    --container-bg: #000000;
    --soft-border: #686868;

    --section-color: #31444e;
    
    --text-inverse: #000;
    --text-regular: #fffefe;
    --text-light: #fffefe;

    transition: .1s ease;
        }


/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


body{
    background-color: var(--background);
    font-family: 'Poppins', sans-serif;
    color: var(--text-regular);
    /* Added for Darkmode Toggle tutorial */
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: 0.2s ease;
    cursor: pointer;
}

a:hover {
    color: var(--link-hover);
}

a:active {
    color: var(--link-active);
}

img {
    width: 175px;
    height: auto;
    border-radius: 6px;
}

ul {
    list-style-type: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
    padding-top: 90px;
    padding-bottom: 100px;
    margin-top: -25px;
}

.section_title {
    text-align: center;
    margin: auto;
    font-size: var(--font-h1);
    padding: 0.5rem;
    max-width: 500px;
    margin-top: 25px;
    border-bottom: 4px solid var(--main-color);
}

.sub_title {
    text-align: center;
    margin: auto;
    font-size: var(--font-h3);
    padding: 0.5rem;
    margin-top: 25px;
}

.sub_title span {
    margin: auto 2rem;
}

.button {
  background-color: var(--button-color);
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  padding: 8px 32px;
  text-align: center;
  text-decoration: none;
  font-size: var(--font-reg);
  max-width: 250px;
  cursor: pointer;
  box-shadow: 0px 3px 5px #414141;
  margin: 2rem auto;
}


.button a {
    color: var(--text-light);
    margin: auto;
    text-align: center;
}

.btn-small {
  background-color: var(--button-color);
  border: none;
  border-radius: 10px;
  color: var(--text-inverse);
  padding: 3px 5px;
  text-align: center;
  text-decoration: none;
  font-size: var(--font-small);
  width: 150px;
  cursor: pointer;
  box-shadow: 0px 3px 5px #414141;
  margin: auto;
}

.button:active,
.btn-small:active {
    background-color: var(--link-active);
}

.button:hover,
.btn-small:hover {
    transition: 0.3s ease;
    background-color: var(--link-hover);
    color: var(--text-regular);
}

.button a:hover {
    color: var(--text-regular);
    transition: 0.3s ease;
}

.section_text {
    margin: 2rem auto;
    width: 50%;
    font-size: var(--font-reg);
}


/*=============== HEADER ===============*/
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    background-color: var(--main-color);
    width: 100%;
    height: 13vh;
    transition: box-shadow .4s, background-color .4s;
}

.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.368);
}
/*==== Nav Main Menu ====*/
.navbar {
    color: var(--text-light);
    padding: 15px 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav_logo h1 {
    font-size: var(--font-h3);
    text-align: center;
    font-weight: 500;
}

.navbar .nav_logo .logo_responsive {
    display: none;
}

.navbar ul {
    list-style-type: none;
    gap: 70px;
    display: flex;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    font-size: var(--font-h3);
    color: var(--text-light);
    transition: 0.2s ease;
}

.navbar ul li a:hover,
.navbar ul li:hover {
    color: var(--link-hover);
}

/*==== Nav Actions ====*/

.nav_actions {
    display: flex;
    transition: 0.3s ease;
    justify-content: center;
    cursor: pointer;
}

.nav_actions .actions {
    display: block;
}

.nav_actions ul li a {
    font-size: var(--font-small);
}

.navbar .nav_actions .action {
    background-color: var(--button-color);
    padding: 2px 5px;
    margin: 6px auto;
    border-radius: 5px;
}

/*=============== HOME ===============*/

/*==== News Swiper ====*/
.news {
    background-color: var(--container-bg);
}

.swiper {
  width: 1100px;
  height: 500px;
  border-radius: 20px;
}

.swiper-wrapper {
    width: 1100px;
}


.swiper-slide {
    display: flex;
    gap: 30px;
    background-color: var(--section-color);
    padding: 2rem;
    height: 500px;
    border-radius: 20px;
    width: 1100px;
}

.news_img {
    width: auto;
    height: 300px;
    margin: auto;
    margin-right: 0;
}

.news_info {
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-left: 0;
    gap: 20px;
}

.news_title {
    font-size: var(--font-h1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-btn {
    color: var(--button-color);
    font-size: var(--font-h1);
    margin: auto;
    padding: 2px;
    border: 1px solid var(--soft-border);
    background-color: hsla(0, 0%, 100%, 0.784);
}

.swiper-btn:hover {
    color: var(--link-hover);
    transition: 0.3s ease;
}

/*=============== CAT PROFILES ===============*/
.cats p {
    text-align: center;
}


.profiles_container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 4rem;
    margin: 7rem auto auto auto;
    max-width: 1250px;
}

.profile_box {
    width: 240px;
    height: 345px;
    background-color: var(--container-bg);
    outline: 2px solid var(--soft-border);
    display: flex;
    flex-direction: column;
    border-radius: 5px;
}

.sex-label {
    position: absolute;
    transform: translate(12.6rem, .2rem);
    font-size: 2rem;
    color: rgb(25, 77, 189);
}

.profile_box .female {
    color: rgb(229, 84, 139);
}

.adopted {
    color: var(--item2-color);
}

.foster {
    color: var(--item3-color);
}
.profile_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.cat_name {
    font-size: var(--font-h3);
    font-weight: 800;
    padding-top: 1rem;
}

.cat_nickname {
    font-size: var(--font-small);
    font-style: italic;
}

.cat_img {
    margin: 1rem auto;
    border-radius: 5px;
}

.learn-more {
    text-align: center;
    text-decoration: underline;
}

/*=============== FAQ ===============*/
.faq {
    background-color: var(--container-bg);
}

.faq .section_text {
    margin-top: 5rem;
}

.section_text details {
    margin: auto auto 1rem auto;
}

.faq_q {
    font-size: var(--font-h4);
    margin-bottom: 1rem;
    color: var(--link-color);
}

.faq_q:hover {
    color: var(--link-hover);
    cursor: pointer;
    transition: 0.3s ease;
}

.faq div p {
    font-size: var(--font-reg);
}

/*=============== RESOURCES ===============*/
.resource_list {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
}
.resource_list .resource_links {
    text-align: center;
    margin-top: 3rem;
}

.resource_list .resource_links p {
    font-size: var(--font-h4);
    font-weight: var(--font-bold);
    margin-bottom: .5rem;
}

.resource_links ul li {
    padding: 0.2rem;
    font-size: var(--text-regular);
}

/*=============== FOOTER ===============*/
.footer {
    width: 100%;
    padding: 2rem;
    background-color: var(--main-color);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 7rem;
    color: var(--text-light);
}

.footer .logo {
    font-size: var(--font-h4);
    text-align: center;
    font-weight: 500;
}

.footer_text {
    text-align: center;
    font-size: var(--font-reg);
}

.footer_text p:first-child {
    font-weight:  var(--font-bold);
    font-size: var(--font-h4);
    margin-bottom: 5px;
}

/*=============== BREAKPOINTS ===============*/

/*==== Large Devices (max sizes) 1220px ====*/
@media screen and (max-width: 1220px) {

}


/*==== Tablets (medium devices) 992px ====*/
@media screen and (max-width: 992px) {

.section_text {
    width: 80%;
}
/*==== Header & Nav ====*/
.header {
    height: 10vh;
}

.navbar ul {
    gap: 45px;
}
.navbar .nav_logo h1 {
    font-size: var(--font-small);
}


.navbar ul li a {
        font-size: var(--font-h4);
}

.nav_actions ul li a,
.nav_actions ul li span {
        font-size: var(--font-xsmall);
}

/*==== News Swiper ====*/

.swiper {
  width: 700px;
  height: 500px;
  border-radius: 20px;
}
.swiper-wrapper {
    width: 500px;
}

.news_img {
    width: 250px;
    height: auto;

}

.news_info {
    gap: 10px;
}

.news_title {
    font-size: var(--font-h3);
}

/*=============== CAT PROFILES ===============*/
.profiles_container {
    gap: 3rem 1.5rem;
    margin-top: 6rem;
}

.profile_box {
    width: 220px;
    height: 355px;
}
.sex-label {
    position: absolute;
    transform: translate(11rem, .5rem);
    font-size: 2rem;
    color: rgb(25, 77, 189);
}

/*=============== FAQ ===============*/
.faq {
    background-color: var(--container-bg);
}

.faq .section_text {
    margin-top: 3rem;
}

.section_text details {
    margin: auto auto 1rem auto;
}

.faq_q {
    font-size: var(--font-h4);
    margin-bottom: 1rem;
    color: var(--link-color);
}


.faq div p {
    font-size: var(--font-reg);
}

/*=============== FOOTER ===============*/

.footer_text {
    text-align: center;
    font-size: var(--font-small);
}

.footer_text p:first-child {
    font-weight:  var(--font-bold);
    font-size: var(--font-reg);
    margin-bottom: 5px;
}

}

/*==== Smartphones (small devices) 428px====*/
@media  (max-width: 429px) {

a {
    text-decoration: underline;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    height: 12vh;
}

.button {
  border-radius: 5px;
  padding: 5px 10px;
  font-size: var(--font-small);
  width: 180px;
  margin: 1rem auto;
}

.btn-small {
  border-radius: 10px;
  padding: 3px 5px;
  font-size: var(--font-xsmall);
  width: 120px;
}

.section {
    padding-top: 80px;
    padding-bottom: 50px;
}

.section_title {
    font-size: var(--font-h4);
    padding: 0.5rem;
    max-width: 200px;
    margin-top: 10px;
    border-bottom: 3px solid var(--main-color);
}

.section_text {
    margin: 2rem auto;
    width: 80%;
    font-size: var(--font-small);
}

/*==== Nav Main Menu ====*/
.navbar {
    flex-flow: column-reverse;
    padding: 0;
    margin-top: 5px;
}

.navbar .nav_logo h1 {
    display: none;
}

.navbar ul {
    gap: 30px;
}

.navbar .nav_actions ul {
    display: flex;
}

.navbar ul li a {
    font-size: var(--font-small);
}

/*==== Nav Actions ====*/
.nav_actions ul li a {
    font-size: var(--font-xsmall);
}

/*==== News Swiper ====*/
.swiper {
  width: 330px;
  max-height: 500px;
}

.swiper-wrapper {
    width: 350px;
}

.swiper-slide {
    display: grid;
    padding: 2rem;
}

.swiper-btn {
    color: var(--button-color);
    font-size: var(--font-h4);
    padding: 2px;
    border: 1px solid var(--soft-border);
    background-color: hsla(0, 0%, 100%, 0.784);
}

.news_img {
    width: auto;
    height: 210px;
    margin-right: auto;
}

.news_info {
    max-width: 350px;
    gap: 1px;
}

.news_title {
    font-size: var(--font-reg);
}

.news_text {
    font-size: var(--font-xsmall);
}

/*=============== CAT PROFILES ===============*/

.profiles_container {
    max-width: 340px;
}

.profile_box {
    width: 150px;
    height: 215px;
}

.sex-label {
    position: absolute;
    transform: translate(7.5rem, .2rem);
    font-size: 1.5rem;
}

.profile_content p,
.profile_content a {
    font-size: var(--font-xsmall)
}

.cat_img {
    width: 90px;
    height: auto;
    margin: .5rem auto;
}

.profile_content .cat_name {
    font-size: var(--font-reg);
}

/*=============== FAQ ===============*/

.faq .section_text {
    margin-top: 2rem;
}

.faq_q {
    font-size: var(--font-small);
}

.faq div p {
    font-size: var(--font-small);
    margin-bottom: 1rem;
}

/*=============== RESOURCES ===============*/

.resource_list {
    display: block;
}

.resource_list .resource_links p {
    font-size: var(--font-reg);
}

.resource_links a {
    padding: 0.2rem;
    font-size: var(--font-small);
}

}
