:root {
  --off-white: #EEEEF0ff;
  --grid-background: #CECECEff;
  --light-blue-text: #D2E6F7ff;
  --medium-blue-button: #5C8AAEff;
  --standard-ig-color: #3D6B92ff;
  --dark-blue-button: #356389ff;
  --light-blue-button: #6991B5ff;
  --mint-text: #E2EFF3ff;
  --darkest-blue-button: #195686ff;
  --button-gradient: linear-gradient(360deg, hsla(206, 69%, 31%, 1) 0%, hsla(206, 69%, 31%, 1) 0%, hsla(207, 33%, 49%, 1) 43%, hsla(208, 41%, 41%, 1) 100%);
  --following-button-gradient: linear-gradient(180deg, hsla(114, 31%, 82%, 1) 0%, hsla(113, 54%, 48%, 1) 28%, hsla(112, 59%, 39%, 1) 67%, hsla(106, 94%, 28%, 1) 100%);
  --pointer: url('https://bigdogal.neocities.org/cursors/pointer.png'), pointer;
  --default-cursor: url('https://bigdogal.neocities.org/cursors/default.png'), default;
  --gray-border: #dbdbdb;
}

* {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

body {
  background: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: var(--default-cursor);
}

#header {
  background: var(--button-gradient);
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
  box-shadow: 0px 5px 8px 0px #888888;
}

#header div {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

}

#header h1 {
  color: #ffffff;
  font-size: 28;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0px 2px 0px #283966;
  transition: opacity 0.2s;
  text-align: center;
  justify-content: center;
  align-items: center;

}

#buttons {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 4px 2px;
  cursor: var(--pointer);
}

a {
  text-decoration: none;
  color: var(--standard-ig-color);
  font-weight: bold;
}

a:active {
  opacity: 0.3;
}

/* Page Content */
#page-content {
  max-width: 980px;
  width: 100%;
  padding: 0;
  color: #262626;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0px auto;
  background-color: var(--grid-background);
}


/* Start of account grid */
#account-container {
  background: #fff;
  margin: 20px auto;
  box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  width: calc(100% - 40px);
  box-sizing: border-box;
  min-height: 150px; 
  height: auto; 

}

.details-grid {
  display: grid;
  grid-template-columns: minmax(100px 100px) 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  background-color: white;
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
}


/* Icon */
.icon-container {
  grid-area: 1 / 1 / 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  box-sizing: border-box;
  border-right: 1px solid var(--gray-border);
  border-left: 1px solid var(--gray-border);
  border-top: 1px solid var(--gray-border);
}

#profile-pic {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#profile-pic img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
}


/* STATS containers */
.postCount-container {
  grid-area: 1 / 2 / 2 / 3;
  border-right: 1px solid var(--gray-border);
  border-top: 1px solid var(--gray-border);
}

.followerCount-container {
  grid-area: 1 / 3 / 2 / 4;
  border-right: 1px solid var(--gray-border);
  border-top: 1px solid var(--gray-border);
}

.followingCount-container {
  grid-area: 1 / 4 / 2 / 5;
  border-right: 1px solid var(--gray-border);
  border-top: 1px solid var(--gray-border);
}

.postCount-container,
.followerCount-container,
.followingCount-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.stat-number {
  color: #262626;
  font-weight: 600;
  font-size: clamp(18px, 5vw, 20px);
  line-height: 1;
  word-break: normal;
}

.stat-label {
  color: #999;
  font-size: clamp(12px, 2vw, 16px);
  line-height: 1;
}


/* Follow button */
.followButton-container {
  grid-area: 2 / 2 / 3 / 5;
  padding: 0px 5px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border);
}

.follow-button {
  box-shadow: none;
  background: var(--button-gradient);
  ;
  border-radius: 6px;
  color: #ffffff;
  font-size: clamp(18px, 3vw, 20px);
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  padding: clamp(10px, 2vw, 14px);
  text-decoration: none;
  text-shadow: 0px 1px 0px #283966;
  transition: opacity 0.2s;
  cursor: var(--pointer);
  box-sizing: border-box;
  border: none;
}

.follow-button :hover {
  background: linear-gradient(to bottom, #476e9e 5%, #7892c2 100%);
  background-color: #476e9e;
}

.follow-button :active {
  position: relative;
  top: 1px;
}


.follow-button.following {
  background: var(--following-button-gradient);
  ;
}


.follow-button.following:hover {
  background: var(--following-button-gradient);
}


/* Bio */
.bio-container {
  grid-area: 3 / 1 / 4 / 5;
  line-height: 1.5;
  padding: 5px;
  padding-left: 10px;
  padding-bottom: 15px;
  overflow: hidden;
  word-wrap: break-word;
  box-sizing: border-box;
  position: static;
  border: 1px solid var(--gray-border);
}

#accountDetails {
  text-align: left;
  font-size: 16px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding-left: 5px;
}

#accountDetails h1 {
  font-size: 22px;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#bio-description {
  padding-left: clamp(10px, 2vw, 15px);
  padding-bottom: clamp(10px, 2vw, 15px);
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#bio-description a,
#accountDetails a {
  word-break: break-all;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

#bio-description a {
  display: block;
}

/* END of account grid */



#photo-grid-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  grid-auto-rows: 1fr;
  cursor: var(--pointer);
}

/* TO DO */
#instagram-filter {
  filter: sepia(60%);
}

.post {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 8px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.post a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.img {
  width: 100%;
  height: 100%;
  background: var(--gray-border);
  object-fit: cover;
}

.post:hover .post-info {
  opacity: 1;
}

.post-info {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.overlay {
  position: flex;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  display: flex;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  cursor: var(--pointer);
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}


.full-post {
  width: 90%;
  max-width: 935px;
  height: 90%;
  max-height: 600px;
  background: #fff;
  display: flex;
  position: relative;
  z-index: 1002;
  margin: auto;
}

.max-img {
  flex: 0 0 60%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.max-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Comments Section */
.post-caption {
  padding: 0 16px 8px;
  font-size: 14px;
}

.post-caption .username {
  font-weight: 600;
  margin-right: 5px;
}

.post-comments {
  padding: 0 16px;
  font-size: 14px;
}


.view-comments {
  padding: 0 16px 8px;
  font-size: 14px;
  color: #999;
  cursor: var(--pointer);
}

.comment {
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment .username {
  font-weight: 600;
  color: #262626;
  margin-right: 5px;
}

.time-ago {
  padding: 8px 16px 16px;
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
}

.post-head {
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

post-head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
}


.post-head {
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.post-head .location {
  font-size: 12px;
  color: var(--standard-ig-color);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.post-head .username {
  flex: 1;
}

.post-head .time {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* Post Actions */
.post-actions {
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.post-actions button {
  background: none;
  border: none;
  padding: 0;
  cursor: var(--pointer);
  font-size: 24px;
}

.post-actions .right-actions {
  margin-left: auto;
}


/* Start of post modal */
.modal-container {
  display: none; 
  position: fixed; 
  z-index: 1; 
  padding-top: 20px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100vh;
  overflow: auto; 
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4); 
  aspect-ratio: 1 / 1;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #fff;
  width: min(80vw, calc(100vh - 40px)); /* Square based on smallest dimension */
  height: min(80vw, calc(100vh - 40px)); /* Same value for perfect square */
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: auto;
}

.modal-content a img {
  object-fit: cover; /* Fill the square container */
  object-position: center;
  width: 100%;
  height: 100%;
  cursor: var(--default);
}

/* Close Button */
.close {
  color: black;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 35px;
  font-weight: bold;
  background-color: #fefefe;
  padding: 10px;
  padding-top: 0;
  padding-right: 1;
  z-index: 10;
  cursor: var(--pointer);
  width: 20px; 
  height: 20px; 
  line-height: 1; 
  display: flex; 
  align-items: center;
  justify-content: center;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  background-color: #fefefe;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}


/* End of post modal */



/* Start of Likes and comments */
.likes,
.comments {
  display: inline-block;
  padding-left: 22px;
  margin: 0 5px;
  font-weight: bold;
}

/* Likes Section */
.likes-section {
  padding: 0 16px 8px;
  font-size: 14px;
  font-weight: 600;
}

.likes {
  background: url(http://i.imgur.com/KxGhIjt.png)center left no-repeat;
}

.comments {
  background: url(http://i.imgur.com/LETuhgd.png)center left no-repeat;
}

.likes-date {
  padding: 20px;
  font-size: 14px;
  text-align: left;
  border-top: 1px solid #efefef;
  flex-shrink: 0;
}

.likes-date i {
  opacity: 0.7;
  font-style: normal;
  float: right;
}

.post-comments {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment {
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment i {
  font-style: normal;
  color: var(--standard-ig-color);
}

/* END of Likes and comments */
  
  
  #profile-pic {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .postCount-container, 
  .followerCount-container, 
  .followingCount-container {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .follow-button {
    margin: 5px;
  }
  
  .bio-container{ 
    padding: 5px;
  }
  
  


@media only screen and (max-width: 425px){
  #header h1{ 
    font-size: 20px;
  }
}

@media only screen and (max-width: 520px){
  .post {
    border: 6px solid #fff;
    grid-gap: 8px;
    font-size: 14px;
  }
}

  










}